Skip to content

Commit cadd79b

Browse files
committed
type(website):修复案例语言类型
1 parent f8735c1 commit cadd79b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/language/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import i18n from 'i18next';
1+
import i18n, { Resource } from 'i18next';
22
import { initReactI18next } from 'react-i18next';
33

44
import EN from './locale/en.json';
@@ -7,7 +7,7 @@ import ZH from './locale/zh.json';
77
// the translations
88
// (tip move them in a JSON file and import them,
99
// or even better, manage them separated from your code: https://react.i18next.com/guides/multiple-translation-files)
10-
const resources: Record<string, { translation: { language: string } }> = {};
10+
const resources: Resource = {};
1111

1212
i18n
1313
.use(initReactI18next) // passes i18n down to react-i18next

0 commit comments

Comments
 (0)