diff --git a/src/i18n/index.jsx b/src/i18n/index.jsx index 64b901c..99f3164 100644 --- a/src/i18n/index.jsx +++ b/src/i18n/index.jsx @@ -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]);