Interface I18nOptions
interface I18nOptions {
defaultNS?: string;
fallbackLng?: string;
fsTranslationsPath?: string;
interpolation?: { escapeValue?: boolean };
lng?: string;
ns?: string[];
resources?: I18nResourceBundle;
}
defaultNS?: string;
fallbackLng?: string;
fsTranslationsPath?: string;
interpolation?: { escapeValue?: boolean };
lng?: string;
ns?: string[];
resources?: I18nResourceBundle;
}
Hierarchy
- InitOptions
- I18nOptions
Index
Properties
OptionaldefaultNS
defaultNS?: string
Default namespace used if not passed to translation function
OptionalfallbackLng
fallbackLng?: string
Language to use if translations in user language are not available.
OptionalfsTranslationsPath
fsTranslationsPath?: string
Optionalinterpolation
interpolation?: { escapeValue?: boolean }
Optionallng
lng?: string
Language to use (overrides language detection)
Optionalns
ns?: string[]
String or array of namespaces to load
Optionalresources
Resources to initialize with (if not using loading or not appending using addResourceBundle)
Options for configuring internationalization