Front: i18n: Call translator instance on reset language action

This commit is contained in:
Arthi-chaud
2022-08-13 13:58:53 +02:00
parent 54716092e0
commit d630fb6bd0
+1
View File
@@ -14,6 +14,7 @@ export const languageSlice = createSlice({
},
resetLanguage: (state) => {
state.value = DefaultLanguage;
i18n.changeLanguage(DefaultLanguage);
},
},
});