mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
* Add type for react-native-i18n * Fix tests with correct typescript version
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();
|