Skip to content

Commit

Permalink
fix: use i18n translation for installer page
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube committed Aug 12, 2023
1 parent 11d8f9f commit 72fd24e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion assets/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@
"widgetTitle": "Installer",
"installType": "Select install type",
"installTypeDescription": "Select the installation type to proceed with.",

"installButton": "Install",
"installRootButton": "Install as Root",
"installRootType": "Root",
"installNonRootType": "Non-root",
"installRecommendedType": "Recommended",

"pressBackAgain": "Press back again to cancel",
"openButton": "Open",
"shareButton": "Share file",
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/views/installer/installer_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ class InstallerViewModel extends BaseViewModel {
),
),
RadioListTile(
title: const Text('Non-root'),
subtitle: const Text('Recommended'),
title: I18nText('installerView.installNonRootType'),
subtitle: I18nText('installerView.installRecommendedType'),
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
value: 0,
groupValue: value,
Expand All @@ -216,7 +216,7 @@ class InstallerViewModel extends BaseViewModel {
},
),
RadioListTile(
title: const Text('Root'),
title: I18nText('installerView.installRootType'),
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
value: 1,
groupValue: value,
Expand Down

0 comments on commit 72fd24e

Please sign in to comment.