mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
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:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user