Switch to ES2015, remove now useless replace
This commit is contained in:
parent
a19790da39
commit
91662a4cda
12
index.js
12
index.js
|
@ -1,9 +1,7 @@
|
||||||
'use strict';
|
import {NativeModules} from 'react-native'
|
||||||
|
import I18n from 'i18n-js'
|
||||||
|
const {RNI18n} = NativeModules
|
||||||
|
|
||||||
const { NativeModules } = require('react-native');
|
I18n.locale = RNI18n.locale
|
||||||
const { RNI18n } = NativeModules;
|
|
||||||
let I18n = require('i18n-js');
|
|
||||||
|
|
||||||
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
export default I18n
|
||||||
|
|
||||||
module.exports = I18n;
|
|
||||||
|
|
Loading…
Reference in New Issue