#22637: feat(i18n): add Portuguese (Brazil) translations
docs
app: web-ui
size: XS
Cluster:
Multilingual Support Enhancements
## Summary
Extends the existing i18n system with Portuguese (Brazil) translations for the config-form UI component.
## Changes
| File | Description |
|------|-------------|
| `ui/src/i18n/locales/en.ts` | Adds `configForm` section with 11 translation keys for config-form UI strings (error messages, buttons, placeholders, tooltips). |
| `ui/src/i18n/locales/pt-BR.ts` | Adds matching `configForm` section with Portuguese (Brazil) translations. |
| `ui/src/ui/views/config-form.node.ts` | Replaces 11 hardcoded English strings with `t()` calls from the shared `ui/src/i18n` system. |
| `docs/reference/credits.md` | Adds contributor entry. |
## Design decisions
- **Uses the existing i18n infrastructure** — `I18nManager`, nested keys (e.g. `t("configForm.unsupportedNode")`), lazy loading, and the established `t()` function from `ui/src/i18n/lib/translate.ts`.
- **No duplicate systems** — imports from `../../i18n/index.ts` (same pattern as `app-render.ts`, `navigation.ts`, `overview.ts`).
- **Both `en.ts` and `pt-BR.ts` updated** — English keys serve as the source of truth; Portuguese translations mirror the same structure.
- **No new runtime dependencies.**
## How to test
1. Open the OpenClaw UI in a browser with language set to `pt-BR`.
2. Navigate to any config form — error messages, buttons, and placeholders should appear in Portuguese.
3. Switch browser language to `en-US` — strings revert to English.
## Checklist
- [x] `pnpm check` (format + tsgo + lint) — ✅ passes
- [x] `pnpm format:docs:check` — ✅ passes
- [x] `pnpm docs:check-links` — ✅ 0 broken links
- [x] Uses existing i18n system (`ui/src/i18n/`) — no duplicate infrastructure
- [x] Both `en.ts` and `pt-BR.ts` updated with matching keys
- [x] Only 4 files changed, all directly related to this feature
Most Similar PRs
#10657: feat(ui): add i18n support with English, Chinese, and Portuguese
by SalimBinYousuf1 · 2026-02-06
72.0%
#13622: feat(i18n): add complete multi-language support (EN, TR, FR, DE)
by vaur94 · 2026-02-10
67.7%
#18767: docs: add Portuguese translations for glossary, agent concepts, and...
by jadilson12 · 2026-02-17
66.1%
#22165: feat(i18n): translate hardcoded button labels to all 4 locales
by NikolaVujovic1988 · 2026-02-20
65.3%
#19881: feat(i18n): add Japanese (ja) locale for Control UI [AI-assisted]
by habakan · 2026-02-18
63.5%
#22332: i18n: add Korean (ko-KR) locale support
by arusia88 · 2026-02-21
63.4%
#19689: feat(i18n): added Filipino (fil) locale
by warengonzaga · 2026-02-18
63.3%
#22570: feat(i18n): add Korean (ko) locale to Control UI
by hoonsikim · 2026-02-21
62.4%
#10586: feat: Add Chinese (zh-CN) localization support
by Maxsong-0 · 2026-02-06
62.2%
#21988: feat(i18n): added Thai (th) locale
by samithiwat · 2026-02-20
61.7%