Merge pull request #21 from gustavo-em/fallback_lenguage
Implementing fall back to the language in Intl library
This commit is contained in:
commit
ac300e2ba8
@ -2,10 +2,11 @@ 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-US',
|
||||||
})
|
})
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user