Skip to content

Commit

Permalink
TYS-13: Language setting adapts to device language
Browse files Browse the repository at this point in the history
  • Loading branch information
Bremade committed Oct 30, 2023
1 parent 4ce7a72 commit c9e04cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"settingsDepartureCountSliderTitle": "Anzahl der Abfahrten",
"settingsDepartureCountTitle": "Anzahl der Abfahrten",
"settingsLanguageTitle": "Sprache",
"settingsLanguageValue": "Deutsch",
"settingsSectionCommon": "Allgemein",
"settingsSectionDeparture": "Abfahrten",
"settingsThemeSwitchTitle": "Farbschema Wechseln"
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"settingsDepartureCountSliderTitle": "Departure count",
"settingsDepartureCountTitle": "Departure Count",
"settingsLanguageTitle": "Language",
"settingsLanguageValue": "English",
"settingsSectionCommon": "Common",
"settingsSectionDeparture": "Departures",
"settingsThemeSwitchTitle": "Switch Theme"
Expand Down
5 changes: 3 additions & 2 deletions lib/modules/settings/views/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ class SettingsPage extends HookConsumerWidget {
SettingsSection(
title: Text(AppLocalizations.of(context)!.settingsSectionCommon),
tiles: <SettingsTile>[
SettingsTile.navigation(
SettingsTile(
leading: const Icon(Icons.language),
title:
Text(AppLocalizations.of(context)!.settingsLanguageTitle),
value: const Text("English"),
value:
Text(AppLocalizations.of(context)!.settingsLanguageValue),
),
SettingsTile.switchTile(
activeSwitchColor:
Expand Down

0 comments on commit c9e04cf

Please sign in to comment.