Skip to content

Commit

Permalink
feat: v3.1.1 (#105)
Browse files Browse the repository at this point in the history
* fix: wrong locale for EN

* fix: eas

* chore: upgrade version
  • Loading branch information
theo-mesnil authored Aug 5, 2024
1 parent f421bc3 commit ffdda39
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
8 changes: 5 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
},
"package": "com.theomesnil.WhatToWatch",
"playStoreUrl": "https://play.google.com/store/apps/details?id=com.theomesnil.WhatToWatch",
"versionCode": 7
"versionCode": 8
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"description": "Looking for a movie or series idea for tonight? WhatToWatch is the simplest and fastest way to discover movies, series, and where to watch them. This app is powered by the themoviedb (TMDb) database.",
"extra": {
"eas": {
Expand Down Expand Up @@ -42,7 +44,7 @@
],
"scheme": "whattowatch",
"slug": "WhatToWatch",
"version": "3.1.0",
"version": "3.1.1",
"splash": {
"image": "src/assets/splash.png",
"resizeMode": "contain",
Expand Down
4 changes: 2 additions & 2 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"distribution": "internal",
"channel": "development"
},
"development:simulator": {
"development-simulator": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
},
"channel": "development:simulator"
"channel": "development-simulator"
},
"preview": {
"distribution": "internal",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"start": "expo start",
"dev": "expo start --dev-client",
"dev:android": "eas build --profile development:simulator --platform android",
"dev:ios": "eas build --profile development:simulator --platform ios",
"dev:android": "eas build --profile development-simulator --platform android",
"dev:ios": "eas build --profile development-simulator --platform ios",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
Expand Down
11 changes: 6 additions & 5 deletions src/constants/locales.ts
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';

0 comments on commit ffdda39

Please sign in to comment.