translator.dictionary()
The translator.dictionary()
function returns(flattened map) the global and/or given $dictionary
, optionally merged with the dictionary retrieved from $key
of this dictionary.
Global dictionary is in use on $dictionary-global
set to true
, or by setting $global
argument to true
.
Parameters
$key: null
$key: null
A key to deep merge the dictionary under this key with a global dictionary and/or with $dictionary
.
$dictionary: ()
$dictionary: ()
Dictionary of (flatten) map or list(dictionary keys) type to retrieve.
$global: null
$global: null
A bool
value indicates whether to use a global dictionary. Default, null
, then $dictionary-global
is checked.
Return
The return value is a flattened map dictionary consisting of (word:translation).
Examples
Last updated