fix(web): use locale for date picker (#26125)

This commit is contained in:
Michel Heusschen
2026-02-11 11:39:30 +01:00
committed by GitHub
parent 458d5f0f8f
commit 1c1a000c78
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
"@formatjs/icu-messageformat-parser": "^3.0.0",
"@immich/justified-layout-wasm": "^0.4.3",
"@immich/sdk": "file:../open-api/typescript-sdk",
"@immich/ui": "^0.61.4",
"@immich/ui": "^0.62.0",
"@mapbox/mapbox-gl-rtl-text": "0.2.3",
"@mdi/js": "^7.4.47",
"@photo-sphere-viewer/core": "^5.14.0",
+1 -1
View File
@@ -9,7 +9,7 @@ export interface ThemeSetting {
}
// Locale to use for formatting dates, numbers, etc.
export const locale = persisted<string | undefined>('locale', 'default', {
export const locale = persisted('locale', 'default', {
serializer: {
parse: (text) => text || 'default',
stringify: (object) => object ?? '',
+4
View File
@@ -13,6 +13,7 @@
import { themeManager } from '$lib/managers/theme-manager.svelte';
import ServerRestartingModal from '$lib/modals/ServerRestartingModal.svelte';
import { Route } from '$lib/route';
import { locale } from '$lib/stores/preferences.store';
import { sidebarStore } from '$lib/stores/sidebar.svelte';
import { user } from '$lib/stores/user.store';
import { closeWebsocketConnection, openWebsocketConnection, websocketStore } from '$lib/stores/websocket';
@@ -23,6 +24,7 @@
CommandPaletteDefaultProvider,
TooltipProvider,
modalManager,
setLocale,
setTranslations,
toastManager,
type ActionItem,
@@ -52,6 +54,8 @@
});
});
$effect(() => setLocale($locale));
let { children }: Props = $props();
let showNavigationLoadingBar = $state(false);