11 lines
225 B
JavaScript
Raw Normal View History

2017-04-07 19:21:55 +02:00
// @flow
2015-06-14 17:47:18 +07:00
2017-04-07 19:21:55 +02:00
import { NativeModules } from 'react-native';
import I18n from 'i18n-js';
const { RNI18n } = NativeModules;
2015-06-14 19:14:02 +07:00
2017-05-25 17:49:37 +02:00
I18n.locale = RNI18n.languages[0];
2017-04-07 19:21:55 +02:00
2017-05-25 17:49:37 +02:00
export const getLanguages = RNI18n.getLanguages;
2017-04-07 19:21:55 +02:00
export default I18n;