Open VigilioYonatan opened 1 year ago
const resources = languages.reduce(
(acc, lang) => {
acc[lang.key] = { zod: lang.zod }
return acc
},
{} as Record<string, { zod: (typeof languages)[0]['zod'] }>,
)
export const i18n = {
supportedLngs: languages.map(lang => lang.key),
fallbackLng: 'en',
defaultNS: 'common',
nsSeparator: '::',
react: { useSuspense: false },
partialBundledLanguages: true,
resources,
debug: false,
}
Note: partialBundledLanguages must be set to true
When i add backend option not found translation in express but zod translate zod found but when i remove resources option, translation it found. How can i fix it?