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
refactor(book_properties): use translations
Elian Doran5f9a0544417b
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 073edc053a..b8c935aad7 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1965,7 +1965,9 @@},"book_properties_config": {"hide-weekends": "Hide weekends",- "display-week-numbers": "Display week numbers"+ "display-week-numbers": "Display week numbers",+ "map-style": "Map style:",+ "max-nesting-depth": "Max nesting depth:"},"table_context_menu": {"delete_row": "Delete row"diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts b/apps/client/src/widgets/ribbon_widgets/book_properties_config.tsindex ec09ab2dc7..3373d7ec49 100644--- a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts+++ b/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts@@ -99,7 +99,7 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {geoMap: {properties: [{- label: "Map style:",+ label: t("book_properties_config.map-style"),type: "combobox",bindToLabel: "mapStyle",options: [@@ -112,7 +112,7 @@ export const bookPropertiesConfig: Record<ViewTypeOptions, BookConfig> = {table: {properties: [{- label: "Max nesting depth:",+ label: t("book_properties_config.max-nesting-depth"),type: "number",bindToLabel: "maxNestingDepth",width: 65