mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
import I18n, { getLanguages } from 'react-native-i18n';
|
|
|
|
getLanguages().then(languages => languages[0]);
|
|
|
|
I18n.defaultLocale = 'en';
|
|
I18n.fallbacks = true;
|
|
I18n.translations = {};
|
|
I18n.locale = 'fr';
|
|
|
|
const currentLocale: string = I18n.currentLocale();
|