From f1ee79e75aebc0d0b3faee4b96609cb086cd8d14 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 7 Dec 2025 22:23:19 +0200 Subject: [PATCH] refactor(client): inconsistent prefix for messages --- apps/client/src/translations/en/translation.json | 8 +++----- .../client/src/widgets/type_widgets/text/EditableText.tsx | 2 +- apps/client/src/widgets/type_widgets/text/config.ts | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index 46aa54401..a27b8fded 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -993,7 +993,9 @@ "editor_crashed_content": "Your content was recovered successfully, but a few of your most recent changes may not have been saved.", "editor_crashed_details_button": "View more details...", "editor_crashed_details_intro": "If you experience this error several times, consider reporting it on GitHub by pasting the information below.", - "editor_crashed_details_title": "Technical information" + "editor_crashed_details_title": "Technical information", + "auto-detect-language": "Auto-detected", + "keeps-crashing": "Editing component keeps crashing. Please try restarting Trilium. If problem persists, consider creating a bug report." }, "empty": { "open_note_instruction": "Open a note by typing the note's title into the input below or choose a note in the tree.", @@ -1832,10 +1834,6 @@ "move-to-available-launchers": "Move to available launchers", "duplicate-launcher": "Duplicate launcher " }, - "editable-text": { - "auto-detect-language": "Auto-detected", - "keeps-crashing": "Editing component keeps crashing. Please try restarting Trilium. If problem persists, consider creating a bug report." - }, "highlighting": { "title": "Code Blocks", "description": "Controls the syntax highlighting for code blocks inside text notes, code notes will not be affected.", diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.tsx b/apps/client/src/widgets/type_widgets/text/EditableText.tsx index f53cad238..73863a790 100644 --- a/apps/client/src/widgets/type_widgets/text/EditableText.tsx +++ b/apps/client/src/widgets/type_widgets/text/EditableText.tsx @@ -322,7 +322,7 @@ function useWatchdogCrashHandling() { // timeout: 20_000 }); } else if (currentState === "crashedPermanently") { - dialog.info(t("editable-text.keeps-crashing")); + dialog.info(t("editable_text.keeps-crashing")); watchdog.editor?.enableReadOnlyMode("crashed-editor"); } }, []); diff --git a/apps/client/src/widgets/type_widgets/text/config.ts b/apps/client/src/widgets/type_widgets/text/config.ts index a12d384ef..445705927 100644 --- a/apps/client/src/widgets/type_widgets/text/config.ts +++ b/apps/client/src/widgets/type_widgets/text/config.ts @@ -220,7 +220,7 @@ function buildListOfLanguages() { return [ { language: mimeTypesService.MIME_TYPE_AUTO, - label: t("editable-text.auto-detect-language") + label: t("editable_text.auto-detect-language") }, ...userLanguages ];