/utils/loadDictionary

The loadDictionary module exports a default method to load a language dictionary.

Methods

(inner) loadDictionary(languageCode)

The method will fetch a json language dictionary from the public directory and merge the language object into the mapp.dictionaries.

Parameters:
NameTypeDescription
languageCodestring

The language code for the dictionary to be loaded.