Custom texts
Every visible string comes from a text file per language. You can override single
strings without rebuilding the image by mounting a directory and pointing TEXTS_DIR
at it. Only the keys you list are replaced; everything else keeps its default.
Layout
Section titled “Layout”texts/ locales/ en.yaml de.yaml themes/ terminal/ locales/ en.yamllocales/<lang>.yamlapplies to every theme.themes/<theme>/locales/<lang>.yamlapplies only while that theme is selected, and wins over the file above it.
Languages are de, en, pl and fr. Files are optional, and a file for a language
that is not in LANGUAGES is ignored. Texts are read once at start, so restart the
container after a change. A file that is not valid YAML stops the container at start.
The order of precedence, last one wins: built-in texts, built-in theme texts, then
your locales, then your themes/<theme>/locales.
Mounting
Section titled “Mounting”services: error-pages: image: noixdev/error-pages environment: TEXTS_DIR: /texts volumes: - ./texts:/texts:roExample: reword one page
Section titled “Example: reword one page”texts/locales/en.yaml:
pages: "404": title: "We could not find that page" description: "Try the start page or use the search." maintenance: title: "Back soon" description: "We are updating the shop. Please come back in a few minutes." closing: "Thank you for your patience."Quote numeric page keys such as "404".
| Key | Meaning |
|---|---|
pages.<code>.title | Title of the page for that code, for example pages."404".title. |
pages.<code>.description | Short explanation under the title. |
pages.maintenance.closing | Closing line of the maintenance page. |
pages.internal.* | The internal-only page (title, description). |
pages.4xx.*, pages.5xx.* | Texts for codes without their own page. |
ui.error, ui.back, ui.reload, ui.please, ui.or, ui.language | Labels and short words around the page. |
ui.expected_back | Expected end of maintenance. Keep the {time} placeholder. |
chain.* | Labels in the status theme: you, browser, network, host, working, failed, happened, cando. |
advice.browser, advice.network, advice.host | The “What can I do?” text of the status theme, per failing link. |
The built-in files are the complete reference for the available keys and their
wording. They are in the repository under
web/locales.
Example: theme-specific wording
Section titled “Example: theme-specific wording”texts/themes/terminal/locales/en.yaml only affects the terminal theme:
ui: back: "Return" reload: "Retry"Footer links
Section titled “Footer links”Link labels do not come from these files; set them in LINKS or in the YAML configuration. See
Footer links.