Repository navigation
Translate guide chapter 01 into Brazilian Portuguese - #712
lmagalhaes wants to merge 24 commits into
Conversation
TRANSLATING.md allows a language to translate only some chapters, with the rest built from English. The test read only the language's own folder, so a guide without its own chapter 14 failed. It now checks the chapters the build uses, and the language list includes pt-br.
Match the interface: the article is dropped only where layerling is
the subject ("layerling é um programa").
25fff1d to
5765031
Compare
|
@lmagalhaes thank you for the first pt-BR chapter. I went through it: the structure matches the English chapter section by section, and the test change makes sense. I have merged it here, so it goes out with the next release. The other chapters can follow in their own pull requests, as you planned. |
The what's-new help button fell back to the English anchor, which the translated chapter does not have, so it opened the top of the page. The test checks every question mark against the pt-BR chapters translated so far, so the next chapters are covered too.
f4115b1 to
491d9ca
Compare
|
@henmedia thank you! One thing: after your review I pushed one more commit (491d9ca). With chapter 01 translated, the what's-new help still pointed at the English anchor and opened the top of the page, so it adds the pt-br id to Small question too: TRANSLATING.md mentions |
|
@henmedia see my comment above about the extra commit after your review. |
|
@lmagalhaes Thank you, good catch. I took the extra commit (491d9ca) in, so you do not need a separate pull request. It comes with the next version. And yes, please send the small docs PR: TRANSLATING.md should say that a partly translated guide needs its anchors in GUIDE_SECTIONS too, as Spanish, Russian, Czech and Hungarian already do it. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@lmagalhaes the guide chapter and the what's-new help fix are out in 1.100.0, thank you. |
|
Closing this one: the change is in main and out in a release, so there is nothing left to merge here. Thank you again. |
Summary
Changes outside the guide
tests/unit/guideAllLanguages.test.tslisted the guide languages by hand and read chapter 14 only from each language's own folder. TRANSLATING.md allows a language to start with a few chapters, so the test now includespt-brand checks the AI chapter each language actually builds (effectiveChapters), which is the English one until it is translated.apps/web/src/lib/guideLinks.tsgets the pt-br anchor forwhatsNew, so the what's-new help opens the translated heading instead of the top of the chapter. A test checks every question mark against the pt-br chapters translated so far, so the next chapters are covered as they come in.Testing
npm run typechecknpm testnpm run guideNotes