I18nConfiguration
Configuration class for i18next
initialization.
This class encapsulates all the configuration options available for initializing i18next
in a Kotlin/JS environment.
It uses kotlinx-serialization
to serialize the configuration into a dynamic object that can be passed to the JavaScript init
function.
See also
Properties
Appends the namespace to the key when in CIMode.
If true
, appends the namespace to missing keys.
Separator used for contexts.
Default namespace used if not specified in the translation function.
Fallback language if the specified language is not available. Defaults to "dev"
.
List of fallback namespaces.
If true
, ignores the JSON structure when flattening translations.
If false
, initialization is delayed until resources are loaded.
Holds the interpolation configuration. This is a dynamic
field and is not serialized to dynamic
with kotlinx-serialization
.
Specifies how to join arrays in translations.
Separator used for keys.
Strategy for loading resources.
If true
, language codes are converted to lower case.
Maximum number of parallel reads when loading resources.
If true
, falls back to the key if no value is found and the key is missing.
List of namespaces to load.
Separator used for namespaces.
If true
, non-explicit supported languages are allowed.
If true
, partially bundles languages.
Separator used for plurals.
List of post-processing steps.
If true
, returns detailed information for missing translations.
If true
, returns an empty string for missing translations.
If true
, returns null
for missing translations.
If true
, returns objects instead of strings for missing translations.
If true
, missing keys are sent to the backend.
If true
, saves missing plurals.
Specifies where to save missing keys.
If true
, skips interpolation.
List of supported languages.
If true
, updates missing keys.
Functions
Serializes the configuration into a dynamic
object suitable for passing to JavaScript.
Configures the interpolation
using InterpolationConfiguration builder.
Configures the interpolation
options using a dynamic builder.
Configures the resources
(translations) using a dynamic object.