Skip to content

Build your personal knowledge base with Trilium Notes

refactor(client): inconsistent prefix for messages

Elian Doranf1ee79e75aeb
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 46aa54401e..a27b8fded7 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 <kbd data-command=\"duplicateSubtree\">"
},
- "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 f53cad238f..73863a7903 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 a12d384ef9..4457059273 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
];