/dictionary
The dictionary module exports a proxy object to get values from the mapp.dictionaries{}.
- Source
Methods
(inner) get(key)
The proxy getter will check whether the mapp.language is supported by the mapp.dictionaries or set 'en' english as default language.
A check will be performed if the key exists in the english dictionary of the key doesn't exist in the language dictionary.
The key itself will be returned if no lookup exists in the language or english mapp.dictionaries.
Parameters:
Name | Type | Description |
---|---|---|
key | string | The property key of the requested dictionary entry. |
- Source