Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(website): translate every page but the blog, and track stale translations

EtienneLescotf1e17c1d77df
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 69e59d253..e8a87f80f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -60,6 +60,14 @@ jobs:
- name: Unit tests
working-directory: website
run: npm test
+ # Warnings only: an English edit should not block a deploy, and the list
+ # says what to hand a translator (website/i18n/TRANSLATING.md). Needs the
+ # full history the checkout fetches.
+ - name: Translation freshness
+ working-directory: website
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ run: npm run i18n:check
# The walkthrough's clips and stills are committed to this repo, which has
# no LFS filter — their size is permanent, so a budget that lives only in a
# design note drifts on the first re-cut. This also fails any clip encoded
diff --git a/AGENTS.md b/AGENTS.md
index ad5157146..4ec2b4487 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -166,5 +166,6 @@ The one rule to know before you merge anything: **there is one release branch pe
- **Native capture is platform-fragile**: macOS uses ScreenCaptureKit (Swift), Windows uses WGC (C++/Win32). CI runs on Linux only — manual smoke test on real macOS/Windows is required for native changes.
- **Pixi.js v8** is the rendering engine. Filters come from `pixi-filters` and `@pixi/filter-drop-shadow`. GSAP + `motion` for animation.
- **i18n**: 15 locales in `src/i18n/locales/<locale>/` (e.g. `src/i18n/locales/en/settings.json`). The `i18n:check` script validates them — run it after touching translation files.
+- **Website i18n** is separate: 8 locales under `website/i18n/`. After changing an English doc, page or `<Translate>` string in `website/`, follow `website/i18n/TRANSLATING.md` ("Keeping translations up to date"); `npm run i18n:check` in `website/` lists what is behind.
- **Build pipeline**: `npm run build` is full electron-builder. For iterating on renderer only, use `npm run build-vite` (Vite + tsc, no packaging).
- **Product constraints**: the project is free forever and explicitly "not production-grade". Don't add paywalls, premium tiers, or logic that gates a feature on who the user is, and don't add upsell language to the README or UI copy. This is a hard constraint, not a judgement call. (A flag that hides an unfinished capture backend is fine — it gates on readiness, not on the user.)
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 456f4ac93..f6c5a57a4 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -5,10 +5,9 @@ import path from "node:path";
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
-import { GlobExcludeDefault } from "@docusaurus/utils";
import { themes as prismThemes } from "prism-react-renderer";
-import { BLOG_PATH, ENGLISH_ONLY_PAGE_GLOBS } from "./src/lib/locale-routes";
+import { BLOG_PATH } from "./src/lib/locale-routes";
import {
type AppLanguage,
ASSET_PATTERNS,
@@ -262,28 +261,36 @@ function buildLookups(): Promise<BuildLookups> {
}
/**
- * Docusaurus serves the English source for any doc a locale lacks, under
- * /<locale>/docs/ with that locale's lang and hreflang: an English page that
- * says it is French. A new English doc would reach every locale that way with
- * no warning, so a build refuses it. Excluding the doc instead is not an
- * option: sidebars.ts names it by id, and the sidebar would fail to load.
- * `start` only warns, so a translator can preview a locale half done.
+ * Docusaurus serves the English source for any doc or Markdown page a locale
+ * lacks, under /<locale>/ with that locale's lang and hreflang: an English page
+ * that says it is French. A new English doc or page would reach every locale
+ * that way with no warning, so a build refuses it. Excluding the file instead
+ * is not an option for docs (sidebars.ts names them by id), and keeping one
+ * rule for both is simpler than a per-locale exclusion list. `start` only
+ * warns, so a translator can preview a locale half done. The .tsx pages are
+ * translated through code.json and are not listed here.
*/
-function checkDocTranslations(): void {
+const TRANSLATED_SOURCES = [
+ { source: "docs", target: "docusaurus-plugin-content-docs/current" },
+ { source: "src/pages", target: "docusaurus-plugin-content-pages" },
+];
+
+function checkTranslations(): void {
if (LOCALE === "en") return;
- const docs = path.join(__dirname, "docs");
- const translated = path.join(__dirname, "i18n", LOCALE, "docusaurus-plugin-content-docs/current");
- const missing = readdirSync(docs, { recursive: true, encoding: "utf8" }).filter(
- (file) => /\.mdx?$/.test(file) && !existsSync(path.join(translated, file)),
+ const missing = TRANSLATED_SOURCES.flatMap(({ source, target }) =>
+ readdirSync(path.join(__dirname, source), { recursive: true, encoding: "utf8" })
+ .filter((file) => /\.mdx?$/.test(file))
+ .filter((file) => !existsSync(path.join(__dirname, "i18n", LOCALE, target, file)))
+ .map((file) => path.posix.join(source, file.replaceAll("\\", "/"))),
);
if (missing.length === 0) return;
- const message = `[config] ${LOCALE} has no translation of docs/${missing.join(", docs/")}; see i18n/TRANSLATING.md`;
+ const message = `[config] ${LOCALE} has no translation of ${missing.join(", ")}; see i18n/TRANSLATING.md`;
if (process.env.NODE_ENV === "production") throw new Error(message);
console.warn(message);
}
export default async function createConfig(): Promise<Config> {
- checkDocTranslations();
+ checkTranslations();
const { starCount, release, appLanguages } = await buildLookups();
// Formatted here rather than in the component: toLocaleDateString would
// resolve against the visitor's locale and time zone on hydration and
@@ -525,13 +532,8 @@ export default async function createConfig(): Promise<Config> {
},
},
// The MDX landing pages carry dated vendor facts; show their git date.
- // They are English only, so a translated build leaves them out, on
- // top of Docusaurus's own default excludes.
pages: {
showLastUpdateTime: true,
- ...(LOCALE !== "en" && {
- exclude: [...GlobExcludeDefault, ...ENGLISH_ONLY_PAGE_GLOBS],
- }),
},
theme: {
customCss: "./src/css/custom.css",
diff --git a/website/i18n/TRANSLATING.md b/website/i18n/TRANSLATING.md
index 68ad0fa95..81549cdad 100644
--- a/website/i18n/TRANSLATING.md
+++ b/website/i18n/TRANSLATING.md
@@ -6,8 +6,9 @@ The site is translated into `fr`, `es`, `pt-BR`, `ja`, `zh-CN`, `zh-TW` and `de`
## What is translated, and what is not
-- **Translated:** the landing page, `/download/`, all 12 docs pages, the navbar, the docs sidebar, the footer and the theme (404 page, pagination, "last updated"…). The translated 404 page only shows after a click inside the site: GitHub Pages answers every missing URL, `/fr/…` included, with the English one.
-- **English only:** the blog, and the pages under `/alternatives/`, `/compare/`, `/features/` and `/screen-recorder-*/`. A translated build does not contain them. Links to them from translated pages go to the English page (see below).
+- **Translated:** everything but the blog: the landing page, `/download/`, the docs, the comparison, platform and feature pages (`src/pages/**/*.mdx`), the navbar, the docs sidebar, the footer and the theme (404 page, pagination, "last updated"…). The translated 404 page only shows after a click inside the site: GitHub Pages answers every missing URL, `/fr/…` included, with the English one.
+- **English only:** the blog, a dated development journal. A translated build does not contain it, and links to it from translated pages go to the English blog (see below).
+- **The build enforces it:** a locale missing any doc or `.mdx` page fails `npm run build`, because Docusaurus would otherwise publish the English file under `/<locale>/` marked as your language.
## Files to fill, per locale
@@ -24,6 +25,7 @@ Replace `<locale>` with `fr`, `es`, `pt-BR`, `ja`, `zh-CN`, `zh-TW` or `de`.
- `guides/product-demo-video.md`
Start from a copy of `website/docs/<file>`. In the front matter, translate `title`, `description`, `sidebar_label` and `keywords`. Leave `id`, `slug` and `sidebar_position` as they are.
+5. **`i18n/<locale>/docusaurus-plugin-content-pages/`**: one translated copy of each `website/src/pages/**/*.mdx`, same path (`alternatives/screen-studio.mdx`, `screen-recorder-linux.mdx`…). Translate `title`, `description` and `keywords` in the front matter. Prices, plan limits and "checked September 2026" dates are facts: copy them as they are, in your language's number and currency format. Keep the Sources list's URLs, and translate the trademark note.
**All 12 docs of a locale land together.** The docs link to each other with relative paths (`./captions.md`), and Docusaurus only resolves those between files in the same folder: with some docs translated and others not, the build fails on broken links. A doc missing from a finished locale would also be published under `/<locale>/docs/` in English, marked as your language.
@@ -43,26 +45,16 @@ npx docusaurus write-heading-ids . i18n/<locale>/docusaurus-plugin-content-docs/
It appends `{#…}` to each `##` to `######` heading (the `#` page title has no anchor to keep), computed from the English text: the same anchors the English pages have. Then translate the heading text and leave the `{#…}` alone. The build fails on a broken anchor.
-## Links to English-only pages
+## Links
-In a doc, keep the Markdown link as it is:
+Keep Markdown links as they are. Links to translated pages (`/docs/…`, `/download/`, `/features/…`, `./other-doc.md`) get the `/<locale>/` prefix automatically, so do not add "(in English)" to them.
-```md
-[Zoom automatique (en anglais)](/features/auto-zoom/)
-```
-
-The site renders it as a plain link to the English page, with `hreflang="en"` and without the `/<locale>/` prefix. Say in the link text that the page is in English where the reader would not expect it.
+A link to the blog, the one English-only page, is rendered as a plain link to the English page, with `hreflang="en"` and without the prefix. Say in the link text that it is in English where the reader would not expect it:
-A raw HTML link also works:
-
-```mdx
-<a href="/features/captions/" hrefLang="en">Sous-titres locaux (en anglais)</a>
+```md
+[journal de développement (en anglais)](/blog/)
```
-MDX leaves a raw `<a>` alone, so it never gets the locale prefix. Use it only for English-only pages: a raw `<a href="/docs/faq/">` would send the reader to the English FAQ.
-
-Links to translated pages (`/docs/…`, `/download/`, `./other-doc.md`) stay as Markdown links: they get the `/<locale>/` prefix automatically.
-
In `code.json`, a description that mentions an English-only page means the same thing for that label.
## Never translate
@@ -95,12 +87,16 @@ From `website/`:
- **While translating:** `npm run dev -- --locale <locale>`, then open the URL it prints.
- **Before a pull request:** `npm run build`, which builds every locale as CI does, then `npm run serve` and open `/fr/`, `/es/`, `/ja/`, `/de/`, or the lowercase `/pt-br/`, `/zh-cn/` or `/zh-tw/`.
-## Regenerating the JSON files
+## Keeping translations up to date
-After a change to the site's strings, refresh the files; existing translations are kept. The locale variable is required: without it, the command extracts the English build's strings.
+The English changes; the translations follow. Translate **what changed**, not the whole page again.
-```sh
-DOCUSAURUS_CURRENT_LOCALE=<locale> npx docusaurus write-translations --locale <locale>
-```
+1. **See what is behind:** `npm run i18n:check` (CI runs it and prints the same list as warnings; it never fails the build).
+ - A Markdown translation is behind when its English source has a newer commit. `git log -p <source>` since the translation's last commit shows exactly what to carry over.
+ - `code.json` is behind when a `<Translate>` string changed or was added in the English source; the ids are listed.
+2. **Refresh the string files:** `npm run i18n:sync`. It adds new ids to every `code.json` (with the English text as a placeholder), drops removed ones and copies the English descriptions. Existing translations are kept.
+3. **Translate the changes** in every locale: the diff of each stale file, and the listed `code.json` ids. One pass per locale, by a translator or an agent given this file, the English diff and the locale's files.
+4. **Record it:** `npm run i18n:sync -- --accept` once every locale has the new strings. It stores the English strings the translations now match in `i18n/code.source.json`. Commit the translations and that file together: committing a translated `.md`/`.mdx` is what marks it up to date.
+5. **Check:** `npm run build`. A new English page or doc with no translation fails here; add the translated file in every locale (the same pass as step 3, for the whole file).
-In PowerShell: `$env:DOCUSAURUS_CURRENT_LOCALE="<locale>"; npx docusaurus write-translations --locale <locale>`.
+A new page gets a full review in each language before it ships. An update to an existing page does not need one: the diff is small, and the build checks links and anchors.
diff --git a/website/i18n/de/code.json b/website/i18n/de/code.json
index 86cda9064..43f2b8d17 100644
--- a/website/i18n/de/code.json
+++ b/website/i18n/de/code.json
@@ -146,11 +146,11 @@
},
"home.features.summary": {
"message": "OpenScreen ist ein kostenloser Open-Source-Bildschirmrekorder und Videoeditor für Windows, macOS und Linux: Eine Rohaufnahme geht hinein, eine fertige Demo kommt heraus, in der Kategorie, die {screenStudio} geprägt hat. Er steht unter MIT-Lizenz, kommt ohne Wasserzeichen und ohne Konto aus und führt das {originalProject} fort, das sein Entwickler nach v1.5.0 archiviert hat.",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "ursprüngliche OpenScreen-Projekt"
@@ -202,7 +202,7 @@
},
"home.install.note": {
"message": "Für Windows gibt es auch einen {exe}-Installer. Er ist nicht codesigniert, SmartScreen warnt deshalb vor dem Start: Wähle „Weitere Informationen“ und dann „Trotzdem ausführen“. Für Linux gibt es außerdem {rpm}, {pacman}, ein AppImage und einen Nix-Flake. Alle Dateien liegen auf der {releasesPage}, und unter {installation} stehen alle Schritte. Was jedes System aufnimmt, beschreiben die Seiten zu {windows}, {mac} und {linux} (auf Englisch).",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "Releases-Seite"
@@ -326,7 +326,7 @@
},
"showcase.captions.link.feature": {
"message": "Lokale Untertitel im Vergleich (auf Englisch)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "Eine Zeichnung des Untertitelbereichs: die Zeile „amber day on the validator, and it“ groß über dem Video, daneben eingeschaltete Untertitel, ein Hinweis, dass sieben Untertitelzeilen live aus dem Transkript abgeleitet werden, und eine Sprachzeile mit English, Français, einer Schaltfläche Translate und der Option, eine Übersetzung zu löschen.",
@@ -349,7 +349,7 @@
},
"showcase.agent.link.feature": {
"message": "So funktionieren automatische Zooms (auf Englisch)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "Eine Zeichnung der Antwort des Agenten. Auf die Bitte, die Stille herauszuschneiden, antwortet er mit Timecodes: 0 bis 2,19 Sekunden Vorlauf vor „Hi“ und 35,12 bis 40,03 Sekunden Nachlauf nach „think.“. Damit schrumpft das Video von 40 auf 33 Sekunden abspielbares Material, und die vorhandenen Zooms bleiben auf denselben Momenten. Danach folgt eine grüne Zeile: „applied: added 2 trims“.",
@@ -368,52 +368,42 @@
"message": "Download"
},
"footer.product.autoZoom": {
- "message": "Auto-Zoom (auf Englisch)",
- "description": "Links to an English-only page."
+ "message": "Auto-Zoom (auf Englisch)"
},
"footer.product.captions": {
- "message": "Lokale Untertitel (auf Englisch)",
- "description": "Links to an English-only page."
+ "message": "Lokale Untertitel (auf Englisch)"
},
"footer.platforms.title": {
"message": "Plattformen (auf Englisch)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "Vergleiche (auf Englisch)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Alternative zu Screen Studio",
- "description": "Links to an English-only page."
+ "message": "Alternative zu Screen Studio"
},
"footer.compare.camtasia": {
- "message": "Alternative zu Camtasia",
- "description": "Links to an English-only page."
+ "message": "Alternative zu Camtasia"
},
"footer.compare.loom": {
- "message": "Alternative zu Loom",
- "description": "Links to an English-only page."
+ "message": "Alternative zu Loom"
},
"footer.compare.cap": {
- "message": "OpenScreen vs. Cap",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs. Cap"
},
"footer.compare.obs": {
- "message": "OpenScreen vs. OBS Studio",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs. OBS Studio"
},
"footer.project.title": {
"message": "Projekt"
diff --git a/website/i18n/es/code.json b/website/i18n/es/code.json
index df01694cd..126677092 100644
--- a/website/i18n/es/code.json
+++ b/website/i18n/es/code.json
@@ -142,11 +142,11 @@
},
"home.features.summary": {
"message": "OpenScreen es un grabador de pantalla y editor de video gratis y de código abierto para Windows, macOS y Linux: entra una captura en bruto y sale una demo terminada, en la categoría que definió {screenStudio}. Tiene licencia MIT, sin marca de agua ni cuenta, y continúa el {originalProject}, que su creador archivó después de la v1.5.0.",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "proyecto original de OpenScreen"
@@ -198,7 +198,7 @@
},
"home.install.note": {
"message": "Windows también tiene un instalador {exe}. No tiene firma de código, así que SmartScreen muestra una advertencia antes de ejecutarlo: elige Más información y luego Ejecutar de todas formas. Linux también se distribuye como {rpm}, {pacman}, AppImage y flake de Nix. Todos los archivos están en la {releasesPage}, y en {installation} están los pasos completos. Lo que graba cada sistema se explica en las páginas (en inglés) de {windows}, {mac} y {linux}.",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "página de Releases"
@@ -322,7 +322,7 @@
},
"showcase.captions.link.feature": {
"message": "Comparativa de subtítulos locales (en inglés)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "Dibujo del panel de subtítulos: la línea “amber day on the validator, and it” en tamaño grande sobre el video y, al lado, los subtítulos activados, una nota que indica que siete líneas de subtítulos se derivan en vivo de la transcripción, y una fila de idiomas que ofrece English, Français, un botón Translate y la opción de eliminar una traducción.",
@@ -345,7 +345,7 @@
},
"showcase.agent.link.feature": {
"message": "Cómo funcionan los zooms automáticos (en inglés)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "Dibujo de la respuesta del agente. Cuando se le pide que corte los tiempos muertos, responde con códigos de tiempo: de 0 a 2.19 segundos de entrada antes de “Hi” y de 35.12 a 40.03 segundos de cola después de “think.”, lo que deja el video en 33 segundos reproducibles en lugar de 40, con los zooms existentes en los mismos momentos; luego, una línea verde que dice “applied: added 2 trims”.",
@@ -364,52 +364,42 @@
"message": "Descargar"
},
"footer.product.autoZoom": {
- "message": "Zoom automático (en inglés)",
- "description": "Links to an English-only page."
+ "message": "Zoom automático (en inglés)"
},
"footer.product.captions": {
- "message": "Subtítulos locales (en inglés)",
- "description": "Links to an English-only page."
+ "message": "Subtítulos locales (en inglés)"
},
"footer.platforms.title": {
"message": "Plataformas (en inglés)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "Comparativas (en inglés)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Alternativa a Screen Studio",
- "description": "Links to an English-only page."
+ "message": "Alternativa a Screen Studio"
},
"footer.compare.camtasia": {
- "message": "Alternativa a Camtasia",
- "description": "Links to an English-only page."
+ "message": "Alternativa a Camtasia"
},
"footer.compare.loom": {
- "message": "Alternativa a Loom",
- "description": "Links to an English-only page."
+ "message": "Alternativa a Loom"
},
"footer.compare.cap": {
- "message": "OpenScreen vs. Cap",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs. Cap"
},
"footer.compare.obs": {
- "message": "OpenScreen vs. OBS Studio",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs. OBS Studio"
},
"footer.project.title": {
"message": "Proyecto"
diff --git a/website/i18n/fr/code.json b/website/i18n/fr/code.json
index 3524620c3..0dbad8972 100644
--- a/website/i18n/fr/code.json
+++ b/website/i18n/fr/code.json
@@ -142,11 +142,11 @@
},
"home.features.summary": {
"message": "OpenScreen est un enregistreur d'écran et éditeur vidéo gratuit et open source pour Windows, macOS et Linux : une capture brute en entrée, une démo finie en sortie, dans la catégorie qu'a définie {screenStudio}. Il est sous licence MIT, sans filigrane ni compte, et prend la suite du {originalProject}, que son créateur a archivé après la v1.5.0.",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "projet OpenScreen d'origine"
@@ -198,7 +198,7 @@
},
"home.install.note": {
"message": "Windows a aussi un programme d'installation {exe}. Il n'est pas signé : SmartScreen affiche donc un avertissement avant son exécution. Choisissez Informations complémentaires, puis Exécuter quand même. Linux propose aussi {rpm}, {pacman}, une AppImage et un flake Nix. Tous les fichiers sont sur la {releasesPage}, et la page {installation} détaille toutes les étapes. Ce que chaque système enregistre est décrit sur les pages {windows}, {mac} et {linux} (en anglais).",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "page Releases"
@@ -322,7 +322,7 @@
},
"showcase.captions.link.feature": {
"message": "Comparatif des sous-titres locaux (en anglais)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "Dessin du panneau des sous-titres : la ligne « amber day on the validator, and it » en grand sur la vidéo, et à côté les sous-titres activés, une note indiquant que sept lignes de sous-titres sont dérivées en direct de la transcription, et une ligne de langues qui propose English, Français, un bouton Translate et l'option de supprimer une traduction.",
@@ -345,7 +345,7 @@
},
"showcase.agent.link.feature": {
"message": "Fonctionnement des zooms automatiques (en anglais)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "Dessin de la réponse de l'agent. Prié de couper les temps morts, il répond avec des timecodes : de 0 à 2,19 secondes d'amorce avant « Hi » et de 35,12 à 40,03 secondes de fin après « think. », ce qui fait passer la vidéo de 40 à 33 secondes de contenu lisible, les zooms existants restant sur les mêmes moments ; puis une ligne verte qui indique « applied: added 2 trims ».",
@@ -364,52 +364,42 @@
"message": "Télécharger"
},
"footer.product.autoZoom": {
- "message": "Zoom automatique (en anglais)",
- "description": "Links to an English-only page."
+ "message": "Zoom automatique (en anglais)"
},
"footer.product.captions": {
- "message": "Sous-titres locaux (en anglais)",
- "description": "Links to an English-only page."
+ "message": "Sous-titres locaux (en anglais)"
},
"footer.platforms.title": {
"message": "Plateformes (en anglais)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "Comparatifs (en anglais)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Alternative à Screen Studio",
- "description": "Links to an English-only page."
+ "message": "Alternative à Screen Studio"
},
"footer.compare.camtasia": {
- "message": "Alternative à Camtasia",
- "description": "Links to an English-only page."
+ "message": "Alternative à Camtasia"
},
"footer.compare.loom": {
- "message": "Alternative à Loom",
- "description": "Links to an English-only page."
+ "message": "Alternative à Loom"
},
"footer.compare.cap": {
- "message": "OpenScreen vs Cap",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs Cap"
},
"footer.compare.obs": {
- "message": "OpenScreen vs OBS Studio",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs OBS Studio"
},
"footer.project.title": {
"message": "Projet"
diff --git a/website/i18n/ja/code.json b/website/i18n/ja/code.json
index 6d3303cdb..bdd334901 100644
--- a/website/i18n/ja/code.json
+++ b/website/i18n/ja/code.json
@@ -142,11 +142,11 @@
},
"home.features.summary": {
"message": "OpenScreen は Windows・macOS・Linux 向けの、無料・オープンソースの画面録画・動画編集ソフトです。録画したままの素材から完成したデモ動画を仕上げる、{screenStudio} が確立したジャンルのツールです。MIT ライセンスで、透かしは入らず、アカウントも不要です。作者が v1.5.0 のあとにアーカイブした{originalProject}を引き継いでいます。",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "元の OpenScreen プロジェクト"
@@ -198,7 +198,7 @@
},
"home.install.note": {
"message": "Windows には {exe} インストーラーもあります。コード署名されていないため、実行前に SmartScreen が警告を表示します。「詳細情報」を選び、「実行」をクリックしてください。Linux 向けには {rpm}、{pacman}、AppImage、Nix flake もあります。すべての配布ファイルは{releasesPage}にあり、詳しい手順は{installation}のページにあります。各 OS で何を録画できるかは、{windows}・{mac}・{linux} の各ページ(英語)で説明しています。",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "Releases ページ"
@@ -277,7 +277,7 @@
},
"showcase.captions.link.feature": {
"message": "ローカル字幕の比較(英語)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "字幕パネルのイラスト:動画の上に「amber day on the validator, and it」という一行が大きく表示されています。その横では字幕がオンになっていて、7 行の字幕が文字起こしからリアルタイムに生成されているという注記と、English、Français、Translate ボタン、翻訳を削除するオプションが並ぶ言語の行があります。",
@@ -300,7 +300,7 @@
},
"showcase.agent.link.feature": {
"message": "自動ズームの仕組み(英語)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "エージェントの返答のイラスト。無音部分のカットを頼まれ、タイムコードで答えています。「Hi」の前の導入部 0〜2.19 秒と、「think.」の後の末尾 35.12〜40.03 秒をカットし、再生できる映像を 40 秒から 33 秒にします。既存のズームは同じ場面に残ります。最後に「applied: added 2 trims」という緑色の行があります。",
@@ -364,52 +364,42 @@
"message": "ダウンロード"
},
"footer.product.autoZoom": {
- "message": "自動ズーム(英語)",
- "description": "Links to an English-only page."
+ "message": "自動ズーム(英語)"
},
"footer.product.captions": {
- "message": "ローカル字幕(英語)",
- "description": "Links to an English-only page."
+ "message": "ローカル字幕(英語)"
},
"footer.platforms.title": {
"message": "プラットフォーム(英語)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "比較(英語)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Screen Studio の代替",
- "description": "Links to an English-only page."
+ "message": "Screen Studio の代替"
},
"footer.compare.camtasia": {
- "message": "Camtasia の代替",
- "description": "Links to an English-only page."
+ "message": "Camtasia の代替"
},
"footer.compare.loom": {
- "message": "Loom の代替",
- "description": "Links to an English-only page."
+ "message": "Loom の代替"
},
"footer.compare.cap": {
- "message": "OpenScreen と Cap の比較",
- "description": "Links to an English-only page."
+ "message": "OpenScreen と Cap の比較"
},
"footer.compare.obs": {
- "message": "OpenScreen と OBS Studio の比較",
- "description": "Links to an English-only page."
+ "message": "OpenScreen と OBS Studio の比較"
},
"footer.project.title": {
"message": "プロジェクト"
diff --git a/website/i18n/pt-BR/code.json b/website/i18n/pt-BR/code.json
index c892bebfc..b710db782 100644
--- a/website/i18n/pt-BR/code.json
+++ b/website/i18n/pt-BR/code.json
@@ -142,11 +142,11 @@
},
"home.features.summary": {
"message": "O OpenScreen é um gravador de tela e editor de vídeo gratuito e de código aberto para Windows, macOS e Linux: entra uma captura bruta e sai uma demo pronta, na categoria que o {screenStudio} definiu. Tem licença MIT, sem marca d'água e sem conta, e dá continuidade ao {originalProject}, que o criador arquivou após a v1.5.0.",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "projeto OpenScreen original"
@@ -198,7 +198,7 @@
},
"home.install.note": {
"message": "O Windows também tem um instalador {exe}. Ele não tem assinatura de código, então o SmartScreen avisa antes da execução: escolha Mais informações e depois Executar assim mesmo. O Linux também tem {rpm}, {pacman}, um AppImage e um flake Nix. Todos os arquivos estão na {releasesPage}, e a página {installation} traz o passo a passo completo. O que cada sistema grava está nas páginas {windows}, {mac} e {linux} (em inglês).",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "página de Releases"
@@ -277,7 +277,7 @@
},
"showcase.captions.link.feature": {
"message": "Como as legendas locais se comparam (em inglês)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "Um desenho do painel de legendas: a frase “amber day on the validator, and it” em letras grandes sobre o vídeo e, ao lado, as legendas ativadas, uma nota de que sete linhas de legenda são derivadas ao vivo a partir da transcrição e uma linha de idiomas com English, Français, um botão Translate e a opção de excluir uma tradução.",
@@ -300,7 +300,7 @@
},
"showcase.agent.link.feature": {
"message": "Como funcionam os zooms automáticos (em inglês)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "Um desenho da resposta do agente. Ao receber o pedido de cortar o tempo morto, ele responde com timecodes: de 0 a 2,19 segundos de abertura antes de “Hi” e de 35,12 a 40,03 segundos de final depois de “think.”, levando o vídeo de 40 para 33 segundos reproduzíveis, com os zooms existentes mantidos nos mesmos momentos — e depois uma linha verde com “applied: added 2 trims”.",
@@ -364,52 +364,42 @@
"message": "Baixar"
},
"footer.product.autoZoom": {
- "message": "Zoom automático (em inglês)",
- "description": "Links to an English-only page."
+ "message": "Zoom automático (em inglês)"
},
"footer.product.captions": {
- "message": "Legendas locais (em inglês)",
- "description": "Links to an English-only page."
+ "message": "Legendas locais (em inglês)"
},
"footer.platforms.title": {
"message": "Plataformas (em inglês)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "Comparações (em inglês)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Alternativa ao Screen Studio",
- "description": "Links to an English-only page."
+ "message": "Alternativa ao Screen Studio"
},
"footer.compare.camtasia": {
- "message": "Alternativa ao Camtasia",
- "description": "Links to an English-only page."
+ "message": "Alternativa ao Camtasia"
},
"footer.compare.loom": {
- "message": "Alternativa ao Loom",
- "description": "Links to an English-only page."
+ "message": "Alternativa ao Loom"
},
"footer.compare.cap": {
- "message": "OpenScreen vs Cap",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs Cap"
},
"footer.compare.obs": {
- "message": "OpenScreen vs OBS Studio",
- "description": "Links to an English-only page."
+ "message": "OpenScreen vs OBS Studio"
},
"footer.project.title": {
"message": "Projeto"
diff --git a/website/i18n/zh-CN/code.json b/website/i18n/zh-CN/code.json
index 1b285349b..2e9d2ae06 100644
--- a/website/i18n/zh-CN/code.json
+++ b/website/i18n/zh-CN/code.json
@@ -146,11 +146,11 @@
},
"home.features.summary": {
"message": "OpenScreen 是一款免费、开源的录屏与视频剪辑软件,支持 Windows、macOS 和 Linux:放进去的是原始录屏,产出的是成品演示视频,属于 {screenStudio} 开创的这类工具。它采用 MIT 许可证,没有水印,无需账号,是{originalProject}的延续;原作者在 v1.5.0 之后将原项目归档。",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "原版 OpenScreen 项目"
@@ -202,7 +202,7 @@
},
"home.install.note": {
"message": "Windows 另有 {exe} 安装程序。它没有代码签名,因此运行前 SmartScreen 会发出警告:请选择“更多信息”,再选择“仍要运行”。Linux 另提供 {rpm}、{pacman}、AppImage 和 Nix flake。所有安装文件都在 {releasesPage},完整步骤见{installation}页面。各系统能录制什么,请参阅 {windows}、{mac} 和 {linux} 页面(英文)。",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "Releases 页面"
@@ -326,7 +326,7 @@
},
"showcase.captions.link.feature": {
"message": "本地字幕方案对比(英文)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "字幕面板的示意图:“amber day on the validator, and it”这行字幕以大字号显示在视频上;旁边,字幕已开启,一条说明写着七行字幕由转录文本实时生成,还有一行语言选项,提供 English、Français、Translate 按钮以及删除翻译的选项。",
@@ -349,7 +349,7 @@
},
"showcase.agent.link.feature": {
"message": "自动缩放的工作原理(英文)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "AI 代理回复的示意图。被要求剪掉无声的空白时,它用时间码作答:“Hi”之前 0 到 2.19 秒的开场,以及“think.”之后 35.12 到 40.03 秒的结尾,把视频的可播放时长从 40 秒缩短到 33 秒,已有的缩放仍留在原来的时刻;最后是一行绿色文字:“applied: added 2 trims”。",
@@ -368,52 +368,42 @@
"message": "下载"
},
"footer.product.autoZoom": {
- "message": "自动缩放(英文)",
- "description": "Links to an English-only page."
+ "message": "自动缩放(英文)"
},
"footer.product.captions": {
- "message": "本地字幕(英文)",
- "description": "Links to an English-only page."
+ "message": "本地字幕(英文)"
},
"footer.platforms.title": {
"message": "平台(英文)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "对比(英文)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Screen Studio 替代方案",
- "description": "Links to an English-only page."
+ "message": "Screen Studio 替代方案"
},
"footer.compare.camtasia": {
- "message": "Camtasia 替代方案",
- "description": "Links to an English-only page."
+ "message": "Camtasia 替代方案"
},
"footer.compare.loom": {
- "message": "Loom 替代方案",
- "description": "Links to an English-only page."
+ "message": "Loom 替代方案"
},
"footer.compare.cap": {
- "message": "OpenScreen 与 Cap 对比",
- "description": "Links to an English-only page."
+ "message": "OpenScreen 与 Cap 对比"
},
"footer.compare.obs": {
- "message": "OpenScreen 与 OBS Studio 对比",
- "description": "Links to an English-only page."
+ "message": "OpenScreen 与 OBS Studio 对比"
},
"footer.project.title": {
"message": "项目"
diff --git a/website/i18n/zh-TW/code.json b/website/i18n/zh-TW/code.json
index 63a09a947..817936975 100644
--- a/website/i18n/zh-TW/code.json
+++ b/website/i18n/zh-TW/code.json
@@ -146,11 +146,11 @@
},
"home.features.summary": {
"message": "OpenScreen 是免費、開源的螢幕錄影與影片剪輯軟體,支援 Windows、macOS 與 Linux:放進原始錄影,產出完成的示範影片,屬於 {screenStudio} 所開創的這類工具。它採用 MIT 授權,沒有浮水印,也不需要帳號,並延續了{originalProject};原作者在 v1.5.0 之後封存了該專案。",
- "description": "{screenStudio} links to an English-only page."
+ "description": "{screenStudio} is a link to the Screen Studio comparison page."
},
"home.features.summary.screenStudio": {
"message": "Screen Studio",
- "description": "A product name. The link goes to an English-only page."
+ "description": "A product name, used as a link."
},
"home.features.summary.originalProject": {
"message": "原始 OpenScreen 專案"
@@ -202,7 +202,7 @@
},
"home.install.note": {
"message": "Windows 另有 {exe} 安裝程式。它沒有程式碼簽署,因此執行前 SmartScreen 會發出警告:請選擇「其他資訊」,再選擇「仍要執行」。Linux 另提供 {rpm}、{pacman}、AppImage 與 Nix flake。所有檔案都在 {releasesPage},完整步驟請見{installation}頁面。各系統能錄製哪些內容,請見 {windows}、{mac} 與 {linux} 頁面(英文)。",
- "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ "description": "{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
},
"home.install.note.releasesPage": {
"message": "Releases 頁面"
@@ -281,7 +281,7 @@
},
"showcase.captions.link.feature": {
"message": "本機字幕功能比較(英文)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.captions.label": {
"message": "字幕面板的示意圖:影片上以大字顯示「amber day on the validator, and it」這一行;旁邊的字幕已開啟,註明有七行字幕是從逐字稿即時產生,還有一列語言選項,提供 English、Français、Translate 按鈕,以及刪除翻譯的選項。",
@@ -304,7 +304,7 @@
},
"showcase.agent.link.feature": {
"message": "自動縮放的運作方式(英文)",
- "description": "Links to an English-only page."
+ "description": "Link label under the panel."
},
"showcase.agent.label": {
"message": "代理回覆的示意圖。被要求剪掉空檔時,它以時間碼回答:「Hi」之前 0 到 2.19 秒的開場,以及「think.」之後 35.12 到 40.03 秒的結尾,讓影片的可播放長度從 40 秒變成 33 秒,既有的縮放仍留在相同的時刻;最後是一行綠字「applied: added 2 trims」。",
@@ -368,52 +368,42 @@
"message": "下載"
},
"footer.product.autoZoom": {
- "message": "自動縮放(英文)",
- "description": "Links to an English-only page."
+ "message": "自動縮放(英文)"
},
"footer.product.captions": {
- "message": "本機字幕(英文)",
- "description": "Links to an English-only page."
+ "message": "本機字幕(英文)"
},
"footer.platforms.title": {
"message": "平台(英文)",
- "description": "Its three links go to English-only pages."
+ "description": "Footer column title."
},
"footer.platforms.windows": {
- "message": "Windows",
- "description": "Links to an English-only page."
+ "message": "Windows"
},
"footer.platforms.mac": {
- "message": "macOS",
- "description": "Links to an English-only page."
+ "message": "macOS"
},
"footer.platforms.linux": {
- "message": "Linux",
- "description": "Links to an English-only page."
+ "message": "Linux"
},
"footer.compare.title": {
"message": "比較(英文)",
- "description": "Its five links go to English-only pages."
+ "description": "Footer column title."
},
"footer.compare.screenStudio": {
- "message": "Screen Studio 替代方案",
- "description": "Links to an English-only page."
+ "message": "Screen Studio 替代方案"
},
"footer.compare.camtasia": {
- "message": "Camtasia 替代方案",
- "description": "Links to an English-only page."
+ "message": "Camtasia 替代方案"
},
"footer.compare.loom": {
- "message": "Loom 替代方案",
- "description": "Links to an English-only page."
+ "message": "Loom 替代方案"
},
"footer.compare.cap": {
- "message": "OpenScreen 與 Cap 比較",
- "description": "Links to an English-only page."
+ "message": "OpenScreen 與 Cap 比較"
},
"footer.compare.obs": {
- "message": "OpenScreen 與 OBS Studio 比較",
- "description": "Links to an English-only page."
+ "message": "OpenScreen 與 OBS Studio 比較"
},
"footer.project.title": {
"message": "專案"
diff --git a/website/package-lock.json b/website/package-lock.json
index 05996fd04..4b13dc1c2 100644
--- a/website/package-lock.json
+++ b/website/package-lock.json
@@ -12,7 +12,6 @@
"@docusaurus/faster": "~3.10.1",
"@docusaurus/preset-classic": "~3.10.1",
"@docusaurus/theme-common": "~3.10.1",
- "@docusaurus/utils": "~3.10.1",
"@docusaurus/utils-common": "~3.10.1",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
diff --git a/website/package.json b/website/package.json
index 13a5e6ae2..7126b06f8 100644
--- a/website/package.json
+++ b/website/package.json
@@ -11,6 +11,8 @@
"typecheck": "tsc --noEmit",
"check:media": "node scripts/check-media-budget.mjs",
"check:recreation": "node scripts/gen-recreation.mjs --check",
+ "i18n:check": "node scripts/i18n.mjs check",
+ "i18n:sync": "node scripts/i18n.mjs sync",
"test": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON --test \"src/**/*.test.ts\""
},
"dependencies": {
@@ -18,7 +20,6 @@
"@docusaurus/faster": "~3.10.1",
"@docusaurus/preset-classic": "~3.10.1",
"@docusaurus/theme-common": "~3.10.1",
- "@docusaurus/utils": "~3.10.1",
"@docusaurus/utils-common": "~3.10.1",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
diff --git a/website/scripts/i18n.mjs b/website/scripts/i18n.mjs
new file mode 100644
index 000000000..50cbad4cc
--- /dev/null
+++ b/website/scripts/i18n.mjs
@@ -0,0 +1,186 @@
+#!/usr/bin/env node
+/**
+ * Keeps the seven translations in step with the English site.
+ *
+ * node scripts/i18n.mjs check which translations are behind (CI: warnings only)
+ * node scripts/i18n.mjs sync add new code.json ids, drop removed ones, copy descriptions
+ * node scripts/i18n.mjs sync --accept after translating: record the English strings as done
+ *
+ * Two kinds of source, two ways of telling that a translation is behind:
+ *
+ * Markdown (docs/, src/pages/): git. A translation is behind when its English
+ * source has a commit newer than the translation's last commit. Translating a
+ * file means committing it, which is also what clears the flag. A missing
+ * translation is not reported here: docusaurus.config.ts fails the build.
+ *
+ * Strings (<Translate> in .tsx, gathered into each locale's code.json): git
+ * cannot see an id change inside a JSON file, so i18n/code.source.json keeps
+ * the English message every translation was last brought up to. An id whose
+ * English differs from that snapshot, or is not in it yet, is behind in every
+ * locale until `sync --accept` records it. The snapshot lives outside
+ * i18n/en/ on purpose: Docusaurus would serve an i18n/en/code.json to English
+ * readers, stale strings included.
+ *
+ * `check` never fails. A typo fixed in English should not block a deploy; the
+ * warnings say what to hand to a translator (i18n/TRANSLATING.md).
+ */
+
+import { execFileSync } from "node:child_process";
+import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
+import { join, resolve } from "node:path";
+
+const ROOT = resolve(import.meta.dirname, "..");
+const I18N = join(ROOT, "i18n");
+const SNAPSHOT = join(I18N, "code.source.json");
+
+// Keep in step with TRANSLATED_SOURCES in docusaurus.config.ts.
+const MARKDOWN = [
+ { source: "docs", target: "docusaurus-plugin-content-docs/current" },
+ { source: "src/pages", target: "docusaurus-plugin-content-pages" },
+];
+
+const isThemeId = (id) => id.startsWith("theme.");
+const locales = () =>
+ readdirSync(I18N, { withFileTypes: true })
+ .filter((entry) => entry.isDirectory() && entry.name !== "en")
+ .map((entry) => entry.name)
+ .sort();
+const readJson = (file) => JSON.parse(readFileSync(file, "utf8"));
+const writeJson = (file, data) => writeFileSync(file, `${JSON.stringify(data, null, 2)}\n`);
+
+function docusaurus(args, locale) {
+ execFileSync(
+ process.execPath,
+ [join(ROOT, "node_modules/@docusaurus/core/bin/docusaurus.mjs"), ...args],
+ {
+ cwd: ROOT,
+ // write-translations does not set it itself, and the config reads it.
+ env: { ...process.env, DOCUSAURUS_CURRENT_LOCALE: locale },
+ stdio: ["ignore", "ignore", "inherit"],
+ },
+ );
+}
+
+/** The English <Translate> strings as the source code has them now. */
+function englishStrings() {
+ const dir = join(I18N, "en");
+ const existed = existsSync(dir);
+ docusaurus(["write-translations", "--locale", "en"], "en");
+ try {
+ return readJson(join(dir, "code.json"));
+ } finally {
+ if (!existed) rmSync(dir, { recursive: true, force: true });
+ }
+}
+
+/** Last commit time of every file under the website, newest first wins. */
+function lastCommitTimes() {
+ const log = execFileSync("git", ["log", "--format=%x00%ct", "--name-only", "--", "."], {
+ cwd: ROOT,
+ encoding: "utf8",
+ maxBuffer: 64 * 1024 * 1024,
+ });
+ const prefix = execFileSync("git", ["rev-parse", "--show-prefix"], {
+ cwd: ROOT,
+ encoding: "utf8",
+ }).trim();
+ const times = new Map();
+ for (const entry of log.split("\0").slice(1)) {
+ const [time, ...files] = entry.trim().split("\n");
+ for (const file of files) {
+ const path = file.startsWith(prefix) ? file.slice(prefix.length) : file;
+ if (path && !times.has(path)) times.set(path, Number(time));
+ }
+ }
+ return times;
+}
+
+function check() {
+ const stale = [];
+ const times = lastCommitTimes();
+ for (const { source, target } of MARKDOWN) {
+ const files = readdirSync(join(ROOT, source), { recursive: true, encoding: "utf8" })
+ .map((file) => file.replaceAll("\\", "/"))
+ .filter((file) => /\.mdx?$/.test(file));
+ for (const file of files) {
+ const sourceTime = times.get(`${source}/${file}`) ?? Number.POSITIVE_INFINITY;
+ for (const locale of locales()) {
+ const translation = `i18n/${locale}/${target}/${file}`;
+ const translationTime = times.get(translation);
+ if (translationTime !== undefined && sourceTime > translationTime) {
+ stale.push({
+ file: translation,
+ why: `${source}/${file} changed since it was translated`,
+ });
+ }
+ }
+ }
+ }
+
+ const english = englishStrings();
+ const done = existsSync(SNAPSHOT) ? readJson(SNAPSHOT) : {};
+ const changed = Object.keys(english).filter(
+ (id) => !isThemeId(id) && english[id].message !== done[id],
+ );
+ if (changed.length > 0) {
+ const shown = changed.slice(0, 8).join(", ");
+ const more = changed.length > 8 ? ` and ${changed.length - 8} more` : "";
+ stale.push({
+ file: "i18n/code.source.json",
+ why: `${changed.length} English string(s) changed or added since the last \`npm run i18n:sync -- --accept\`, in every locale's code.json: ${shown}${more}`,
+ });
+ }
+
+ for (const { file, why } of stale) {
+ const line = `${file}: ${why}`;
+ console.log(process.env.GITHUB_ACTIONS ? `::warning file=website/${file}::${why}` : line);
+ }
+ console.log(
+ stale.length === 0
+ ? "Translations are up to date."
+ : `${stale.length} translation(s) behind English; see i18n/TRANSLATING.md.`,
+ );
+}
+
+function sync(accept) {
+ const english = englishStrings();
+ for (const locale of locales()) {
+ // Adds the ids the source gained, with their English message as a placeholder.
+ docusaurus(["write-translations", "--locale", locale], locale);
+ const file = join(I18N, locale, "code.json");
+ const strings = readJson(file);
+ for (const id of Object.keys(strings)) {
+ if (!(id in english)) {
+ delete strings[id];
+ continue;
+ }
+ const { description } = english[id];
+ if (description === undefined) delete strings[id].description;
+ else strings[id].description = description;
+ }
+ writeJson(file, strings);
+ const untranslated = Object.keys(strings).filter(
+ (id) => !isThemeId(id) && strings[id].message === english[id].message,
+ );
+ console.log(`${locale}: ${untranslated.length} string(s) still equal to the English`);
+ }
+ if (accept) {
+ const snapshot = Object.fromEntries(
+ Object.entries(english)
+ .filter(([id]) => !isThemeId(id))
+ .map(([id, { message }]) => [id, message]),
+ );
+ writeJson(SNAPSHOT, snapshot);
+ console.log(
+ `Recorded ${Object.keys(snapshot).length} English strings in i18n/code.source.json.`,
+ );
+ }
+}
+
+const [command, flag] = process.argv.slice(2);
+if (command === "check") check();
+else if (command === "sync") sync(flag === "--accept");
+else {
+ console.error("usage: node scripts/i18n.mjs check | sync [--accept]");
+ process.exit(2);
+}
diff --git a/website/src/components/Showcase/content.ts b/website/src/components/Showcase/content.ts
index 2ff7842ea..efdfd3a03 100644
--- a/website/src/components/Showcase/content.ts
+++ b/website/src/components/Showcase/content.ts
@@ -139,7 +139,7 @@ export function getFeatures(): Feature[] {
label: translate({
id: "showcase.captions.link.feature",
message: "How local captions compare",
- description: "Links to an English-only page.",
+ description: "Link label under the panel.",
}),
},
],
@@ -174,7 +174,7 @@ export function getFeatures(): Feature[] {
label: translate({
id: "showcase.agent.link.feature",
message: "How automatic zooms work",
- description: "Links to an English-only page.",
+ description: "Link label under the panel.",
}),
},
],
diff --git a/website/src/lib/locale-routes.test.ts b/website/src/lib/locale-routes.test.ts
index 64a3d30c0..8f1074279 100644
--- a/website/src/lib/locale-routes.test.ts
+++ b/website/src/lib/locale-routes.test.ts
@@ -1,22 +1,18 @@
import assert from "node:assert/strict";
import { test } from "node:test";
-import { BLOG_PATH, ENGLISH_ONLY_PAGES, isEnglishOnlyPath } from "./locale-routes.ts";
+import { isEnglishOnlyPath } from "./locale-routes.ts";
-test("every English-only family matches, with and without the trailing slash", () => {
- for (const prefix of [BLOG_PATH, ...ENGLISH_ONLY_PAGES.map((page) => page.path)]) {
- const page = prefix.endsWith("/") ? `${prefix}some-page/` : `${prefix}linux/`;
- assert.equal(isEnglishOnlyPath(page), true, page);
- assert.equal(isEnglishOnlyPath(page.slice(0, -1)), true, page.slice(0, -1));
+test("the blog is English-only, with or without the trailing slash", () => {
+ for (const path of ["/blog", "/blog/", "/blog/2026/09/09/an-export-benchmark-hard-to-fake/"]) {
+ assert.equal(isEnglishOnlyPath(path), true, path);
}
- // The family roots themselves, as the navbar and footer write them.
- assert.equal(isEnglishOnlyPath("/blog"), true);
- assert.equal(isEnglishOnlyPath("/blog/"), true);
+ assert.equal(isEnglishOnlyPath("/blog/2026/09/09/an-export-benchmark-hard-to-fake"), true);
});
test("query strings and hashes do not change the answer", () => {
- assert.equal(isEnglishOnlyPath("/features/captions/#offline"), true);
- assert.equal(isEnglishOnlyPath("/compare/openscreen-vs-cap?ref=docs"), true);
+ assert.equal(isEnglishOnlyPath("/blog/?ref=footer"), true);
+ assert.equal(isEnglishOnlyPath("/blog#latest"), true);
assert.equal(isEnglishOnlyPath("/docs/faq/#does-openscreen-work-offline"), false);
});
@@ -25,12 +21,12 @@ test("translated routes and look-alikes are not English-only", () => {
"/",
"/download/",
"/docs/intro/",
- "/docs/captions/",
+ "/features/captions/",
+ "/alternatives/screen-studio/",
+ "/compare/openscreen-vs-cap",
+ "/screen-recorder-linux/",
"/blogroll/",
- "/featured/",
- "/screen-recorder",
"/fr/blog/",
- "/fr/features/captions/",
]) {
assert.equal(isEnglishOnlyPath(path), false, path);
}
diff --git a/website/src/lib/locale-routes.ts b/website/src/lib/locale-routes.ts
index bc9d0486c..c6b092c62 100644
--- a/website/src/lib/locale-routes.ts
+++ b/website/src/lib/locale-routes.ts
@@ -1,38 +1,21 @@
/**
* The routes that exist in English only, in one place.
*
- * Translated locales ship the landing page, /download/ and the docs. The blog
- * and the marketing pages below stay English: the blog is a dated development
- * journal, and the comparison pages carry vendor facts checked in English. A
- * non-en build therefore drops them (docusaurus.config.ts), and every surface
- * that a translated page shares with them has to know which URLs those are:
+ * Every page and doc is translated into every locale (docusaurus.config.ts
+ * fails a build that misses one). The blog is the exception: it is a dated
+ * development journal, so a non-en build switches the plugin off, and every
+ * surface that a translated page shares with it has to know which URLs those
+ * are:
*
- * - the config, to exclude the page files and switch the blog off;
* - LocaleLink and the MDX link override, to send a reader to the English
* page with a plain <a hrefLang="en"> instead of a /fr/... URL that 404s;
* - SiteMetadata, to emit no hreflang alternates on a page that has none;
* - the locale dropdown, to send a reader to that locale's home instead (it
* does the same on the 404 page).
- *
- * The URL prefix and the source glob of each page family sit on the same line
- * so that adding a family, or translating one, is a one-line change that both
- * sides see. The blog has no glob: it is a plugin, switched off as a whole.
*/
-export const ENGLISH_ONLY_PAGES = [
- { path: "/alternatives/", glob: "alternatives/**" },
- { path: "/compare/", glob: "compare/**" },
- { path: "/features/", glob: "features/**" },
- { path: "/screen-recorder-", glob: "screen-recorder-*.mdx" },
-] as const;
-
export const BLOG_PATH = "/blog/";
-/** Globs relative to src/pages, for the pages plugin's `exclude`. */
-export const ENGLISH_ONLY_PAGE_GLOBS = ENGLISH_ONLY_PAGES.map((page) => page.glob);
-
-const ENGLISH_ONLY_PREFIXES = [BLOG_PATH, ...ENGLISH_ONLY_PAGES.map((page) => page.path)];
-
/**
* True for a site-root path (no locale segment) that only the English build
* serves. Accepts the forms the site actually writes: with or without the
@@ -41,5 +24,5 @@ const ENGLISH_ONLY_PREFIXES = [BLOG_PATH, ...ENGLISH_ONLY_PAGES.map((page) => pa
export function isEnglishOnlyPath(path: string): boolean {
const bare = path.replace(/[?#].*$/, "");
const slashed = bare.endsWith("/") ? bare : `${bare}/`;
- return ENGLISH_ONLY_PREFIXES.some((prefix) => slashed.startsWith(prefix));
+ return slashed.startsWith(BLOG_PATH);
}
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 7c0f182cd..d2e60bf8f 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -145,13 +145,13 @@ export default function Home() {
<p className={styles.productSummary}>
<Translate
id="home.features.summary"
- description="{screenStudio} links to an English-only page."
+ description="{screenStudio} is a link to the Screen Studio comparison page."
values={{
screenStudio: (
<LocaleLink to="/alternatives/screen-studio/">
<Translate
id="home.features.summary.screenStudio"
- description="A product name. The link goes to an English-only page."
+ description="A product name, used as a link."
>
Screen Studio
</Translate>
@@ -321,7 +321,7 @@ export default function Home() {
<p className={styles.quickStartNote}>
<Translate
id="home.install.note"
- description="{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to English-only pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
+ description="{exe}, {rpm} and {pacman} are file extensions shown as code. {windows}, {mac} and {linux} link to the platform pages. More info and Run anyway are SmartScreen's buttons: use the labels Windows shows in your language."
values={{
exe: <code>.exe</code>,
rpm: <code>.rpm</code>,
diff --git a/website/src/theme/Footer/index.tsx b/website/src/theme/Footer/index.tsx
index 5dc9e560e..767b07fe0 100644
--- a/website/src/theme/Footer/index.tsx
+++ b/website/src/theme/Footer/index.tsx
@@ -8,8 +8,8 @@ import styles from "./styles.module.css";
const UPSTREAM_REPO_URL = "https://github.com/siddharthvaddem/openscreen";
-// Shown to translators next to every label whose page is English only. The
-// label can say so ("Blog (English)") where the column leaves it unclear.
+// Shown to translators next to the blog label, the one English-only page the
+// footer links. The label can say so ("Blog (English)").
const EN_ONLY = "Links to an English-only page.";
/**
@@ -23,7 +23,8 @@ const EN_ONLY = "Links to an English-only page.";
* The design had two link columns, Project and Community. Product, Platforms
* and Compare were added so the platform, feature and comparison pages are one
* click from every URL on the site instead of reachable only from each other.
- * Those pages are English only, so they go through LocaleLink.
+ * Links go through LocaleLink, which keeps the blog link working from a
+ * translated build.
*/
export default function Footer(): ReactNode {
const logoSrc = useBaseUrl("img/logo-icon.png");
@@ -54,80 +55,54 @@ export default function Footer(): ReactNode {
<Translate id="footer.product.download">Download</Translate>
</Link>
<LocaleLink to="/features/auto-zoom/">
- <Translate id="footer.product.autoZoom" description={EN_ONLY}>
- Auto zoom
- </Translate>
+ <Translate id="footer.product.autoZoom">Auto zoom</Translate>
</LocaleLink>
<LocaleLink to="/features/captions/">
- <Translate id="footer.product.captions" description={EN_ONLY}>
- Local captions
- </Translate>
+ <Translate id="footer.product.captions">Local captions</Translate>
</LocaleLink>
</div>
</div>
<div>
<div className={styles.colTitle}>
- <Translate
- id="footer.platforms.title"
- description="Its three links go to English-only pages."
- >
+ <Translate id="footer.platforms.title" description="Footer column title.">
Platforms
</Translate>
</div>
<div className={styles.colLinks}>
<LocaleLink to="/screen-recorder-windows/">
- <Translate id="footer.platforms.windows" description={EN_ONLY}>
- Windows
- </Translate>
+ <Translate id="footer.platforms.windows">Windows</Translate>
</LocaleLink>
<LocaleLink to="/screen-recorder-mac/">
- <Translate id="footer.platforms.mac" description={EN_ONLY}>
- macOS
- </Translate>
+ <Translate id="footer.platforms.mac">macOS</Translate>
</LocaleLink>
<LocaleLink to="/screen-recorder-linux/">
- <Translate id="footer.platforms.linux" description={EN_ONLY}>
- Linux
- </Translate>
+ <Translate id="footer.platforms.linux">Linux</Translate>
</LocaleLink>
</div>
</div>
<div>
<div className={styles.colTitle}>
- <Translate
- id="footer.compare.title"
- description="Its five links go to English-only pages."
- >
+ <Translate id="footer.compare.title" description="Footer column title.">
Compare
</Translate>
</div>
<div className={styles.colLinks}>
<LocaleLink to="/alternatives/screen-studio/">
- <Translate id="footer.compare.screenStudio" description={EN_ONLY}>
- Screen Studio alternative
- </Translate>
+ <Translate id="footer.compare.screenStudio">Screen Studio alternative</Translate>
</LocaleLink>
<LocaleLink to="/alternatives/camtasia/">
- <Translate id="footer.compare.camtasia" description={EN_ONLY}>
- Camtasia alternative
- </Translate>
+ <Translate id="footer.compare.camtasia">Camtasia alternative</Translate>
</LocaleLink>
<LocaleLink to="/alternatives/loom/">
- <Translate id="footer.compare.loom" description={EN_ONLY}>
- Loom alternative
- </Translate>
+ <Translate id="footer.compare.loom">Loom alternative</Translate>
</LocaleLink>
<LocaleLink to="/compare/openscreen-vs-cap/">
- <Translate id="footer.compare.cap" description={EN_ONLY}>
- OpenScreen vs Cap
- </Translate>
+ <Translate id="footer.compare.cap">OpenScreen vs Cap</Translate>
</LocaleLink>
<LocaleLink to="/compare/openscreen-vs-obs/">
- <Translate id="footer.compare.obs" description={EN_ONLY}>
- OpenScreen vs OBS Studio
- </Translate>
+ <Translate id="footer.compare.obs">OpenScreen vs OBS Studio</Translate>
</LocaleLink>
</div>
</div>
diff --git a/website/src/theme/MDXComponents/A.tsx b/website/src/theme/MDXComponents/A.tsx
index e16562bb8..57f4af9e1 100644
--- a/website/src/theme/MDXComponents/A.tsx
+++ b/website/src/theme/MDXComponents/A.tsx
@@ -7,10 +7,9 @@ import { isEnglishOnlyPath } from "../../lib/locale-routes";
/**
* Markdown links in the docs go through LocaleLink when they point at an
- * English-only page. In a translated build, `[Auto zoom](/features/auto-zoom/)`
- * would otherwise render as /fr/features/auto-zoom/, a page that build does not
- * have, and onBrokenLinks fails it. That is true of a translated doc and of an
- * untranslated one, which Docusaurus publishes from the English source.
+ * English-only page (the blog). In a translated build, `[journal](/blog/)` would
+ * otherwise render as /fr/blog/, a page that build does not have, and
+ * onBrokenLinks fails it.
*/
export default function AWrapper(props: Props): ReactNode {
const { href, ...rest } = props;
diff --git a/website/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx b/website/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
index c6e8eec83..73ec9a677 100644
--- a/website/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
+++ b/website/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
@@ -12,7 +12,7 @@ import { isEnglishOnlyPath } from "../../../lib/locale-routes";
/**
* The stock dropdown links each locale to the current page under that locale's
- * baseUrl. On the blog and the marketing pages, which exist in English only
+ * baseUrl. On the blog, which exists in English only
* (src/lib/locale-routes.ts), every one of those links 404s. There the menu
* lists the same locales but sends each one to its home page instead, and
* English to the page the reader is on.
diff --git a/website/src/theme/SiteMetadata/index.tsx b/website/src/theme/SiteMetadata/index.tsx
index 1c74008ec..0d8bd6a76 100644
--- a/website/src/theme/SiteMetadata/index.tsx
+++ b/website/src/theme/SiteMetadata/index.tsx
@@ -16,7 +16,7 @@ import { isEnglishOnlyPath } from "../../lib/locale-routes";
* upstream on every Docusaurus upgrade). One change, in AlternateLangHeaders.
*
* Upstream emits an hreflang alternate for every locale on every page. The blog
- * and the marketing pages are built in English only (src/lib/locale-routes.ts),
+ * is built in English only (src/lib/locale-routes.ts),
* so on those routes each alternate pointed at a /fr/, /es/... URL that 404s,
* which is the one hreflang error search engines report. Those routes now emit
* no alternates at all, and no og:locale:alternate either, for the same reason.