Mark string for translation and add context (#10805)

This commit is contained in:
surfdude29
2026-06-09 14:03:52 +01:00
committed by GitHub
parent 8015c26955
commit 2cb225dddd
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -523,7 +523,11 @@ function GalleryImage({
a.font_bold,
largeAltBadge ? a.text_xs : {fontSize: 8},
]}>
{index + 1}/{imageCount}
<Trans
context="gallery-badge-image-position-numbers"
comment="Badge showing the current image position out of the total number of images in a gallery.">
{index + 1}/{imageCount}
</Trans>
</Text>
</View>
) : null}
+3 -1
View File
@@ -127,7 +127,9 @@ export function JoinRequest({setScreenState}: Props) {
a.leading_snug,
t.atoms.text_contrast_medium,
]}>
<Trans comment="The number of active group chat members out of the total number allowed.">
<Trans
context="group-chat-member-count"
comment="The number of active group chat members out of the total number allowed.">
{data.joinLinkPreviews[0].memberCount}/
{data.joinLinkPreviews[0].memberLimit}
</Trans>