Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Plural formatting for `TimeIndicator` `accessibilityLabel` (#7826)

authored by

surfdude29 and committed by
GitHub
a383b9ba bf4d3e89

+7 -2
+7 -2
src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx
··· 1 1 import {StyleProp, ViewStyle} from 'react-native' 2 2 import {View} from 'react-native' 3 - import {msg} from '@lingui/macro' 3 + import {msg, plural} from '@lingui/macro' 4 4 import {useLingui} from '@lingui/react' 5 5 6 6 import {atoms as a, useTheme} from '#/alf' ··· 30 30 return ( 31 31 <View 32 32 pointerEvents="none" 33 - accessibilityLabel={_(msg`Time remaining: ${time} seconds`)} 33 + accessibilityLabel={_( 34 + msg`Time remaining: ${plural(Number(time) || 0, { 35 + one: '# second', 36 + other: '# seconds', 37 + })}`, 38 + )} 34 39 accessibilityHint="" 35 40 style={[ 36 41 {