jellyfin-expo/i18n.js

22 lines
407 B
JavaScript
Raw Normal View History

2020-07-13 16:30:38 +00:00
import * as Localization from 'expo-localization';
import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import en from './langs/en.json';
const resources = {
2020-07-15 03:46:09 +00:00
en: { translation: en }
2020-07-13 16:30:38 +00:00
};
i18next
.use(initReactI18next)
.init({
// debug: true,
fallbackLng: 'en',
lng: Localization.locale,
interpolation: {
escapeValue: false
},
resources
});