Merge pull request #27 from zvona/patch-1
Uniform code and fix for test friendliness (mocha) in index.js
This commit is contained in:
commit
3b71d3eda1
8
index.js
8
index.js
|
@ -1,9 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
let { Platform, NativeModules } = require('react-native')
|
||||
let { RNI18n } = NativeModules
|
||||
let I18n = require('./vendor/i18n')
|
||||
const { NativeModules } = require('react-native');
|
||||
const { RNI18n } = NativeModules;
|
||||
let I18n = require('./vendor/i18n');
|
||||
|
||||
I18n.locale = RNI18n.locale.replace(/_/, '-');
|
||||
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
|
||||
|
||||
module.exports = I18n;
|
||||
|
|
Loading…
Reference in New Issue