fix(mobile): Mark more strings for translation (#5132)

* fix(mobile): Mark more strings for translation

Moving more strings to the `i18n` JSON file, and also including their
es-US translations.

* Add more translatable strings
This commit is contained in:
Michael Manganiello
2023-11-18 21:32:28 -05:00
committed by GitHub
parent f5ce3deb3a
commit 6d310d6297
14 changed files with 181 additions and 72 deletions

View File

@@ -76,18 +76,21 @@ class MapSettingsDialog extends HookConsumerWidget {
showRelativeDate.value = value!;
},
dropdownMenuEntries: [
const DropdownMenuEntry(value: 0, label: "All"),
const DropdownMenuEntry(
DropdownMenuEntry(
value: 0,
label: "map_settings_date_range_option_all".tr(),
),
DropdownMenuEntry(
value: 1,
label: "Past 24 hours",
label: "map_settings_date_range_option_days".plural(1),
),
const DropdownMenuEntry(
DropdownMenuEntry(
value: 7,
label: "Past 7 days",
label: "map_settings_date_range_option_days".plural(7),
),
const DropdownMenuEntry(
DropdownMenuEntry(
value: 30,
label: "Past 30 days",
label: "map_settings_date_range_option_days".plural(30),
),
DropdownMenuEntry(
value: now
@@ -102,7 +105,7 @@ class MapSettingsDialog extends HookConsumerWidget {
),
)
.inDays,
label: "Past year",
label: "map_settings_date_range_option_years".plural(1),
),
DropdownMenuEntry(
value: now
@@ -117,7 +120,7 @@ class MapSettingsDialog extends HookConsumerWidget {
),
)
.inDays,
label: "Past 3 years",
label: "map_settings_date_range_option_years".plural(3),
),
],
);