From a383b9ba28d0fffa5692ffcc4f9ca744924a7d14 Mon Sep 17 00:00:00 2001
From: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Date: Mon, 24 Feb 2025 21:10:53 +0000
Subject: Plural formatting for `TimeIndicator` `accessibilityLabel` (#7826)

---
 src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx')

diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx
index 75e544aca..95401309f 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx
@@ -1,6 +1,6 @@
 import {StyleProp, ViewStyle} from 'react-native'
 import {View} from 'react-native'
-import {msg} from '@lingui/macro'
+import {msg, plural} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
 import {atoms as a, useTheme} from '#/alf'
@@ -30,7 +30,12 @@ export function TimeIndicator({
   return (
     <View
       pointerEvents="none"
-      accessibilityLabel={_(msg`Time remaining: ${time} seconds`)}
+      accessibilityLabel={_(
+        msg`Time remaining: ${plural(Number(time) || 0, {
+          one: '# second',
+          other: '# seconds',
+        })}`,
+      )}
       accessibilityHint=""
       style={[
         {
-- 
cgit 1.4.1

