mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-25 05:44:13 -05:00
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.
9 lines
320 B
JavaScript
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]);
|
|
}
|