fix: language switching issue to en from slug (#3006)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Anwarul Islam
2023-04-22 16:52:30 +06:00
committed by GitHub
parent c1f4855daf
commit 4acc4b2dda
5 changed files with 80 additions and 71 deletions

View File

@@ -7,7 +7,6 @@ import { HoppModule } from "."
import languages from "../../languages.json"
import en from "../../locales/en.json"
import { throwError } from "~/helpers/functional/error"
import { getLocalConfig, setLocalConfig } from "~/newstore/localpersistence"
@@ -123,11 +122,6 @@ export default <HoppModule>{
fallbackLocale: "en",
legacy: false,
allowComposition: true,
// TODO: Fix this to allow for dynamic imports
messages: {
en,
},
})
app.use(i18n)