Skip to main content

foundation-auth.authconfig.localizationresources

Home > @genesislcap/foundation-auth > AuthConfig > localizationResources

AuthConfig.localizationResources property​

I18n resources.

Signature:

localizationResources?: I18nextConfig['resources'];

Remarks​

This property holds the localization resources needed for internationalization of the application. It should follow the structure defined by the I18nextConfig interface, which includes translations grouped by locale and namespace. Each locale can contain multiple namespaces, and each namespace includes key-value pairs for translation strings.

Example​

resources: {
en: {
'foundation-auth': {
key: 'Hello World'
}
},
es: {
'foundation-auth': {
key: 'Hola Mundo'
}
}
}