Skip to content

feat(i18n): add pt-BR support and extract hardcoded strings#142

Open
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
R-Hart80:feat/i18n-pt-br-translations
Open

feat(i18n): add pt-BR support and extract hardcoded strings#142
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
R-Hart80:feat/i18n-pt-br-translations

Conversation

@R-Hart80
Copy link
Copy Markdown
Contributor

Summary

  • Add pt (Brazilian Portuguese) locale to SUPPORTED_LOCALES in lib/i18n/request.ts
  • Expand messages/en.json with new keys: nav, projects, connection, language, auth
  • Add messages/pt.json with full pt-BR translations for all namespaces
  • Migrate header.tsx, user-menu.tsx, ConnectionStatus.tsx and app/page.tsx to use useTranslations(), replacing all hardcoded UI strings
  • Add LanguageSwitcher component (uses useLocale() for SSR-safe locale detection) in the header

Closes #102

Test plan

  • Run npm run dev and confirm the app loads in English by default
  • Switch language to Português via the globe icon in the header
  • Confirm navigation labels, page titles, filters and buttons update to Portuguese
  • Refresh the page and confirm the selected language persists (cookie-based)
  • Run npm run build and confirm TypeScript passes with no errors

🤖 Generated with Claude Code

- Add `pt` locale to SUPPORTED_LOCALES in lib/i18n/request.ts
- Expand messages/en.json with nav, projects, connection, language and auth keys
- Add messages/pt.json with full Brazilian Portuguese translations
- Migrate header.tsx, user-menu.tsx, ConnectionStatus.tsx and app/page.tsx
  to use useTranslations() replacing all hardcoded UI strings
- Add LanguageSwitcher component using useLocale() for SSR-safe locale detection

Closes CatholicOS#102

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fd4bbf83-30ee-4eea-aa04-d02ef127da72

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Keep "Label", "Range", "Merge" in English — standard terms in the BR dev community
- nav.info: "Info" instead of "Informações" to match the page name
- git.diff: "Ver Mudanças" (more natural than "Ver Alterações")
- projects.checkBackLater: rewrite to more natural Brazilian Portuguese

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JohnRDOrazio JohnRDOrazio changed the base branch from main to dev April 13, 2026 19:54
@JohnRDOrazio JohnRDOrazio added the enhancement New feature or request label Apr 13, 2026
@JohnRDOrazio JohnRDOrazio added this to the v0.5.0 milestone Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n: extract hardcoded strings and add translations

2 participants