fix(i18n): the four places seven languages did not reach - #195
Merged
Conversation
A pass over the site now that it ships seven languages instead of two. Four gaps, all of them things a reader hits and nothing in the suite watched. **The language trigger did not fit a phone.** Widening it to 132px so it could hold "Português" meant that at 390px it pushed its own caret past the viewport edge and wrapped "Document Editor" onto two lines. Below 620px the bar drops its GitHub link -- that link is in every footer, while the language switch is the only control that changes the language. **/history and /404 still offered two languages.** They are hand-written (an app surface and an error page, neither goes through the generator), so their switch does not come from LOCALES and nothing noticed: neither page is in the sitemap or the hreflang graph. Both now list all seven, pinned against Object.keys(LOCALES). **Portuguese was two different Portugueses.** The /pt/ pages, the generator's UI strings and the vendor locale the editor loads (pt.json, not pt-pt.json) are Brazilian; the shell's pt table was largely European -- ficheiro, guardados, Definições, "Não é possível anular", "está a meio". So one reader saw Brazilian on the landing page, European in /history, and Brazilian again in the editor. Fourteen strings rewritten to match everything around them. **llms-full.txt was seven times longer than it needed to be.** It walks every page under public/, so the translations took it from ~97 KB to 680 KB of the same facts restated. It now covers the English pages and says at the top where the mirrors are; /llms.txt still lists them. docs/explorations/2026-08-23-seven-languages-audit.md records the whole pass, including what was checked and found clean, and the two things left: design-audit still only measures English, and /history and /404 still duplicate chrome the generator owns everywhere else. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
chaxus
enabled auto-merge (rebase)
August 23, 2026 03:58
Deploying document with
|
| Latest commit: |
b7b4c18
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://632d2649.document-7hm.pages.dev |
| Branch Preview URL: | https://i18n-audit-fixes.document-7hm.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pass over the site now that it ships seven languages instead of two. Four gaps, all of them things a reader hits and none of them watched by anything.
1. The language trigger did not fit a phone
Widening it to 132px (so "Português" stopped being cut in half) meant that at 390px it pushed its own caret past the viewport edge and wrapped "Document Editor" onto two lines. Below 620px the bar now drops its GitHub link — that link is in every footer, while the language switch is the only control that changes the language.
2.
/historyand/404still offered two languagesBoth are hand-written (an app surface and an error page; neither goes through the generator), so their switch does not come from
LOCALES. Nothing noticed, because neither page is in the sitemap or the hreflang graph. Both now list all seven, pinned againstObject.keys(LOCALES).3. Portuguese was two different Portugueses
The
/pt/pages, the generator's UI strings and the vendor locale the editor loads (pt.json, notpt-pt.json) are Brazilian. The shell'spttable was largely European —ficheiro,guardados,Definições, "Não é possível anular", "está a meio". One reader saw Brazilian on the landing page, European in/history, Brazilian again in the editor. Fourteen strings rewritten.4.
llms-full.txtwas seven times longer than it needed to beIt walks every page under
public/, so the translations took it from ~97 KB to 680 KB of the same facts restated seven times. Now English pages only, with a note at the top saying where the mirrors are;/llms.txtstill lists them.Checked and clean
?locale=verified per locale down to the vendor frame'slang=and the toolbar textInstallieren und im Flugzeug nutzen, 35 chars) wrap cleanly in the pillar columnsdocs/explorations/2026-08-23-seven-languages-audit.mdrecords the whole pass, including the two things left open:design-auditstill only measures English pages, and/historyand/404still duplicate chrome the generator owns everywhere else.🤖 Generated with Claude Code