Add plural formatting for several strings (#9576)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {useCallback, useState} from 'react'
|
||||
import {Keyboard, type StyleProp, View, type ViewStyle} from 'react-native'
|
||||
import {msg, Trans} from '@lingui/macro'
|
||||
import {msg, Plural, Trans} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
|
||||
import {MAX_ALT_TEXT} from '#/lib/constants'
|
||||
@@ -134,7 +134,10 @@ function SubtitleDialogInner({
|
||||
a.leading_snug,
|
||||
a.mt_md,
|
||||
]}>
|
||||
<Trans>Alt text must be less than {MAX_ALT_TEXT} characters.</Trans>
|
||||
<Plural
|
||||
value={MAX_ALT_TEXT}
|
||||
other="Alt text must be less than # characters."
|
||||
/>
|
||||
</Text>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user