From 10e22f9d4ae77ae216075db43be48169e00c3687 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 30 Oct 2022 14:49:37 +0100 Subject: [PATCH] Fixed #418 --- src/components/Parse/HTML.tsx | 4 ++-- src/i18n/en/components/parse.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Parse/HTML.tsx b/src/components/Parse/HTML.tsx index bd0fd13a..2456ad18 100644 --- a/src/components/Parse/HTML.tsx +++ b/src/components/Parse/HTML.tsx @@ -272,9 +272,9 @@ const ParseHTML = React.memo( }} children={t('HTML.expanded', { hint: expandHint, - totalLines: + moreLines: numberOfLines > 1 && typeof totalLines === 'number' - ? t('HTML.totalLines', { count: totalLines }) + ? t('HTML.moreLines', { count: totalLines - numberOfLines }) : '' })} /> diff --git a/src/i18n/en/components/parse.json b/src/i18n/en/components/parse.json index 2305906a..0583edef 100644 --- a/src/i18n/en/components/parse.json +++ b/src/i18n/en/components/parse.json @@ -1,8 +1,8 @@ { "HTML": { "accessibilityHint": "Tap to expand or collapse content", - "expanded": "{{hint}}{{totalLines}}", - "totalLines": " ({{count}} lines)", + "expanded": "{{hint}}{{moreLines}}", + "moreLines": " ({{count}} more lines)", "defaultHint": "Long toot" } } \ No newline at end of file