react-native-i18n/index.js

8 lines
179 B
JavaScript

'use strict';
var I18n = require('./vendor/i18n');
var { RNI18n } = require('react-native').NativeModules;
I18n.locale = RNI18n.locale.replace(/_/, '-');
module.exports = I18n;