add plural formatting for too long handle error (#7999)

This commit is contained in:
surfdude29
2025-04-01 23:51:39 +01:00
committed by GitHub
parent 98fe7edbc8
commit ffbcbf814e
+6 -2
View File
@@ -1,6 +1,6 @@
import React, {useRef} from 'react' import React, {useRef} from 'react'
import {View} from 'react-native' import {View} from 'react-native'
import {msg, Trans} from '@lingui/macro' import {msg, Plural, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import { import {
@@ -182,7 +182,11 @@ export function StepHandle() {
draftValue.length > MAX_SERVICE_HANDLE_LENGTH ? ( draftValue.length > MAX_SERVICE_HANDLE_LENGTH ? (
<Text style={[a.text_md, a.flex_1]}> <Text style={[a.text_md, a.flex_1]}>
<Trans> <Trans>
No longer than {MAX_SERVICE_HANDLE_LENGTH} characters No longer than{' '}
<Plural
value={MAX_SERVICE_HANDLE_LENGTH}
other="# characters"
/>
</Trans> </Trans>
</Text> </Text>
) : ( ) : (