mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(web): blank locale cause blank timeline to render (#17284)
* fix(web): blank locale cause blank timeline to render * correct fix * newline * pr feedback
This commit is contained in:
parent
20ba800a50
commit
946507231d
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export const colorTheme = persisted<ThemeSetting>('color-theme', initialTheme, {
|
||||||
// Locale to use for formatting dates, numbers, etc.
|
// Locale to use for formatting dates, numbers, etc.
|
||||||
export const locale = persisted<string | undefined>('locale', undefined, {
|
export const locale = persisted<string | undefined>('locale', undefined, {
|
||||||
serializer: {
|
serializer: {
|
||||||
parse: (text) => text,
|
parse: (text) => (text == '' ? 'en-US' : text),
|
||||||
stringify: (object) => object ?? '',
|
stringify: (object) => object ?? '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue