Merge pull request #27 from zvona/patch-1

Uniform code and fix for test friendliness (mocha) in index.js
This commit is contained in:
Matteo Mazzarolo 2016-08-18 15:02:06 +02:00 committed by GitHub
commit 3b71d3eda1
1 changed files with 4 additions and 4 deletions

View File

@ -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;