Skip to content

Commit

Permalink
Update UserService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Aug 7, 2024
1 parent caee8d9 commit add3b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobile/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ export const getLanguage = async () => {
return lang
}

lang = Localization.locale.includes('fr') ? 'fr' : env.DEFAULT_LANGUAGE
const locales = Localization.getLocales()
lang = locales.length > 0 && locales[0].languageCode === 'fr' ? 'fr' : env.DEFAULT_LANGUAGE
return lang
}

Expand Down

0 comments on commit add3b31

Please sign in to comment.