fix: format date according to DEFAULT_LOCALE in chat search (#19305)

* fix: localized format

* load default_locale from backend
This commit is contained in:
Danny Liu
2025-11-21 01:49:27 -05:00
committed by GitHub
parent 27b8775032
commit bed201e46e
4 changed files with 23 additions and 2 deletions
+2
View File
@@ -54,6 +54,7 @@
import AppSidebar from '$lib/components/app/AppSidebar.svelte';
import Spinner from '$lib/components/common/Spinner.svelte';
import { getUserSettings } from '$lib/apis/users';
import dayjs from 'dayjs';
const unregisterServiceWorkers = async () => {
if ('serviceWorker' in navigator) {
@@ -666,6 +667,7 @@
? backendConfig.default_locale
: bestMatchingLanguage(languages, browserLanguages, 'en-US');
changeLanguage(lang);
dayjs.locale(lang);
}
if (backendConfig) {