We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8735c1 commit cadd79bCopy full SHA for cadd79b
website/src/language/i18n.ts
@@ -1,4 +1,4 @@
1
-import i18n from 'i18next';
+import i18n, { Resource } from 'i18next';
2
import { initReactI18next } from 'react-i18next';
3
4
import EN from './locale/en.json';
@@ -7,7 +7,7 @@ import ZH from './locale/zh.json';
7
// the translations
8
// (tip move them in a JSON file and import them,
9
// 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 } }> = {};
+const resources: Resource = {};
11
12
i18n
13
.use(initReactI18next) // passes i18n down to react-i18next
0 commit comments