fix(i18n): toggle language not working in dev
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -40,6 +40,9 @@ export const loadLanguageAndApply = async (lang: string) => {
|
||||
const loaded = loadedLangs.has(lang)
|
||||
|
||||
if (loaded) {
|
||||
if (import.meta.env.DEV) {
|
||||
EventBus.dispatch("I18N_UPDATE", "")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user