'use strict';

const { NativeModules } = require('react-native');
const { RNI18n } = NativeModules;
let I18n = require('i18n-js');

I18n.locale = (RNI18n) ? RNI18n.locale.replace(/_/, '-') : '';

module.exports = I18n;

import {NativeModules} from 'react-native'
import I18n from 'i18n-js'
const {RNI18n} = NativeModules

I18n.locale = RNI18n.locale

export default I18n

Switch to ES2015, remove now useless replace
Switch to ES2015, remove now useless replace
