Fix locales

Reordering locales will make English default now.
Additionally, one translation bug was fixed.
This commit is contained in:
Marco 2024-12-16 15:39:49 +01:00
parent e8c70f57cd
commit b5e0d19536
3 changed files with 7 additions and 5 deletions

View File

@ -33,8 +33,8 @@ android {
applicationId = "de.swgross.calorimeter"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = 2
versionName = "1.0.2"
versionCode = 3
versionName = "1.0.3"
}
signingConfigs {

View File

@ -2,7 +2,7 @@
"ok": "OK",
"name": "Name",
"amount": "Menge",
"amountPer": "Amount in 100 g/ml",
"amountPer": "Menge in 100 g/ml",
"kcalper": "kcal pro 100 g/ml",
"kcalToday": "kcal heute",
"menu": "Menü",

View File

@ -77,7 +77,6 @@ class MainApp extends StatelessWidget {
}
return MaterialApp.router(
//locale: Locale('de'),
routerConfig: GoRouter(
routes: [
GoRoute(
@ -91,7 +90,10 @@ class MainApp extends StatelessWidget {
],
),
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
supportedLocales: [
Locale('en'),
Locale('de'),
],
theme: ThemeData(
dividerTheme: const DividerThemeData(space: 2),
colorScheme: ColorScheme.fromSeed(