Define I18n.js as a dependency

This commit is contained in:
Mathieu Acthernoene 2017-03-30 02:06:17 +02:00
parent 96e470bbaf
commit a19790da39
3 changed files with 5 additions and 1042 deletions

View File

@ -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(/_/, '-') : '';

View File

@ -14,5 +14,8 @@
"i18n"
],
"author": "Alexander Zaytsev",
"license": "MIT"
"license": "MIT",
"dependencies": {
"i18n-js": "github:fnando/i18n-js#v3.0.0.rc16"
}
}

1040
vendor/i18n.js vendored

File diff suppressed because it is too large Load Diff