|
var localeOptions = { |
|
English: 'en', |
|
Español: 'es', |
|
Polski: 'pl', |
|
'Norwegian Bokmål': 'nb_NO', |
|
} |
It needs to be generated dynamically, from the locale files that exists in static/i18n to support #124.
We can generate a JSON file and import that file to replace the JS object in locale.js
The language name can come from a npm package, but do not include that package in the client side js as to not bloat it.
gci-leaders/src/js/locale.js
Lines 29 to 34 in 9a170ec
It needs to be generated dynamically, from the locale files that exists in static/i18n to support #124.
We can generate a JSON file and
importthat file to replace the JS object in locale.jsThe language name can come from a npm package, but do not include that package in the client side js as to not bloat it.