feat(website/i18n): translate download options

This commit is contained in:
Elian Doran 2025-10-13 19:22:14 +03:00
parent d978c38b80
commit 2b915a1217
No known key found for this signature in database
2 changed files with 93 additions and 40 deletions

View File

@ -142,5 +142,57 @@
"404": { "404": {
"title": "404: Not Found", "title": "404: Not Found",
"description": "The page you were looking for could not be found. Maybe it was deleted or the URL is incorrect." "description": "The page you were looking for could not be found. Maybe it was deleted or the URL is incorrect."
},
"download_helper_desktop_windows": {
"title_x64": "Windows 64-bit",
"title_arm64": "Windows on ARM",
"description_x64": "Compatible with Intel or AMD devices running Windows 10 and 11.",
"description_arm64": "Compatible with ARM devices (e.g. with Qualcomm Snapdragon).",
"quick_start": "To install via Winget:",
"download_exe": "Download Installer (.exe)",
"download_zip": "Portable (.zip)",
"download_scoop": "Scoop"
},
"download_helper_desktop_linux": {
"title_x64": "Linux 64-bit",
"title_arm64": "Linux on ARM",
"description_x64": "For most Linux distributions, compatible with x86_64 architecture.",
"description_arm64": "For ARM-based Linux distributions, compatible with aarch64 architecture.",
"quick_start": "Select an appropriate package format, depending on your distribution:",
"download_deb": ".deb",
"download_rpm": ".rpm",
"download_flatpak": ".flatpak",
"download_zip": "Portable (.zip)",
"download_nixpkgs": "nixpkgs",
"download_aur": "AUR"
},
"download_helper_desktop_macos": {
"title_x64": "macOS for Intel",
"title_arm64": "macOS for Apple Silicon",
"description_x64": "For Intel-based Macs running macOS Big Sur or later.",
"description_arm64": "For Apple Silicon Macs such as those with M1 and M2 chips.",
"quick_start": "To install via Homebrew:",
"download_dmg": "Download Installer (.dmg)",
"download_homebrew_cask": "Homebrew Cask",
"download_zip": "Portable (.zip)"
},
"download_helper_server_docker": {
"title": "Self-hosted using Docker",
"description": "Easily deploy on Windows, Linux or macOS using a Docker container.",
"download_dockerhub": "Docker Hub",
"download_ghcr": "ghcr.io"
},
"download_helper_server_linux": {
"title": "Self-hosted on Linux",
"description": "Deploy Trilium Notes on your own server or VPS, compatible with most distributions.",
"download_tar_x64": "x64 (.tar.xz)",
"download_tar_arm64": "ARM (.tar.xz)",
"download_nixos": "NixOS module"
},
"download_helper_server_hosted": {
"title": "Paid hosting",
"description": "Trilium Notes hosted on PikaPods, a paid service for easy access and management. Not directly affiliated with the Trilium team.",
"download_pikapod": "Set up on PikaPods",
"download_triliumcc": "Alternatively see trilium.cc"
} }
} }

View File

@ -1,4 +1,5 @@
import rootPackageJson from '../../../package.json' with { type: "json" }; import rootPackageJson from '../../../package.json' with { type: "json" };
import { t } from './i18n';
export type App = "desktop" | "server"; export type App = "desktop" | "server";
@ -37,139 +38,139 @@ export const downloadMatrix: DownloadMatrix = {
desktop: { desktop: {
windows: { windows: {
title: { title: {
x64: "Windows 64-bit", x64: t("download_helper_desktop_windows.title_x64"),
arm64: "Windows on ARM" arm64: t("download_helper_desktop_windows.title_arm64")
}, },
description: { description: {
x64: "Compatible with Intel or AMD devices running Windows 10 and 11.", x64: t("download_helper_desktop_windows.description_x64"),
arm64: "Compatible with ARM devices (e.g. with Qualcomm Snapdragon).", arm64: t("download_helper_desktop_windows.description_arm64"),
}, },
quickStartTitle: "To install via Winget:", quickStartTitle: t("download_helper_desktop_windows.quick_start"),
quickStartCode: "winget install TriliumNext.Notes", quickStartCode: "winget install TriliumNext.Notes",
downloads: { downloads: {
exe: { exe: {
recommended: true, recommended: true,
name: "Download Installer (.exe)" name: t("download_helper_desktop_windows.download_exe")
}, },
zip: { zip: {
name: "Portable (.zip)" name: t("download_helper_desktop_windows.download_zip")
}, },
scoop: { scoop: {
name: "Scoop", name: t("download_helper_desktop_windows.download_scoop"),
url: "https://scoop.sh/#/apps?q=trilium&id=7c08bc3c105b9ee5c00dd4245efdea0f091b8a5c" url: "https://scoop.sh/#/apps?q=trilium&id=7c08bc3c105b9ee5c00dd4245efdea0f091b8a5c"
} }
} }
}, },
linux: { linux: {
title: { title: {
x64: "Linux 64-bit", x64: t("download_helper_desktop_linux.title_x64"),
arm64: "Linux on ARM" arm64: t("download_helper_desktop_linux.title_arm64")
}, },
description: { description: {
x64: "For most Linux distributions, compatible with x86_64 architecture.", x64: t("download_helper_desktop_linux.description_x64"),
arm64: "For ARM-based Linux distributions, compatible with aarch64 architecture.", arm64: t("download_helper_desktop_linux.description_arm64"),
}, },
quickStartTitle: "Select an appropriate package format, depending on your distribution:", quickStartTitle: t("download_helper_desktop_linux.quick_start"),
downloads: { downloads: {
deb: { deb: {
recommended: true, recommended: true,
name: ".deb" name: t("download_helper_desktop_linux.download_deb")
}, },
rpm: { rpm: {
recommended: true, recommended: true,
name: ".rpm" name: t("download_helper_desktop_linux.download_rpm")
}, },
flatpak: { flatpak: {
name: ".flatpak" name: t("download_helper_desktop_linux.download_flatpak")
}, },
zip: { zip: {
name: "Portable (.zip)" name: t("download_helper_desktop_linux.download_zip")
}, },
nixpkgs: { nixpkgs: {
name: "nixpkgs", name: t("download_helper_desktop_linux.download_nixpkgs"),
url: "https://search.nixos.org/packages?query=trilium-next" url: "https://search.nixos.org/packages?query=trilium-next"
}, },
aur: { aur: {
name: "AUR", name: t("download_helper_desktop_linux.download_aur"),
url: "https://aur.archlinux.org/packages/triliumnext-bin" url: "https://aur.archlinux.org/packages/triliumnext-bin"
} }
} }
}, },
macos: { macos: {
title: { title: {
x64: "macOS for Intel", x64: t("download_helper_desktop_macos.title_x64"),
arm64: "macOS for Apple Silicon" arm64: t("download_helper_desktop_macos.title_arm64")
}, },
description: { description: {
x64: "For Intel-based Macs running macOS Big Sur or later.", x64: t("download_helper_desktop_macos.description_x64"),
arm64: "For Apple Silicon Macs such as those with M1 and M2 chips.", arm64: t("download_helper_desktop_macos.description_arm64"),
}, },
quickStartTitle: "To install via Homebrew:", quickStartTitle: t("download_helper_desktop_macos.quick_start"),
quickStartCode: "brew install --cask trilium-notes", quickStartCode: "brew install --cask trilium-notes",
downloads: { downloads: {
dmg: { dmg: {
recommended: true, recommended: true,
name: "Download Installer (.dmg)" name: t("download_helper_desktop_macos.download_dmg")
}, },
homebrew: { homebrew: {
name: "Homebrew Cask", name: t("download_helper_desktop_macos.download_homebrew_cask"),
url: "https://formulae.brew.sh/cask/trilium-notes#default" url: "https://formulae.brew.sh/cask/trilium-notes#default"
}, },
zip: { zip: {
name: "Portable (.zip)" name: t("download_helper_desktop_macos.download_zip")
} }
} }
} }
}, },
server: { server: {
docker: { docker: {
title: "Self-hosted using Docker", title: t("download_helper_server_docker.title"),
description: "Easily deploy on Windows, Linux or macOS using a Docker container.", description: t("download_helper_server_docker.description"),
helpUrl: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.html", helpUrl: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.html",
quickStartCode: "docker pull triliumnext/trilium\ndocker run -p 8080:8080 -d ./data:/home/node/trilium-data triliumnext/trilium", quickStartCode: "docker pull triliumnext/trilium\ndocker run -p 8080:8080 -d ./data:/home/node/trilium-data triliumnext/trilium",
downloads: { downloads: {
dockerhub: { dockerhub: {
name: "Docker Hub", name: t("download_helper_server_docker.download_dockerhub"),
url: "https://hub.docker.com/r/triliumnext/trilium" url: "https://hub.docker.com/r/triliumnext/trilium"
}, },
ghcr: { ghcr: {
name: "ghcr.io", name: t("download_helper_server_docker.download_ghcr"),
url: "https://github.com/TriliumNext/Trilium/pkgs/container/trilium" url: "https://github.com/TriliumNext/Trilium/pkgs/container/trilium"
} }
} }
}, },
linux: { linux: {
title: "Self-hosted on Linux", title: t("download_helper_server_linux.title"),
description: "Deploy Trilium Notes on your own server or VPS, compatible with most distributions.", description: t("download_helper_server_linux.description"),
helpUrl: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Packaged%20version%20for%20Linux.html", helpUrl: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20%26%20Setup/Server%20Installation/1.%20Installing%20the%20server/Packaged%20version%20for%20Linux.html",
downloads: { downloads: {
tarX64: { tarX64: {
recommended: true, recommended: true,
name: "x64 (.tar.xz)", name: t("download_helper_server_linux.download_tar_x64"),
url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-x64.tar.xz`, url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-x64.tar.xz`,
}, },
tarArm64: { tarArm64: {
recommended: true, recommended: true,
name: "ARM (.tar.xz)", name: t("download_helper_server_linux.download_tar_arm64"),
url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-arm64.tar.xz` url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-arm64.tar.xz`
}, },
nixos: { nixos: {
name: "NixOS module", name: t("download_helper_server_linux.download_nixos"),
url: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/On%20NixOS" url: "https://docs.triliumnotes.org/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/On%20NixOS"
} }
} }
}, },
pikapod: { pikapod: {
title: "Paid hosting", title: t("download_helper_server_hosted.title"),
description: "Trilium Notes hosted on PikaPods, a paid service for easy access and management. Not directly affiliated with the Trilium team.", description: t("download_helper_server_hosted.description"),
downloads: { downloads: {
pikapod: { pikapod: {
recommended: true, recommended: true,
name: "Set up on PikaPods", name: t("download_helper_server_hosted.download_pikapod"),
url: "https://www.pikapods.com/pods?run=trilium-next" url: "https://www.pikapods.com/pods?run=trilium-next"
}, },
triliumcc: { triliumcc: {
name: "Alternatively see trilium.cc", name: t("download_helper_server_hosted.download_triliumcc"),
url: "https://trilium.cc/" url: "https://trilium.cc/"
} }
} }