Skip to content

Build your personal knowledge base with Trilium Notes

i18n(geomap): localize the "New note" placement toast title

Elian Doran02b3b09e47f5
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index ece0f8981b..ae292fa4e8 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2319,6 +2319,7 @@
"create-child-note-title": "Create a new child note and add it to the map",
"create-child-note-text": "Add marker",
"create-child-note-instruction": "Click on the map to create a new note at that location or press Escape to dismiss.",
+ "create-child-note-toast-title": "New note",
"unable-to-load-map": "Unable to load map."
},
"geo-map-context": {
diff --git a/apps/client/src/widgets/collections/geomap/index.tsx b/apps/client/src/widgets/collections/geomap/index.tsx
index e27d2e99a3..0f326d76ec 100644
--- a/apps/client/src/widgets/collections/geomap/index.tsx
+++ b/apps/client/src/widgets/collections/geomap/index.tsx
@@ -80,7 +80,7 @@ export default function GeoView({ note, noteIds, viewConfig, saveConfig }: ViewM
toast.showPersistent({
icon: "plus",
id: "geo-new-note",
- title: "New note",
+ title: t("geo-map.create-child-note-toast-title"),
message: t("geo-map.create-child-note-instruction")
});