Skip to content

feat(i18n): add Brazilian Portuguese (pt-BR) interface language - #2

Merged
felipemazetti merged 1 commit into
mainfrom
feat/pt-br
Oct 2, 2026
Merged

felipemazetti merged 1 commit into
mainfrom
feat/pt-br

Conversation

@felipemazetti

Copy link
Copy Markdown
Owner

Cherry-pick of upstream diwenne/openreply#79 by @in100tiva (authorship preserved), so this fork gets the pt-BR interface before upstream merges it.

  • lib/i18n/pt-BR.json: 448 entries, same keys as zh-TW.json
  • lib/i18n/index.ts: catalogs map instead of the zh-TW ternary
  • Language switcher option, tests and docs

Out of scope (as in upstream): marketing/legal pages, auth emails, worker.

Once upstream merges diwenne#79, syncing the fork makes this commit a no-op.

🤖 Generated with Claude Code

Adds a third interface language next to English and Traditional Chinese.
The pt-BR catalog translates the same 448 English source keys as zh-TW,
keeps every {placeholder} intact and is wired through the existing
locale cookie, server action and provider — no new dependency, schema
or worker change.

A `satisfies` check makes a missing pt-BR key a compile error, and a
test pins the pt-BR key set to the zh-TW one so the catalogs cannot
drift apart.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PEPFq6M4tCRdtCgXbnRt5a
@felipemazetti
felipemazetti merged commit d4e133b into main Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant