Skip to content

Commit

Permalink
fix: dispatch I18N_UPDATE event after language load (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs authored Jan 16, 2025
1 parent 8db5d53 commit 69704f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/renderer/src/lib/load-language.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -68,6 +69,7 @@ export const loadLanguageAndApply = async (lang: string) => {
return
}
}
EventBus.dispatch("I18N_UPDATE", "")
} else {
let importFilePath = ""

Expand Down

0 comments on commit 69704f3

Please sign in to comment.