version: 1.0.0
Simplified dictionary, works only with a global variable.
dictionary.get()
returns global dictionary(if in use) along with a given $dictionary and/or $key.
$dictionary
$key
dictionary.is-global()
Checks whether the global dictionary is in use.
dictionary.merge()
Merges the global dictionary(if in use) with multiple dictionaries from the given $dictionary in the $key.
dictionary.pick()
Returns the dictionary from a global dictionary(if in use) and a given $dictionary from the associated $key.
dictionary.set()
Sets the global dictionary and/or given $dictionary under the $key with $value.
$value
dictionary.translation()
Returns a translation of $search from $dictionaries.
$search
$dictionaries
translate.list()
Translates $list with a global dictionary and/or given $dictionary.
$list
translate.map()
Translates flatten $map with a global dictionary and/or $dictionary.
$map
translate.nth()
Translates element at $n index in $list with a global dictionary and/or $dictionary.
$n
translate.string()
returns a translation of the $string, if found, otherwise not translated $string.
$string
translator.dictionary()
Returns(flattened map) the global and/or given $dictionary, merging it with the dictionary retrieved by the provided $key from this dictionary.
translator.translate()
Translates string, map, or list with a global dictionary and/or given $dictionary, optionally with a dictionary retrieved by the given $key.
string
map
list
Last updated 3 years ago