scratch-www/static/js/lib/custom-locales.js
Matthew Taylor 4f541b8831 Move custom-locales.js to static/js/lib
So it can be loaded ahead of time and cached. Also remove the json since it's being loaded outside of react now, and put it into the js file directly.
2015-12-16 08:32:25 -05:00

9 lines
320 B
JavaScript

var customLanguages = {
'an': {'locale': 'an','parentLocale': 'ca'},
'la': {'locale': 'la','parentLocale': 'it'},
'yum': {'locale': 'yum','parentLocale': 'en'},
'cat': {'locale': 'cat','parentLocale': 'en'}
};
for (var locale in customLanguages) {
ReactIntl.addLocaleData(customLanguages[locale]);
}