Skip to content

feat: serve the docs under /en/ with a language selector - #223

Merged
blaipr merged 1 commit into
mainfrom
feat/english-under-en
Oct 20, 2026
Merged

blaipr merged 1 commit into
mainfrom
feat/english-under-en

Conversation

@blaipr

@blaipr blaipr commented Oct 20, 2026

Copy link
Copy Markdown
Member

What this changes

The docs move under a language prefix, English under /en/, with a language selector (flag and name, as in the app) at the right of the header. Every old address (/upgrade-7, /seed, /faq, the root) keeps working as a redirect to the same page in the reader's language: the one they last picked, else their browser's, else English. /install and /helm-charts/ stay at the root with no redirect, and /v6/ is unchanged.

It also lays the ground for translations: scripts/build-language.sh builds a language over a copy of source/, the site's own strings live in source/_data/ui.yml, and translated headings get their English anchors back. The Spanish docs follow in a separate pull request.

Checked on a local build: every ansibleforms.com link in the app, installer and Helm repo resolves, the install script is served byte-identical, and the redirects pick the browser's language.

Checklist

  • Branch is named <type>/<description> and the title is a Conventional Commit
  • Previewed with a full local build, served like GitHub Pages
  • source/_reference/changelog.md and source/_data/help.yaml are NOT edited - they come from the app repository

The docs move under a language prefix, English under /en/, ready for more
languages. Every old address keeps working as a redirect to the reader's
language: the one they last picked, else their browser's, else English.
/install and /helm-charts/ stay at the root without a redirect, and /v6/
is unchanged.

- A language selector at the right of the header, with the app's flags
- The site's own strings (tables, previous/next, search) in _data/ui.yml
- scripts/build-language.sh builds a language over a copy of source/,
  with i18n-anchors, i18n-fallback and i18n-status for translations
- hreflang links between the languages of a page
@blaipr
blaipr merged commit bd87bdc into main Oct 20, 2026
4 checks passed
@blaipr
blaipr deleted the feat/english-under-en branch October 20, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant