Improve i18n resource typing

This commit is contained in:
schroda
2024-04-24 23:56:06 +02:00
parent a7cafb59a4
commit 082f923e10
2 changed files with 6 additions and 4 deletions

View File

@@ -33,7 +33,9 @@ export const i18nResources = [
'vi',
'zh_Hans',
'zh_Hant',
];
] as const;
export type I18nResourceCode = (typeof i18nResources)[number];
export const i18n = use(initReactI18next)
.use(HttpBackend)