fix to string language

This commit is contained in:
Gustavo Emanuel Farias Rosa 2022-04-14 16:31:21 -03:00
parent b42b28a3a2
commit a34fc90998

View File

@ -2,11 +2,12 @@ import i18next from 'i18next'
import RNLanguages from 'react-native-languages'; import RNLanguages from 'react-native-languages';
import resources from './resources'; import resources from './resources';
export const initTranslation = ()=>{ export const initTranslation = ()=>{
i18next.init({ i18next.init({
compatibilityJSON: 'v3', compatibilityJSON: 'v3',
lng: RNLanguages.language, lng: RNLanguages.language,
resources: resources, resources: resources,
fallbackLng: 'en', fallbackLng: 'en',
}) })
i18next.changeLanguage(RNLanguages.language);
} }