Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore: handle requested changes
Elian Doran17298edfcc31
diff --git a/apps/client/src/widgets/type_widgets/MindMap.tsx b/apps/client/src/widgets/type_widgets/MindMap.tsxindex 7156129471..b4ccdf371b 100644--- a/apps/client/src/widgets/type_widgets/MindMap.tsx+++ b/apps/client/src/widgets/type_widgets/MindMap.tsx@@ -136,7 +136,7 @@ function MindElixir({ containerRef: externalContainerRef, containerProps, apiRefconst mind = new VanillaMindElixir({el: containerRef.current,- locale: LOCALE_MAPPINGS[locale],+ locale: LOCALE_MAPPINGS[locale as DISPLAYABLE_LOCALE_IDS] ?? undefined,editable});diff --git a/apps/client/src/widgets/type_widgets/canvas/Canvas.tsx b/apps/client/src/widgets/type_widgets/canvas/Canvas.tsxindex fb5cc1df56..6a5ea93772 100644--- a/apps/client/src/widgets/type_widgets/canvas/Canvas.tsx+++ b/apps/client/src/widgets/type_widgets/canvas/Canvas.tsx@@ -10,6 +10,7 @@ import { NonDeletedExcalidrawElement } from "@excalidraw/excalidraw/element/typeimport { goToLinkExt } from "../../../services/link";import useCanvasPersistence from "./persistence";import { LANGUAGE_MAPPINGS } from "./i18n";+import { DISPLAYABLE_LOCALE_IDS } from "@triliumnext/commons";// currently required by excalidraw, in order to allows self-hosting fonts locally.// this avoids making excalidraw load the fonts from an external CDN.@@ -60,7 +61,7 @@ export default function Canvas({ note, noteContext }: TypeWidgetProps) {detectScroll={false}handleKeyboardGlobally={false}autoFocus={false}- langCode={LANGUAGE_MAPPINGS[locale]}+ langCode={LANGUAGE_MAPPINGS[locale as DISPLAYABLE_LOCALE_IDS] ?? undefined}UIOptions={{canvasActions: {saveToActiveFile: false,diff --git a/docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translat.md b/docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translat.mdindex 2449b6c729..f420ff7ada 100644--- a/docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translat.md+++ b/docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translat.md@@ -15,7 +15,7 @@ One important aspect is the fact that we are using a key-based approach. This meThe key-based approach allows a hierarchical structure. For example, a key of `about.title` would be added in `translation.json` as follows:-```+```json{"about": {"title": "About Trilium Notes"