fix: dispatch I18N_UPDATE event after language load (#2590)

This commit is contained in:
Whitewater
2025-01-16 23:41:56 +08:00
committed by GitHub
parent 8db5d53307
commit 69704f303d
+2
View File
@@ -1,4 +1,5 @@
import { IN_ELECTRON } from "@follow/shared/constants"
import { EventBus } from "@follow/utils/event-bus"
import { getOS, isEmptyObject } from "@follow/utils/utils"
import dayjs from "dayjs"
import i18next from "i18next"
@@ -68,6 +69,7 @@ export const loadLanguageAndApply = async (lang: string) => {
return
}
}
EventBus.dispatch("I18N_UPDATE", "")
} else {
let importFilePath = ""