From a34fc90998d5634f81a713a25623bc2b7021704b Mon Sep 17 00:00:00 2001 From: Gustavo Emanuel Farias Rosa Date: Thu, 14 Apr 2022 16:31:21 -0300 Subject: [PATCH] fix to string language --- react-native/app/translations/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react-native/app/translations/index.ts b/react-native/app/translations/index.ts index 9bd773f..27a7af1 100644 --- a/react-native/app/translations/index.ts +++ b/react-native/app/translations/index.ts @@ -2,11 +2,12 @@ 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, fallbackLng: 'en', }) + i18next.changeLanguage(RNLanguages.language); } \ No newline at end of file