Constructor
default = "en"
the locale code to initialize the helper with (E.g. "en", "en_US", "es" etc.)
default = "res"
the path of the icu data file (e.g. "res")
default = "locale"
the filename of the locale file (the .dat extension is not required)
Format a given string with the given string arguments (only string replacements are possible with this method)
the string to format
a vector of strings - argument names will be numbers (e.g. the first element will be named "0", the second will be "1" etc.)
the formatted output string
Format a given string with the given string arguments (only string replacements are possible with this method)
the string to format
a map of argument names to argument string values
the formatted output string
Format a given string with the given Params
the string to format
a vector of Params - argument names will be numbers (e.g. the first element will be named "0", the second will be "1" etc.)
the formatted output string
Format a given string with the given Params
the string to format
a map of argument names to Params
the formatted output string
Locate a string in the locale data with the given key and format it with the given string arguments (only string replacements are possible with this method)
the key of the requested localized string
a vector of strings - argument names will be numbers (e.g. the first element will be named "0", the second will be "1" etc.)
the formatted output string
Locate a string in the locale data with the given key and format it with the given string arguments (only string replacements are possible with this method)
the key of the requested localized string
a map of argument names to argument string values
the formatted output string
Locate a string in the locale data with the given key and format it with the given Params
the key of the requested localized string
a vector of Params - argument names will be numbers (e.g. the first element will be named "0", the second will be "1" etc.)
the formatted output string
Locate a string in the locale data with the given key and format it with the given Params
the key of the requested localized string
a map of argument names to Params
the formatted output string
Get the current locale code
the current locale code
Helper method to get the localized path of a resource using the LocaleHelper's current locale
is the relative path to the resource
the path to the resource if found
Retrieves a string from the locale data with the given key and performs no formatting
the key of the requested localized string
the requested string
Initialize the locale helper. This or setLocale must be called before other methods are available.
true if initialized successfully, false otherwise
Change the locale of the locale helper
the new locale code
true if locale data was found for the new locale, false otherwise
Generated using TypeDoc
Localization wrapper around ICU