feat(i18n): add pt-BR support and extract hardcoded strings#142
Open
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
Open
feat(i18n): add pt-BR support and extract hardcoded strings#142R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
R-Hart80 wants to merge 2 commits intoCatholicOS:devfrom
Conversation
- 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>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
- 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>
60 tasks
18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pt(Brazilian Portuguese) locale toSUPPORTED_LOCALESinlib/i18n/request.tsmessages/en.jsonwith new keys:nav,projects,connection,language,authmessages/pt.jsonwith full pt-BR translations for all namespacesheader.tsx,user-menu.tsx,ConnectionStatus.tsxandapp/page.tsxto useuseTranslations(), replacing all hardcoded UI stringsLanguageSwitchercomponent (usesuseLocale()for SSR-safe locale detection) in the headerCloses #102
Test plan
npm run devand confirm the app loads in English by defaultnpm run buildand confirm TypeScript passes with no errors🤖 Generated with Claude Code