mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-02-23 09:18:21 +00:00
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 { NativeModules } = require('react-native');
|
||||||
const { RNI18n } = NativeModules;
|
const { RNI18n } = NativeModules;
|
||||||
let I18n = require('./vendor/i18n');
|
let I18n = require('i18n-js');
|
||||||
|
|
||||||
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
||||||
|
|
||||||
|
@ -14,5 +14,8 @@
|
|||||||
"i18n"
|
"i18n"
|
||||||
],
|
],
|
||||||
"author": "Alexander Zaytsev",
|
"author": "Alexander Zaytsev",
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"i18n-js": "github:fnando/i18n-js#v3.0.0.rc16"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
1040
vendor/i18n.js
vendored
1040
vendor/i18n.js
vendored
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user