Optional appendfalse
Optional appendAppends namespace to missing key
false
Optional backendOptions for backend - check documentation of plugin
undefined
Optional cacheOptions for cache layer - check documentation of plugin
undefined
Optional cleanLanguage will be lowercased EN --> en while leaving full locales like en-US
false
Optional compatibilityJSONCompatibility JSON version
'v4'
Optional contextChar to split context from key
'_'
Optional debugLogs info level to console output. Helps finding issues with loading not working.
false
Optional defaultNSDefault namespace used if not passed to translation function
'translation'
Optional detectionOptions for language detection - check documentation of plugin
undefined
Optional fallbackLanguage to use if translations in user language are not available.
'dev'
Optional fallbackNSString or array of namespaces to lookup key if not found in given namespace.
false
Optional forkWill create a new instance of the resource store and import the existing translation resources. This way it will not shared the resource store instance.
false
Optional i18nOptions for i18n message format - check documentation of plugin
undefined
Optional ignoreJSONStructureAutomatically lookup for a flat key if a nested key is not found an vice-versa
true
Optional initTriggers resource loading in init function inside a setTimeout (default async behaviour). Set it to false if your backend loads resources sync - that way calling i18next.t after init is possible without relaying on the init callback.
true
Optional interpolationOptional joinChar, eg. '\n' that arrays will be joined by
false
Optional keyChar to separate keys
'.'
Optional lngLanguage to use (overrides language detection)
undefined
Optional loadLanguage codes to lookup, given set language is 'en-US': 'all' --> ['en-US', 'en', 'dev'], 'currentOnly' --> 'en-US', 'languageOnly' --> 'en'
'all'
Optional locizeOptions for https://github.com/locize/locize-lastused
Optional allowedHostnames that are allowed to send last used data. Please keep those to your local system, staging, test servers (not production)
['localhost']
Optional apiAn api key if you want to send missing keys
Optional debounceDebounce interval to send data in milliseconds
90000
The id of your locize project
Optional referenceThe reference language of your project
'en'
Optional version?: stringVersion
'latest'
undefined
Optional lowerLanguage will be lowercased eg. en-US --> en-us
false
Optional maxLimit parallelism of calls to backend This is needed to prevent trying to open thousands of sockets or file descriptors, which can cause failures and actually make the entire process take longer.
10
Optional maxThe maximum number of retries to perform. Note that retries are only performed when a request has no response and throws an error. The default value is used if value is set below 0.
5
Optional missingGets called in case a interpolation value is undefined. This method will not be called if the value is empty string or null
noop
Optional missingUsed for custom missing key handling (needs saveMissing set to true!)
false
Optional missingUsed to not fallback to the key as default value, when using saveMissing functionality. i.e. when using with i18next-http-backend this will result in having a key with an empty string value.
false
Optional nonIf true will pass eg. en-US if finding en in supportedLngs
false
Optional nsString or array of namespaces to load
'translation'
Optional nsChar to split namespace from key
':'
Optional partialAllow initializing with bundled resources while using a backend to load non bundled ones.
false
Optional pluralChar to split plural from key
'_'
Optional postString or array of postProcessors to apply per default
false
Optional postpassthrough the resolved object including 'usedNS', 'usedLang' etc into options object of postprocessors as 'i18nResolved' property
false
Optional preloadArray of languages to preload. Important on server-side to assert translations are loaded before rendering views.
false
Optional reactOptions for react - check documentation of plugin
undefined
Optional resourcesResources to initialize with (if not using loading or not appending using addResourceBundle)
undefined
Optional retrySet how long to wait, in milliseconds, between retries of failed requests. This number is compounded by a factor of 2 for subsequent retry. The default value is used if value is set below 1ms.
350
Optional returnReturns an object that includes information about the used language, namespace, key and value
false
Optional returnAllows empty string as valid translation
true
Optional returnAllows null values as valid translation
false
Optional returnAllows objects as valid translation result
false
Optional saveCalls save missing key function on backend if key not found.
false
Optional saveCalls save missing key function on backend if key not found also for plural forms.
false
Optional save'fallback'
Optional simplifyWill use 'plural' as suffix for languages only having 1 plural form, setting it to false will suffix all with numbers
true
Optional supportedArray of allowed languages
false
Optional updateExperimental: enable to update default values using the saveMissing (Works only if defaultValue different from translated value. Only useful on initial development or when keeping code as source of truth not changing values outside of code. Only supported if backend supports it already)
false
Optional overloadOptional parseOptional returnedGenerated using TypeDoc
Prefixes the namespace to the returned key when using
cimode