mirror of
https://github.com/immich-app/immich.git
synced 2025-12-10 09:33:58 +09:00
Localizely: Translations update (#5902)
* chore(mobile): translation update * fix localizely plurals form * more fix
This commit is contained in:
@@ -42,15 +42,17 @@ class SharedLinkItem extends ConsumerWidget {
|
||||
if (difference.inHours % 24 > 12) {
|
||||
dayDifference += 1;
|
||||
}
|
||||
expiresText = "shared_link_expires_days".plural(dayDifference);
|
||||
expiresText =
|
||||
"shared_link_expires_days".tr(args: [dayDifference.toString()]);
|
||||
} else if (difference.inHours > 0) {
|
||||
expiresText = "shared_link_expires_hours".plural(difference.inHours);
|
||||
expiresText = "shared_link_expires_hours"
|
||||
.tr(args: [difference.inHours.toString()]);
|
||||
} else if (difference.inMinutes > 0) {
|
||||
expiresText =
|
||||
"shared_link_expires_minutes".plural(difference.inMinutes);
|
||||
expiresText = "shared_link_expires_minutes"
|
||||
.tr(args: [difference.inMinutes.toString()]);
|
||||
} else if (difference.inSeconds > 0) {
|
||||
expiresText =
|
||||
"shared_link_expires_seconds".plural(difference.inSeconds);
|
||||
expiresText = "shared_link_expires_seconds"
|
||||
.tr(args: [difference.inSeconds.toString()]);
|
||||
}
|
||||
}
|
||||
return Text(
|
||||
|
||||
@@ -237,27 +237,28 @@ class SharedLinkEditPage extends HookConsumerWidget {
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 30,
|
||||
label: "shared_link_edit_expire_after_option_minutes".plural(30),
|
||||
label:
|
||||
"shared_link_edit_expire_after_option_minutes".tr(args: ["30"]),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60,
|
||||
label: "shared_link_edit_expire_after_option_hours".plural(1),
|
||||
label: "shared_link_edit_expire_after_option_hour".tr(),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 6,
|
||||
label: "shared_link_edit_expire_after_option_hours".plural(6),
|
||||
label: "shared_link_edit_expire_after_option_hours".tr(args: ["6"]),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 24,
|
||||
label: "shared_link_edit_expire_after_option_days".plural(1),
|
||||
label: "shared_link_edit_expire_after_option_day".tr(),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 24 * 7,
|
||||
label: "shared_link_edit_expire_after_option_days".plural(7),
|
||||
label: "shared_link_edit_expire_after_option_days".tr(args: ["7"]),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 24 * 30,
|
||||
label: "shared_link_edit_expire_after_option_days".plural(30),
|
||||
label: "shared_link_edit_expire_after_option_days".tr(args: ["30"]),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user