Skip to content

Build your personal knowledge base with Trilium Notes

i18n: Translate bulk action categories

Elian Doran779218849af0
diff --git a/src/public/app/services/bulk_action.js b/src/public/app/services/bulk_action.js
index a172b71ec3..313f36a8f9 100644
--- a/src/public/app/services/bulk_action.js
+++ b/src/public/app/services/bulk_action.js
@@ -13,22 +13,23 @@ import ExecuteScriptBulkAction from "../widgets/bulk_actions/execute_script.js";
import AddLabelBulkAction from "../widgets/bulk_actions/label/add_label.js";
import AddRelationBulkAction from "../widgets/bulk_actions/relation/add_relation.js";
import RenameNoteBulkAction from "../widgets/bulk_actions/note/rename_note.js";
+import { t } from "./i18n.js";
const ACTION_GROUPS = [
{
- title: 'Labels',
+ title: t("bulk_actions.labels"),
actions: [AddLabelBulkAction, UpdateLabelValueBulkAction, RenameLabelBulkAction, DeleteLabelBulkAction]
},
{
- title: 'Relations',
+ title: t("bulk_actions.relations"),
actions: [AddRelationBulkAction, UpdateRelationTargetBulkAction, RenameRelationBulkAction, DeleteRelationBulkAction]
},
{
- title: 'Notes',
+ title: t("bulk_actions.notes"),
actions: [RenameNoteBulkAction, MoveNoteBulkAction, DeleteNoteBulkAction, DeleteRevisionsBulkAction],
},
{
- title: 'Other',
+ title: t("bulk_actions.other"),
actions: [ExecuteScriptBulkAction]
}
];
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 1c58091206..0762f0028c 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -51,7 +51,11 @@
"chosen_actions": "Chosen actions",
"execute_bulk_actions": "Execute bulk actions",
"bulk_actions_executed": "Bulk actions have been executed successfully.",
- "none_yet": "None yet... add an action by clicking one of the available ones above."
+ "none_yet": "None yet... add an action by clicking one of the available ones above.",
+ "labels": "Labels",
+ "relations": "Relations",
+ "notes": "Notes",
+ "other": "Other"
},
"clone_to": {
"clone_notes_to": "Clone notes to...",
@@ -1382,8 +1386,8 @@
"find": {
"case_sensitive": "Case sensitive",
"match_words": "Match words",
- "find_placeholder":"Find in text...",
- "replace_placeholder":"Replace with...",
+ "find_placeholder": "Find in text...",
+ "replace_placeholder": "Replace with...",
"replace": "Replace",
"replace_all": "Replace all"
},
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index 13d0ea3cf8..d2d50faa09 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -299,7 +299,11 @@
"close": "Închide",
"execute_bulk_actions": "Execută acțiunile în masă",
"include_descendants": "Include descendenții notiței selectate",
- "none_yet": "Nicio acțiune... adaugați una printr-un click pe cele disponibile mai jos."
+ "none_yet": "Nicio acțiune... adaugați una printr-un click pe cele disponibile mai jos.",
+ "labels": "Etichete",
+ "notes": "Notițe",
+ "other": "Altele",
+ "relations": "Relații"
},
"calendar": {
"april": "Aprilie",