Overview
version: 1.0.0
Simplified dictionary, works only with a global variable.
Dictionary
dictionary.get()
returns global dictionary(if in use) along with a given $dictionary
and/or $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
.
dictionary.translation()
Returns a translation of $search
from $dictionaries
.
Translate
translate.list()
Translates $list
with a global dictionary and/or given $dictionary
.
translate.map()
Translates flatten $map
with a global dictionary and/or $dictionary
.
translate.nth()
Translates element at $n
index in $list
with a global dictionary and/or $dictionary
.
translate.string()
returns a translation of the $string
, if found, otherwise not translated $string
.
Translator
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
.
Last updated