Skip to content

Commit a21c1f0

Browse files
authored
Merge pull request #479 from AppQuality/UN-574-UN-575-UN-576-giommi-copywriter
refactor(i18n): add plural to siblings show more
2 parents febcf72 + 66cb91b commit a21c1f0

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/common/components/BugDetail/BugDuplicates/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ export const BugDuplicates = ({
4747
/>
4848
{!isOpen && data && data.siblings.length > MAX_SIBLING_SIZE ? (
4949
<Button isBasic onClick={() => setIsOpen(!isOpen)}>
50-
<Trans i18nKey="__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE">
51-
Show more +{{ number: data.siblings.length - MAX_SIBLING_SIZE }}
50+
<Trans
51+
count={data.siblings.length - MAX_SIBLING_SIZE}
52+
i18nKey="__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE"
53+
>
54+
Show more +{{ count: data.siblings.length - MAX_SIBLING_SIZE }}
5255
</Trans>
5356
</Button>
5457
) : null}

src/locales/en/translation.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@
6060
"__BUGS_PAGE_BUG_DETAIL_EXPECTED_RESULT_LABEL": "Expected result",
6161
"__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW": "Under revision",
6262
"__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW_TOOLTIP": "We are doing a new check on this bug",
63-
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_SUBTITLE": "Bugs reported on different devices and replicating the behavior of the unique bug",
63+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_SUBTITLE": "Bugs reported on other devices and replicating the behavior of the unique bug",
6464
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_TITLE": "Duplicates ({{number}})",
6565
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_FATHER_SUBTITLE": "The bug to be used as reference",
6666
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_FATHER_TITLE": "Unique bug",
67-
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE": "Show more +{{number}}",
67+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE_one": "+ other {{count}}",
68+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE_other": "+ other {{count}}",
6869
"__BUGS_PAGE_BUG_DETAIL_TAGS_ADD_NEW": "Add",
6970
"__BUGS_PAGE_BUG_DETAIL_TAGS_LABEL": "Tags",
7071
"__BUGS_PAGE_BUG_DETAIL_TAGS_PLACEHOLDER": "Search or add other tags",
@@ -119,8 +120,8 @@
119120
"__BUGS_PAGE_HEADER_UNIQUE_BUGS_ON_TOTAL": "<0><0>{{numerator}} </0><1>unique bugs</1><2>/{{denominator}} tot.</2><3> of which</3></0>",
120121
"__BUGS_PAGE_LIGHTBOX_TITLE": "BUG ID {{bugId}}",
121122
"__BUGS_PAGE_LIGHTBOX_TITLE_ATTACHMENTS_COUNT": "| Images and video attached ({{attachments}})",
122-
"__BUGS_PAGE_OTHER_SEVERITIES": "other severities",
123-
"__BUGS_PAGE_OTHER_USE_CASES": "other use cases",
123+
"__BUGS_PAGE_OTHER_SEVERITIES": "Other severities",
124+
"__BUGS_PAGE_OTHER_USE_CASES": "Other use cases",
124125
"__BUGS_PAGE_SEVERITY": "Severity",
125126
"__BUGS_PAGE_SHARE_BUG_MODAL_CTA_ERROR_TEXT": "Something went wrong, please retry.",
126127
"__BUGS_PAGE_SHARE_BUG_MODAL_CTA_SUCCESS_TEXT": "Link copied",

src/locales/it/translation.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@
6262
"__BUGS_PAGE_BUG_DETAIL_EXPECTED_RESULT_LABEL": "Risultato previsto",
6363
"__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW": "In revisione",
6464
"__BUGS_PAGE_BUG_DETAIL_NEED_REVIEW_TOOLTIP": "Stiamo facendo un nuovo controllo su questo bug",
65-
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_SUBTITLE": "Bug segnalati su diversi dispositivi e che replicano il comportamento del bug unico",
65+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_SUBTITLE": "Bug segnalati su altri dispositivi e che replicano il comportamento del bug unico",
6666
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_DUPLICATES_TITLE": "Duplicati ({{number}})",
6767
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_FATHER_SUBTITLE": "Il bug da prendere come riferimento",
6868
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_FATHER_TITLE": "Bug unico",
69-
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE": "Mostra altro +{{number}}",
69+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE_one": "+ {{count}} altro",
70+
"__BUGS_PAGE_BUG_DETAIL_SIBLINGS_SHOW_MORE_other": "+ altri {{count}}",
7071
"__BUGS_PAGE_BUG_DETAIL_TAGS_ADD_NEW": "Aggiungi",
7172
"__BUGS_PAGE_BUG_DETAIL_TAGS_LABEL": "Tag",
7273
"__BUGS_PAGE_BUG_DETAIL_TAGS_PLACEHOLDER": "Cerca o aggiungi altri tag",

0 commit comments

Comments
 (0)