Rainer Simon 2021-11-17 12:09:53 +01:00
parent f8356ee209
commit d21f29abc6
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ const MESSAGES = {
const i18n = new Polyglot({ allowMissing: true });
i18n.init = (lang, opt_messages) => {
i18n.clear();
if (lang) {
i18n.locale(lang);
i18n.extend(MESSAGES[lang]);