refresh locales after any change, not just a version update

This commit is contained in:
Hazelnoot 2024-10-15 12:23:18 -04:00
parent 45974a53f8
commit 652cc8602c
8 changed files with 41 additions and 31 deletions

View file

@ -15,6 +15,7 @@ export const apiUrl = location.origin + '/api';
export const wsOrigin = location.origin;
export const lang = miLocalStorage.getItem('lang') ?? 'en-US';
export const langs = _LANGS_;
export const langsVersion = _LANGS_VERSION_;
const preParseLocale = miLocalStorage.getItem('locale');
export let locale = preParseLocale ? JSON.parse(preParseLocale) : null;
export const version = _VERSION_;