Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(photos):preserve-countdown-formatting

Aswin Asok812b97f57eed
diff --git a/web/apps/photos/src/components/app-lock/AppLockUnlockForm.tsx b/web/apps/photos/src/components/app-lock/AppLockUnlockForm.tsx
index 4727ae2b91..78a2beface 100644
--- a/web/apps/photos/src/components/app-lock/AppLockUnlockForm.tsx
+++ b/web/apps/photos/src/components/app-lock/AppLockUnlockForm.tsx
@@ -85,8 +85,8 @@ const useCooldownState = (
remainingMs: remaining,
text:
minutes > 0
- ? `${t("minutes_count_short", { count: minutes })} ${t("seconds_count_short", { count: seconds })}`
- : t("seconds_count_short", { count: seconds }),
+ ? `${String(minutes)}m ${String(seconds)}s`
+ : `${String(seconds)}s`,
};
};
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index fb1fff00d9..07ce50c011 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -486,8 +486,8 @@
"slideshow": "Slideshow",
"slideshow_settings": "Slideshow settings",
"time_per_photo": "Time per photo",
- "seconds_count_short": "{{count, number}}s",
- "minutes_count_short": "{{count, number}}m",
+ "seconds_count_short": "{{count}}s",
+ "minutes_count_short": "{{count}}m",
"photo_order": "Photo order",
"in_order": "In order",
"shuffle": "Shuffle",