From 0ea1415109d0a9d9d8dc08c4c308fb5dfda60485 Mon Sep 17 00:00:00 2001 From: Lois Wells Date: Thu, 10 Jul 2025 12:14:40 +0100 Subject: [PATCH] improving translation of character limit message --- public/translations/en.json | 2 +- public/translations/xx-XX.json | 2 +- src/components/Editor/EditorPanel/EditorPanel.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/translations/en.json b/public/translations/en.json index 545ae076a..1c1657db6 100644 --- a/public/translations/en.json +++ b/public/translations/en.json @@ -12,7 +12,7 @@ "editorPanel": { "ariaLabel": "editor text input", "characterLimitError": "Error: Character limit reached", - "characterLimitExplanation": "Files in the editor are limited to {{maxCharacters}} characters", + "characterLimitExplanation_other": "Files in the editor are limited to {{count}} characters", "viewOnly": "View only", "close": "close" }, diff --git a/public/translations/xx-XX.json b/public/translations/xx-XX.json index 8fff1bf99..beb20003a 100644 --- a/public/translations/xx-XX.json +++ b/public/translations/xx-XX.json @@ -12,7 +12,7 @@ "editorPanel": { "ariaLabel": "Texteingabe des Editors", "characterLimitError": "Fehler: Zeichenlimit erreicht", - "characterLimitExplanation": "Dateien im Editor sind auf {{maxCharacters}} Zeichen begrenzt", + "characterLimitExplanation_other": "Dateien im Editor sind auf {{count}} Zeichen begrenzt", "viewOnly": "Nur Ansicht", "close": "schließen" }, diff --git a/src/components/Editor/EditorPanel/EditorPanel.jsx b/src/components/Editor/EditorPanel/EditorPanel.jsx index 21a930736..e800aa901 100644 --- a/src/components/Editor/EditorPanel/EditorPanel.jsx +++ b/src/components/Editor/EditorPanel/EditorPanel.jsx @@ -171,7 +171,7 @@ const EditorPanel = ({ extension = "html", fileName = "index" }) => { title={t("editorPanel.characterLimitError")} type="error" text={t("editorPanel.characterLimitExplanation", { - maxCharacters: MAX_CHARACTERS, + count: MAX_CHARACTERS, })} /> )}