Correct duplicate string

This commit is contained in:
xmflsct 2022-08-14 22:54:54 +02:00
parent c125382965
commit d02e45a72c
2 changed files with 2 additions and 5 deletions

View File

@ -277,7 +277,7 @@ const ParseHTML = React.memo(
color: colors.primaryDefault, color: colors.primaryDefault,
marginRight: StyleConstants.Spacing.S marginRight: StyleConstants.Spacing.S
}} }}
children={t(`HTML.expanded.${expanded.toString()}`, { children={t('HTML.expanded', {
hint: expandHint, hint: expandHint,
totalLines: totalLines:
numberOfLines > 1 && typeof totalLines === 'number' numberOfLines > 1 && typeof totalLines === 'number'

View File

@ -1,10 +1,7 @@
{ {
"HTML": { "HTML": {
"accessibilityHint": "Tap to expand or collapse content", "accessibilityHint": "Tap to expand or collapse content",
"expanded": { "expanded": "{{hint}}{{totalLines}}",
"true": "{{hint}}{{totalLines}}",
"false": "{{hint}}{{totalLines}}"
},
"totalLines": " ({{count}} lines)", "totalLines": " ({{count}} lines)",
"defaultHint": "Long toot" "defaultHint": "Long toot"
} }