2015-06-14 12:14:02 +00:00
|
|
|
'use strict';
|
2015-06-14 10:47:18 +00:00
|
|
|
|
2016-06-16 12:39:55 +00:00
|
|
|
const { NativeModules } = require('react-native');
|
|
|
|
const { RNI18n } = NativeModules;
|
|
|
|
let I18n = require('./vendor/i18n');
|
2015-06-14 12:14:02 +00:00
|
|
|
|
2016-06-16 12:39:55 +00:00
|
|
|
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
2015-06-14 10:47:18 +00:00
|
|
|
|
2015-10-22 15:35:22 +00:00
|
|
|
module.exports = I18n;
|