Dynamicaly import locales (#1793)

* dynamicly import locales

* fix tests

* reformat languages
This commit is contained in:
Kostas Bariotis
2020-06-27 12:02:54 +01:00
committed by GitHub
parent 5970bb7ee9
commit 0a3fb70ec7
7 changed files with 85 additions and 53 deletions

View File

@ -100,8 +100,8 @@ export const MobileMenu = ({
<fieldset>
<legend>{t("labels.language")}</legend>
<LanguageList
onChange={(lng) => {
setLanguage(lng);
onChange={async (lng) => {
await setLanguage(lng);
setAppState({});
}}
/>