From 51b00a54077c3ed9914f393e9e69dafde2209521 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 13 Oct 2025 19:42:22 +0300 Subject: [PATCH] chore(website/i18n): address requested changes --- .vscode/i18n-ally-custom-framework.yml | 2 +- .../public/translations/en/translation.json | 5 +++-- .../website/src/components/DownloadButton.tsx | 2 +- apps/website/src/pages/Home/index.tsx | 19 ++++++++++++------- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml index b108e6e68..eed692a43 100644 --- a/.vscode/i18n-ally-custom-framework.yml +++ b/.vscode/i18n-ally-custom-framework.yml @@ -14,7 +14,7 @@ usageMatchRegex: # the `{key}` will be placed by a proper keypath matching regex, # you can ignore it and use your own matching rules as well - "[^\\w\\d]t\\(['\"`]({key})['\"`]" - - ]*> # A RegEx to set a custom scope range. This scope will be used as a prefix when detecting keys # and works like how the i18next framework identifies the namespace scope from the diff --git a/apps/website/public/translations/en/translation.json b/apps/website/public/translations/en/translation.json index 8e9106d41..1912d0923 100644 --- a/apps/website/public/translations/en/translation.json +++ b/apps/website/public/translations/en/translation.json @@ -57,7 +57,8 @@ "others_relation_map": "relation map", "others_saved_searches": "saved searches", "others_render_note": "render note", - "others_webview": "web views" + "others_webview": "web views", + "others_list": "and others: <0>note map, <1>relation map, <2>saved searches, <3>render note, and <4>web views." }, "extensibility_benefits": { "title": "Sharing & extensibility", @@ -89,7 +90,7 @@ "server_question": "Do I need a server to use Trilium?", "server_answer": "No, the server allows access via a web browser and manages the synchronization if you have multiple devices. To get started, it's enough to download the desktop application and start using it.", "scaling_question": "How well does the application scale with a large amount of notes?", - "scaling_answer": "Depending on usage, the application should be able to handle at least 100.000 notes without an issue. Do note that the sync process can sometimes fail if uploading many large files (1 GB per file) since Trilium is meant more as a knowledge base application rather than a file store (like NextCloud, for example).", + "scaling_answer": "Depending on usage, the application should be able to handle at least 100,000 notes without an issue. Do note that the sync process can sometimes fail if uploading many large files (1 GB per file) since Trilium is meant more as a knowledge base application rather than a file store (like NextCloud, for example).", "network_share_question": "Can I share my database over a network drive?", "network_share_answer": "No, it's generally not a good idea to share a SQLite database over a network drive. Although sometimes it might work, there are chances that the database will get corrupted due to imperfect file locks over a network.", "security_question": "How is my data protected?", diff --git a/apps/website/src/components/DownloadButton.tsx b/apps/website/src/components/DownloadButton.tsx index 119b0315e..75fbeff18 100644 --- a/apps/website/src/components/DownloadButton.tsx +++ b/apps/website/src/components/DownloadButton.tsx @@ -40,7 +40,7 @@ export default function DownloadButton({ big }: DownloadButtonProps) { text={<> {t("download_now.text")} {big - ? {t("download_now.linux_big")} + ? {t("download_now.linux_big", { version: packageJson.version })} : {t("download_now.linux_small")} } } diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx index e67231d50..0f2f879c4 100644 --- a/apps/website/src/pages/Home/index.tsx +++ b/apps/website/src/pages/Home/index.tsx @@ -32,6 +32,7 @@ import geomapIcon from "../../assets/boxicons/bx-map.svg?raw"; import { getPlatform } from '../../download-helper.js'; import { useEffect, useState } from 'preact/hooks'; import { t } from '../../i18n.js'; +import { Trans } from 'react-i18next'; export function Home() { usePageTitle(""); @@ -173,12 +174,16 @@ function NoteTypesSection() { } ]} />

- {t("note_types.others_prefix")} - {t("note_types.others_note_map")}{t("note_types.others_separator")} - {t("note_types.others_relation_map")}{t("note_types.others_separator")} - {t("note_types.others_saved_searches")}{t("note_types.others_separator")} - {t("note_types.others_render_note")}{t("note_types.others_separator")} - {t("note_types.others_webview")}. + , + , + , + , + + ]} + />

); @@ -215,7 +220,7 @@ function CollectionsSection() { iconSvg: tableIcon, imageUrl: "/collection_table.webp", moreInfo: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Note%20Types/Collections/Table%20View.html", - description: t("collections.calendar_description") + description: t("collections.table_description") }, { title: t("collections.board_title"),