Skip to content

Commit 5f04b52

Browse files
KlhmtAFCMS
authored andcommitted
fix CI error
1 parent 439674f commit 5f04b52

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import reactHooks from "eslint-plugin-react-hooks";
44
import reactRefresh from "eslint-plugin-react-refresh";
55
import tseslint from "typescript-eslint";
66
import { globalIgnores } from "eslint/config";
7+
import pluginLingui from "eslint-plugin-lingui";
78

89
export default tseslint.config([
910
pluginLingui.configs["flat/recommended"],

src/utils/i18nLocaleModuleLoading.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { i18n } from "@lingui/core";
1+
import { i18n, type Messages } from "@lingui/core";
22

33
export async function dynamicActivate(locale: string) {
4-
const { messages } = await import(`./../locales/${locale}/messages.po`);
4+
const { messages } = (await import(`./../locales/${locale}/messages.po`)) as {
5+
messages: Messages;
6+
};
57

68
i18n.load(locale, messages);
79
i18n.activate(locale);

0 commit comments

Comments
 (0)