mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-28 17:46:56 +00:00
load correct locales file in frontend-embed boot.ts
This commit is contained in:
parent
9a6c954ca6
commit
66a7655bdb
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ if (embedParams.colorMode === 'dark') {
|
|||
const localeVersion = localStorage.getItem('localeVersion');
|
||||
const localeOutdated = (localeVersion == null || localeVersion !== langsVersion || locale == null);
|
||||
if (localeOutdated) {
|
||||
const res = await window.fetch(`/assets/locales/${lang}.${version}.json`);
|
||||
const res = await window.fetch(`/assets/locales/${lang}.${langsVersion}.json`);
|
||||
if (res.status === 200) {
|
||||
const newLocale = await res.text();
|
||||
const parsedNewLocale = JSON.parse(newLocale);
|
||||
|
|
Loading…
Add table
Reference in a new issue