mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Merge pull request #14640 from silentoplayz/locales-is-undefined-typeerror-fix
fix: Uncaught (in promise) TypeError: locales is undefined
This commit is contained in:
commit
5df4f98fc3
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@
|
|||
dayjs.extend(relativeTime);
|
||||
|
||||
async function loadLocale(locales) {
|
||||
if (!locales || !Array.isArray(locales)) {
|
||||
return;
|
||||
}
|
||||
for (const locale of locales) {
|
||||
try {
|
||||
dayjs.locale(locale);
|
||||
|
|
|
|||
Loading…
Reference in a new issue