diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.js
index 93c366bfa..7fb29de46 100644
--- a/src/public/app/services/note_autocomplete.js
+++ b/src/public/app/services/note_autocomplete.js
@@ -3,6 +3,7 @@ import appContext from "../components/app_context.js";
import utils from './utils.js';
import noteCreateService from './note_create.js';
import froca from "./froca.js";
+import { t } from "./i18n.js";
// this key needs to have this value, so it's hit by the tooltip
const SELECTED_NOTE_PATH_KEY = "data-note-path";
@@ -38,7 +39,7 @@ async function autocompleteSource(term, cb, options = {}) {
cb(
[{
noteTitle: term,
- highlightedNotePathTitle: `Searching...`
+ highlightedNotePathTitle: t("quick-search.searching")
}]
);
}
@@ -52,7 +53,7 @@ async function autocompleteSource(term, cb, options = {}) {
action: 'create-note',
noteTitle: term,
parentNoteId: activeNoteId || 'root',
- highlightedNotePathTitle: `Create and link child note "${utils.escapeHtml(term)}"`
+ highlightedNotePathTitle: t("note_autocomplete.create-note", { term })
}
].concat(results);
}
@@ -62,7 +63,7 @@ async function autocompleteSource(term, cb, options = {}) {
{
action: 'search-notes',
noteTitle: term,
- highlightedNotePathTitle: `Search for "${utils.escapeHtml(term)}" Ctrl+Enter`
+ highlightedNotePathTitle: `${t("note_autocomplete.search-for", { term })} Ctrl+Enter`
}
]);
}
@@ -72,7 +73,7 @@ async function autocompleteSource(term, cb, options = {}) {
{
action: 'external-link',
externalLink: term,
- highlightedNotePathTitle: `Insert external link to "${utils.escapeHtml(term)}"`
+ highlightedNotePathTitle: t("note_autocomplete.insert-external-link", { term })
}
].concat(results);
}
@@ -139,15 +140,15 @@ function initNoteAutocomplete($el, options) {
const $clearTextButton = $("