implementing fall back to lenguage in Intl
This commit is contained in:
parent
40876783bf
commit
715d15f91d
@ -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',
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue
Block a user