Define I18n.js as a dependency
This commit is contained in:
parent
96e470bbaf
commit
a19790da39
2
index.js
2
index.js
|
@ -2,7 +2,7 @@
|
|||
|
||||
const { NativeModules } = require('react-native');
|
||||
const { RNI18n } = NativeModules;
|
||||
let I18n = require('./vendor/i18n');
|
||||
let I18n = require('i18n-js');
|
||||
|
||||
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
||||
|
||||
|
|
|
@ -14,5 +14,8 @@
|
|||
"i18n"
|
||||
],
|
||||
"author": "Alexander Zaytsev",
|
||||
"license": "MIT"
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"i18n-js": "github:fnando/i18n-js#v3.0.0.rc16"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue