-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: wrong locale for EN * fix: eas * chore: upgrade version
- Loading branch information
1 parent
f421bc3
commit ffdda39
Showing
4 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { getLocales } from 'expo-localization'; | ||
|
||
export type Locale = 'en' | 'fr'; | ||
export type LocaleI18n = 'en-US' | 'fr-FR'; | ||
|
||
const LANGUAGE_CODE = getLocales()[0].languageCode; | ||
export const REGION_CODE = getLocales()[0].regionCode; | ||
export const LOCALE = LANGUAGE_CODE === 'fr' ? 'fr' : 'en'; | ||
export const LOCALE_I18N = LANGUAGE_CODE === 'fr' ? 'fr-FR' : 'fr-FR'; | ||
|
||
export type Locale = 'en' | 'fr'; | ||
export type LocaleI18n = 'fr-FR' | 'fr-FR'; | ||
export const LOCALE: Locale = LANGUAGE_CODE === 'fr' ? 'fr' : 'en'; | ||
export const LOCALE_I18N: LocaleI18n = | ||
LANGUAGE_CODE === 'fr' ? 'fr-FR' : 'en-US'; |