July 2017
Intermediate to advanced
300 pages
5h 43m
English
Localization dates and numbers is a good thing, but it will be more exciting to provide translation to multiple languages. We have a number of terms across the application, namely, the column titles of the file list and tooltips (via the title attribute) on windowing action buttons. What we need is a dictionary. Normally, it implies sets of token translation pairs mapped to language codes or locales. Thus, when you request from the translation service a term, it can correlate to a matching translation according to the currently used language/locale.
Here, I have suggested making the dictionary a static module that can be loaded with the required function:
./js/Data/dictionary.js
exports.dictionary = { "en-US": { NAME: ...Read now
Unlock full access