Skip to content

Commit a7fbfa8

Browse files
authored
Pluralisation improvement for translation (#1227)
1 parent 3337a69 commit a7fbfa8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

public/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"editorPanel": {
1313
"ariaLabel": "editor text input",
1414
"characterLimitError": "Error: Character limit reached",
15-
"characterLimitExplanation": "Files in the editor are limited to {{maxCharacters}} characters",
15+
"characterLimitExplanation_other": "Files in the editor are limited to {{count}} characters",
1616
"viewOnly": "View only",
1717
"close": "close"
1818
},

public/translations/xx-XX.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"editorPanel": {
1313
"ariaLabel": "Texteingabe des Editors",
1414
"characterLimitError": "Fehler: Zeichenlimit erreicht",
15-
"characterLimitExplanation": "Dateien im Editor sind auf {{maxCharacters}} Zeichen begrenzt",
15+
"characterLimitExplanation_other": "Dateien im Editor sind auf {{count}} Zeichen begrenzt",
1616
"viewOnly": "Nur Ansicht",
1717
"close": "schließen"
1818
},

src/components/Editor/EditorPanel/EditorPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const EditorPanel = ({ extension = "html", fileName = "index" }) => {
171171
title={t("editorPanel.characterLimitError")}
172172
type="error"
173173
text={t("editorPanel.characterLimitExplanation", {
174-
maxCharacters: MAX_CHARACTERS,
174+
count: MAX_CHARACTERS,
175175
})}
176176
/>
177177
)}

0 commit comments

Comments
 (0)