Modified to use "measure word" in "# others" (#4607)

zio/stable
Takayuki KUSANO 2024-06-23 17:16:20 +09:00 committed by GitHub
parent de1b7f7045
commit 0a0c738790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 5 deletions

View File

@ -493,17 +493,29 @@ function Footer({
</Text>
are included in your starter pack
</Trans>
) : (
<Trans>
) : state.currentStep === 'Profiles' ? (
<Trans context="profiles">
<Text style={[a.font_bold, textStyles]}>
{getName(items[initialNamesIndex])},{' '}
</Text>
<Text style={[a.font_bold, textStyles]}>
{getName(items[initialNamesIndex + 1])},{' '}
</Text>
and {items.length - 2}{' '}
<Plural value={items.length - 2} one="other" other="others" /> are
included in your starter pack
and{' '}
<Plural value={items.length - 2} one="# other" other="# others" />{' '}
are included in your starter pack
</Trans>
) : (
<Trans context="feeds">
<Text style={[a.font_bold, textStyles]}>
{getName(items[initialNamesIndex])},{' '}
</Text>
<Text style={[a.font_bold, textStyles]}>
{getName(items[initialNamesIndex + 1])},{' '}
</Text>
and{' '}
<Plural value={items.length - 2} one="# other" other="# others" />{' '}
are included in your starter pack
</Trans>
)}
</Text>