translator.translate()
Last updated
Was this helpful?
Last updated
Was this helpful?
The translator.translate()
function translates string
, map
, or list
with a global dictionary and/or , optionally with a dictionary retrieved by .
$words
The words in string
, list
, or map
to translate.
$key: null
$dictionary: ()
$global: null
The return value is a flattened map dictionary consisting of (word:translation).
A key of the dictionary that is used to translate .
The dictionary of map or list type(dictionary key) used to translate .
A bool
value indicates whether to use a global dictionary. Default, null
, then is checked.