feat: add i18n checker (ui) (#17283)
This commit is contained in:
@@ -47,8 +47,9 @@ const loadLangResources = (lang: string) => ({
|
||||
},
|
||||
})
|
||||
|
||||
type Resource = Record<string, ReturnType<typeof loadLangResources>>
|
||||
// Automatically generate the resources object
|
||||
const resources = LanguagesSupported.reduce((acc: any, lang: string) => {
|
||||
export const resources = LanguagesSupported.reduce<Resource>((acc, lang) => {
|
||||
acc[lang] = loadLangResources(lang)
|
||||
return acc
|
||||
}, {})
|
||||
|
||||
Reference in New Issue
Block a user