feat(mobile): use Weblate for i18n (2) (#17620)

* feat(mobile): use Weblate for i18n (2)

* remove old translation files

* dedup keys

* remove migration report

* chore

* remove localizely.yml
This commit is contained in:
Alex
2025-04-15 10:54:26 -05:00
committed by GitHub
parent 17e720440d
commit b2c903c000
156 changed files with 25537 additions and 30968 deletions

View File

@@ -29,7 +29,7 @@ class PersonNameEditForm extends HookConsumerWidget {
return AlertDialog(
title: const Text(
"search_page_person_add_name_dialog_title",
"add_a_name",
style: TextStyle(fontWeight: FontWeight.bold),
).tr(),
content: SingleChildScrollView(
@@ -37,7 +37,7 @@ class PersonNameEditForm extends HookConsumerWidget {
controller: controller,
autofocus: true,
decoration: InputDecoration(
hintText: 'search_page_person_add_name_dialog_hint'.tr(),
hintText: 'name'.tr(),
border: const OutlineInputBorder(),
errorText: isError.value ? 'Error occured' : null,
),
@@ -49,7 +49,7 @@ class PersonNameEditForm extends HookConsumerWidget {
PersonNameEditFormResult(false, ''),
),
child: Text(
"search_page_person_add_name_dialog_cancel",
"cancel",
style: TextStyle(
color: Colors.red[300],
fontWeight: FontWeight.bold,
@@ -68,7 +68,7 @@ class PersonNameEditForm extends HookConsumerWidget {
}
},
child: Text(
"search_page_person_add_name_dialog_save",
"save",
style: TextStyle(
color: context.primaryColor,
fontWeight: FontWeight.bold,

View File

@@ -47,7 +47,7 @@ class CameraPicker extends HookConsumerWidget {
.toList(),
_ => [],
},
label: const Text('search_filter_camera_make').tr(),
label: const Text('make').tr(),
controller: makeTextController,
leadingIcon: const Icon(Icons.photo_camera_rounded),
onSelected: (value) {
@@ -76,7 +76,7 @@ class CameraPicker extends HookConsumerWidget {
.toList(),
_ => [],
},
label: const Text('search_filter_camera_model').tr(),
label: const Text('model').tr(),
controller: modelTextController,
leadingIcon: const Icon(Icons.camera),
onSelected: (value) {

View File

@@ -42,7 +42,7 @@ class DisplayOptionPicker extends HookWidget {
},
),
CheckboxListTile(
title: const Text('search_filter_display_option_favorite').tr(),
title: const Text('favorite').tr(),
value: options.value[DisplayOption.favorite],
onChanged: (value) {
options.value = {
@@ -53,7 +53,7 @@ class DisplayOptionPicker extends HookWidget {
},
),
CheckboxListTile(
title: const Text('search_filter_display_option_archive').tr(),
title: const Text('archive').tr(),
value: options.value[DisplayOption.archive],
onChanged: (value) {
options.value = {

View File

@@ -49,7 +49,7 @@ class FilterBottomSheetScaffold extends StatelessWidget {
onClear();
context.pop();
},
child: const Text('action_common_clear').tr(),
child: const Text('clear').tr(),
),
const SizedBox(width: 8),
ElevatedButton(

View File

@@ -63,7 +63,7 @@ class LocationPicker extends HookConsumerWidget {
.toList(),
_ => [],
},
label: const Text('search_filter_location_country').tr(),
label: const Text('country').tr(),
controller: countryTextController,
onSelected: (value) {
if (value.toString() == selectedCountry.value) {
@@ -95,7 +95,7 @@ class LocationPicker extends HookConsumerWidget {
.toList(),
_ => [],
},
label: const Text('search_filter_location_state').tr(),
label: const Text('state').tr(),
controller: stateTextController,
onSelected: (value) {
if (value.toString() == selectedState.value) {
@@ -126,7 +126,7 @@ class LocationPicker extends HookConsumerWidget {
.toList(),
_ => [],
},
label: const Text('search_filter_location_city').tr(),
label: const Text('city').tr(),
controller: cityTextController,
onSelected: (value) {
selectedCity.value = value.toString();

View File

@@ -17,8 +17,8 @@ class MediaTypePicker extends HookWidget {
shrinkWrap: true,
children: [
RadioListTile(
key: const Key("search_filter_media_type_all"),
title: const Text("search_filter_media_type_all").tr(),
key: const Key("all"),
title: const Text("all").tr(),
value: AssetType.other,
onChanged: (value) {
selectedMediaType.value = value!;
@@ -27,8 +27,8 @@ class MediaTypePicker extends HookWidget {
groupValue: selectedMediaType.value,
),
RadioListTile(
key: const Key("search_filter_media_type_image"),
title: const Text("search_filter_media_type_image").tr(),
key: const Key("image"),
title: const Text("image").tr(),
value: AssetType.image,
onChanged: (value) {
selectedMediaType.value = value!;
@@ -37,8 +37,8 @@ class MediaTypePicker extends HookWidget {
groupValue: selectedMediaType.value,
),
RadioListTile(
key: const Key("search_filter_media_type_video"),
title: const Text("search_filter_media_type_video").tr(),
key: const Key("video"),
title: const Text("video").tr(),
value: AssetType.video,
onChanged: (value) {
selectedMediaType.value = value!;

View File

@@ -35,7 +35,7 @@ class PeoplePicker extends HookConsumerWidget {
onChanged: (value) => searchQuery.value = value,
onTapOutside: (_) => formFocus.unfocus(),
filled: true,
hintText: 'search_filter_people_hint'.tr(),
hintText: 'filter_people'.tr(),
),
),
Padding(