From d02e45a72c52e4050aeb17cefeeb37540201a328 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 14 Aug 2022 22:54:54 +0200 Subject: [PATCH] Correct duplicate string --- src/components/Parse/HTML.tsx | 2 +- src/i18n/en/components/parse.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Parse/HTML.tsx b/src/components/Parse/HTML.tsx index 5a112634..b42b28c8 100644 --- a/src/components/Parse/HTML.tsx +++ b/src/components/Parse/HTML.tsx @@ -277,7 +277,7 @@ const ParseHTML = React.memo( color: colors.primaryDefault, marginRight: StyleConstants.Spacing.S }} - children={t(`HTML.expanded.${expanded.toString()}`, { + children={t('HTML.expanded', { hint: expandHint, totalLines: numberOfLines > 1 && typeof totalLines === 'number' diff --git a/src/i18n/en/components/parse.json b/src/i18n/en/components/parse.json index 7d27c1d0..2305906a 100644 --- a/src/i18n/en/components/parse.json +++ b/src/i18n/en/components/parse.json @@ -1,10 +1,7 @@ { "HTML": { "accessibilityHint": "Tap to expand or collapse content", - "expanded": { - "true": "{{hint}}{{totalLines}}", - "false": "{{hint}}{{totalLines}}" - }, + "expanded": "{{hint}}{{totalLines}}", "totalLines": " ({{count}} lines)", "defaultHint": "Long toot" }