This commit is contained in:
syuilo
2020-07-24 22:30:23 +09:00
parent d3135ed9d3
commit b3b7be2949
2 changed files with 16 additions and 14 deletions

View File

@@ -11,7 +11,6 @@ export function setI18nContexts(lang: string, version: string, i18n: I18n, clear
.then(locale => {
const flatLocaleEntries = deepEntries(locale, delimitEntry) as [string, string][];
bulkSet(flatLocaleEntries, clientDb.i18n);
i18n.locale = lang;
i18n.setLocaleMessage(lang, Object.fromEntries(flatLocaleEntries));
return Object.fromEntries(flatLocaleEntries);
});
}