Skip to content

Translating

Niels Franke edited this page Jun 14, 2026 · 1 revision

Translating

ContactSheet is available in English and German, and the whole interface is translatable. Client galleries auto-detect the visitor's browser language; you, the photographer, pick your admin language in Settings → Workspace.

Translations are community-driven, and you don't need to touch any code to help.

Help translate

Everything happens on the project's Weblate instance:

👉 translate.nielsbox.cc

  1. Register an account (you'll get a confirmation email) and sign in.
  2. Open the ContactSheet › Frontend component and pick your language.
  3. Translate string by string. Weblate shows the English source and a key name that hints where the text appears (e.g. gallery.lightbox.next).

Your changes are reviewed and merged by a maintainer — no Git knowledge required.

Keep the placeholders intact

Some strings contain ICU MessageFormat syntax. Translate the words, never the syntax:

  • Keep placeholders like {name}, {count}, {pct} exactly as written — they're filled in at runtime.

  • Keep plural wrappers and their category keywords; only translate the words:

    en: {count, plural, one {# photo} other {# photos}}
    de: {count, plural, one {# Foto} other {# Fotos}}
    

    Add the plural forms your language needs — Weblate shows the correct set for each language.

  • Keep inline tags like <b>…</b> and only translate the text between them.

Weblate's built-in checks flag broken placeholders before a translation can be marked done.

Start a new language

In Weblate choose Add new translation and pick your language — it's seeded from English so every string is ready to fill in. Once a maintainer enables it in the app (a one-line change), it becomes selectable for everyone.

For maintainers

The technical details — how the catalogs work, how a translated string flows from Weblate back into the app (via a weblate branch → pull request), how to register a new locale, and how the Weblate server is deployed — live in the repository, not this wiki:

  • TRANSLATING.md — the contributor + maintainer guide.
  • docs/architecture/i18n-and-localization.md — the design.
  • deploy/weblate/ — the Weblate deployment stack and runbook.

In short: a new locale needs one edit to frontend/src/i18n/locales.ts (add it to SUPPORTED_LOCALES and a label to LOCALE_LABELS), then node frontend/scripts/validate-i18n.mjs to check catalog parity.


Back to the Home index.

Clone this wiki locally