implementing fall back to lenguage in Intl

This commit is contained in:
Gustavo Emanuel Farias Rosa 2022-04-12 17:59:15 -03:00
parent 40876783bf
commit 715d15f91d

View File

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