Key with which is the dictionary accessible to format texts. If it's an object, the key is default.
Key-value object for mapping the texts.
Instance of the Text class.
Adds the function.
Name of the function.
Function to execute.
Instance of the Text class.
Formats the text. Data to format must be in braces. If there's a number in braces the value to replace is searched in the args by order in array. If it's a function in the braces the function is called. First parameter accepts number and it's searched in the args. It it's a string in the braces the value to replace is searched in the set dictionary.
Text to format.
Arguments to pass in the text by index.
Formatted text.
Formats the text from the set dictionary. The text is searched as a value in the dictionary by defined key. If the key is not found in set dictionary it tries to find the text in default dictionary.
Key of the text in the dictionary.
Arguments to pass in format method.
Formatted text.
Gets the dictionary by the key.
Key of the dictionary.
Dictionary instance or null.
Formats the text from the defined dictionary. The text is not searched in the default dictionary if not found.
Dictionary key.
Key of the text in the dictionary.
Arguments to pass in format method.
Formatted text.
Gets the current mode of the Text class.
The current mode of the Text class.
Creates the key from fragments.
Joins the fragments with _
char.
The fragments to join.
Joined key.
Sets the actual dictionary.
Key fo the dictionary.
Instance of the Text class.
Sets the mode of the module.
If the app is in dev
mode, warnings are logged to console
and not-existing texts are returned as the key.
Otherwise in production
mode no logs are printed and non-existing texts are returned as empty string.
The mode to set one of dev
or production
. Default is dev
.
Instance of the Text class.
Generated using TypeDoc
Adds the new dictionary.