mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4229] [MERGED] Add the Brazilian Portuguese documentation language pack #6291
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6291
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4229
Author: @kolacheee
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/docs-language-pt-br📝 Commits (5)
2223526Offer Brazilian Portuguese as a documentation language5b54d6bMerge remote-tracking branch 'origin/staging' into agent/docs-language-pt-br7c41ec2Reference #4229 in the changelog entry54cabd8Merge branch 'staging' into agent/docs-language-pt-br4627d73Merge branch 'staging' into agent/docs-language-pt-br📊 Changes
7 files changed (+36 additions, -5 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
CONTRIBUTING.md(+1 -0)📝
packages/client/src/components/modals/DocsViewerModal.tsx(+22 -0)📝
packages/client/src/components/onboarding/OnboardingTutorial.tsx(+8 -4)📝
packages/client/src/components/panels/SettingsPanel.tsx(+1 -1)📝
packages/shared/src/constants/docs-languages.ts(+1 -0)📝
scripts/regressions/docs-language.regression.ts(+1 -0)📄 Description
Why
Language #5 of the plan to cover every interface language with a documentation pack, following Spanish (#4100), German (#4157), and French (#4191). The pack code is
pt-brwith the label Português (Brasil), matching the interface-language convention. Content lives on the companiondocs-i18nbranch (pt-br/+ sha256 manifest) and downloads on demand — zero checkout or image weight.There is no linked issue/feature request yet — one should be opened and linked before this PR is submitted.
What changed
packages/shared/src/constants/docs-languages.ts:"pt-br": { label: "Português (Brasil)", englishLabel: "Brazilian Portuguese" }.packages/client/src/components/onboarding/OnboardingTutorial.tsx: first region-suffixed pack code exposed a real gap — the tutorial's language suggestion strippedpt-BRtoptand would never propose the pack. It now matches the full lowercased locale first (pt-BR→pt-br), then falls back to a base-language match (a hypotheticalpt-PTinterface would still findpt-br).packages/client/src/components/modals/DocsViewerModal.tsx: Portuguese sidebar category labels (Guias,Início,Conexões,Personagens,Configurações, …; mode names Conversation/Roleplay/Game Mode stay English to match the UI).packages/client/src/components/panels/SettingsPanel.tsx: settings-search aliases"portuguese","português","brazilian".scripts/regressions/docs-language.regression.ts: pt-br assertion (and the existing supported-but-uninstalled fixture test now exercises the real region-suffixed code path).CONTRIBUTING.md: Brazilian Portuguese per-language conventions;CHANGELOG.md: Unreleased entry.docs-i18n, not part of this diff):pt-br/**— all 123 guides with a generated manifest.Translation approach
Same naturalness-first method as German and French: a glossary/style brief with an explicit anti-calque table, consistent você with its imperative ("Clique", "Abra") — matching the informal-register precedent (tú/du/tu) and Brazilian consumer-software convention — deliberately Brazilian vocabulary with European forms banned (arquivo/salvar/tela/usuário, never ficheiro/guardar/ecrã/utilizador), current Acordo Ortográfico spelling, community loanwords with genders (o prompt, o token, o lorebook; NPC stays NPC per Brazilian gaming usage), false-friend guardrails (livraria/biblioteca, atualmente, eventualmente), and UI control names kept in English bold with a one-time Portuguese gloss. The sweep now also includes the cross-link-text audit institutionalized after the French pack (link text unified to each target's actual H1 for the most-linked guides). Every file passed structural verification, dialect/address-form/terminology sweeps, and an independent language-QA panel.
Validation done
pnpm checkandpnpm regression:docsgreen (regression reportsen, de, es, fr, pt-br).scripts/docs-i18n/validate-pack.mjs+build-manifest.mjsgreen onpt-br/.Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.