Samuli Hakoniemi c6691e049a Uniform code and fix for test friendliness (mocha)
- replace let with const
- check existence of `RNI18n` when accessing it's properties
- remove unnecessary code
2016-06-16 15:39:55 +03:00

10 lines
225 B
JavaScript

'use strict';
const { NativeModules } = require('react-native');
const { RNI18n } = NativeModules;
let I18n = require('./vendor/i18n');
I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';
module.exports = I18n;