Merge pull request #21 from gustavo-em/fallback_lenguage

Implementing fall back to the language in Intl library
This commit is contained in:
Tiago Jacobs 2022-04-13 14:52:14 -03:00 committed by GitHub
commit ac300e2ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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