scratch-www/src/lib/intl.jsx

13 lines
293 B
React
Raw Normal View History

var ReactIntl = require('react-intl');
var customLanguages = require('../../custom-locales.json');
2016-01-14 10:25:03 -05:00
/**
* Add custom locales to react-intl if it doesn't have them.
*/
for (var locale in customLanguages) {
ReactIntl.addLocaleData(customLanguages[locale]);
}
module.exports = ReactIntl;