I18n4k Config Immutable
data class I18n4kConfigImmutable(val defaultLocale: Locale, val locale: Locale, val messageFormatter: MessageFormatter, val treadBlankStringAsNull: Boolean, val ignoreMessageParseErrors: Boolean) : I18n4kConfig
Implementation of I18n4kConfig that is immutable (for state engines like React).
Can be used in combination with I18n4kConfigDelegate, which should return the current config from the state.
Constructors
Link copied to clipboard
constructor()
constructor for getting the default settings
constructor(defaultLocale: Locale, locale: Locale, messageFormatter: MessageFormatter, treadBlankStringAsNull: Boolean, ignoreMessageParseErrors: Boolean)
Properties
Link copied to clipboard
Fallback locale when a string in the currently set locale are not found
Link copied to clipboard
if true, error during parsing of messages will be ignored and the message will be printed without the invalid part.
Link copied to clipboard
the format of the parameters
Link copied to clipboard
if a string of a localisation is null, the default locale is used. If this flag is true, blank strings (empty of only whitespace) are also threaded as null.