react-native-i18n/index.js

10 lines
212 B
JavaScript

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