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
@@ -16,7 +16,7 @@ class AllMotionPhotosPage extends HookConsumerWidget {
return Scaffold(
appBar: AppBar(
title: const Text('motion_photos_page_title').tr(),
title: const Text('search_page_motion_photos').tr(),
leading: IconButton(
onPressed: () => context.maybePop(),
icon: const Icon(Icons.arrow_back_ios_rounded),
+1 -1
View File
@@ -18,7 +18,7 @@ class AllPeoplePage extends HookConsumerWidget {
return Scaffold(
appBar: AppBar(
title: const Text(
'all_people_page_title',
'people',
).tr(),
leading: IconButton(
onPressed: () => context.maybePop(),
+1 -1
View File
@@ -19,7 +19,7 @@ class AllPlacesPage extends HookConsumerWidget {
return Scaffold(
appBar: AppBar(
title: const Text(
'curated_location_page_title',
'places',
).tr(),
leading: IconButton(
onPressed: () => context.maybePop(),
+1 -1
View File
@@ -13,7 +13,7 @@ class AllVideosPage extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return Scaffold(
appBar: AppBar(
title: const Text('all_videos_page_title').tr(),
title: const Text('videos').tr(),
leading: IconButton(
onPressed: () => context.maybePop(),
icon: const Icon(Icons.arrow_back_ios_rounded),
@@ -55,7 +55,7 @@ class PersonResultPage extends HookConsumerWidget {
ListTile(
leading: const Icon(Icons.edit_outlined),
title: const Text(
'search_page_person_edit_name',
'edit_name',
style: TextStyle(fontWeight: FontWeight.bold),
).tr(),
onTap: showEditNameDialog,
@@ -75,13 +75,13 @@ class PersonResultPage extends HookConsumerWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'search_page_person_add_name_title',
'add_a_name',
style: context.textTheme.titleMedium?.copyWith(
color: context.primaryColor,
),
).tr(),
Text(
'search_page_person_add_name_subtitle',
'find_them_fast',
style: context.textTheme.labelLarge,
).tr(),
],
+17 -17
View File
@@ -33,7 +33,7 @@ class SearchPage extends HookConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final textSearchType = useState<TextSearchType>(TextSearchType.context);
final searchHintText = useState<String>('contextual_search'.tr());
final searchHintText = useState<String>('sunrise_on_the_beach'.tr());
final textSearchController = useTextEditingController();
final filter = useState<SearchFilter>(
SearchFilter(
@@ -308,9 +308,9 @@ class SearchPage extends HookConsumerWidget {
end: filter.value.date.takenBefore ?? lastDate,
),
helpText: 'search_filter_date_title'.tr(),
cancelText: 'action_common_cancel'.tr(),
confirmText: 'action_common_select'.tr(),
saveText: 'action_common_save'.tr(),
cancelText: 'cancel'.tr(),
confirmText: 'select'.tr(),
saveText: 'save'.tr(),
errorFormatText: 'invalid_date_format'.tr(),
errorInvalidText: 'invalid_date'.tr(),
fieldStartHintText: 'start_date'.tr(),
@@ -372,10 +372,10 @@ class SearchPage extends HookConsumerWidget {
mediaTypeCurrentFilterWidget.value = Text(
assetType == AssetType.image
? 'search_filter_media_type_image'.tr()
? 'image'.tr()
: assetType == AssetType.video
? 'search_filter_media_type_video'.tr()
: 'search_filter_media_type_all'.tr(),
? 'video'.tr()
: 'all'.tr(),
style: context.textTheme.labelLarge,
);
}
@@ -427,7 +427,7 @@ class SearchPage extends HookConsumerWidget {
),
);
if (value) {
filterText.add('search_filter_display_option_archive'.tr());
filterText.add('archive'.tr());
}
break;
case DisplayOption.favorite:
@@ -437,7 +437,7 @@ class SearchPage extends HookConsumerWidget {
),
);
if (value) {
filterText.add('search_filter_display_option_favorite'.tr());
filterText.add('favorite'.tr());
}
break;
}
@@ -470,7 +470,7 @@ class SearchPage extends HookConsumerWidget {
showFilterBottomSheet(
context: context,
child: FilterBottomSheetScaffold(
title: 'search_filter_display_options_title'.tr(),
title: 'display_options'.tr(),
onSearch: search,
onClear: handleClear,
child: DisplayOptionPicker(
@@ -563,7 +563,7 @@ class SearchPage extends HookConsumerWidget {
child: ListTile(
leading: const Icon(Icons.image_search_rounded),
title: Text(
'search_filter_contextual'.tr(),
'search_by_context'.tr(),
style: context.textTheme.bodyLarge?.copyWith(
fontWeight: FontWeight.w500,
color: textSearchType.value == TextSearchType.context
@@ -576,7 +576,7 @@ class SearchPage extends HookConsumerWidget {
),
onPressed: () {
textSearchType.value = TextSearchType.context;
searchHintText.value = 'contextual_search'.tr();
searchHintText.value = 'sunrise_on_the_beach'.tr();
},
),
MenuItemButton(
@@ -596,14 +596,14 @@ class SearchPage extends HookConsumerWidget {
),
onPressed: () {
textSearchType.value = TextSearchType.filename;
searchHintText.value = 'filename_search'.tr();
searchHintText.value = 'file_name_or_extension'.tr();
},
),
MenuItemButton(
child: ListTile(
leading: const Icon(Icons.text_snippet_outlined),
title: Text(
'search_filter_description'.tr(),
'search_by_description'.tr(),
style: context.textTheme.bodyLarge?.copyWith(
fontWeight: FontWeight.w500,
color:
@@ -618,7 +618,7 @@ class SearchPage extends HookConsumerWidget {
),
onPressed: () {
textSearchType.value = TextSearchType.description;
searchHintText.value = 'description_search'.tr();
searchHintText.value = 'search_by_description_example'.tr();
},
),
],
@@ -675,7 +675,7 @@ class SearchPage extends HookConsumerWidget {
SearchFilterChip(
icon: Icons.people_alt_outlined,
onTap: showPeoplePicker,
label: 'search_filter_people'.tr(),
label: 'people'.tr(),
currentFilter: peopleCurrentFilterWidget.value,
),
SearchFilterChip(
@@ -687,7 +687,7 @@ class SearchPage extends HookConsumerWidget {
SearchFilterChip(
icon: Icons.camera_alt_outlined,
onTap: showCameraPicker,
label: 'search_filter_camera'.tr(),
label: 'camera'.tr(),
currentFilter: cameraCurrentFilterWidget.value,
),
SearchFilterChip(