mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-11 08:11:19 -05:00
12 lines
293 B
JavaScript
12 lines
293 B
JavaScript
var ReactIntl = require('react-intl');
|
|
|
|
var customLanguages = require('../../custom-locales.json');
|
|
|
|
/**
|
|
* Add custom locales to react-intl if it doesn't have them.
|
|
*/
|
|
for (var locale in customLanguages) {
|
|
ReactIntl.addLocaleData(customLanguages[locale]);
|
|
}
|
|
|
|
module.exports = ReactIntl;
|