scratch-www/src/lib/intl.jsx
2016-01-14 10:25:03 -05:00

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;