Skip to content

feat(i18n): add pt-PT locale#2639

Merged
graphieros merged 14 commits intonpmx-dev:mainfrom
joaopalmeiro:feat/add-pt-pt
Apr 29, 2026
Merged

feat(i18n): add pt-PT locale#2639
graphieros merged 14 commits intonpmx-dev:mainfrom
joaopalmeiro:feat/add-pt-pt

Conversation

@joaopalmeiro
Copy link
Copy Markdown
Contributor

@joaopalmeiro joaopalmeiro commented Apr 27, 2026

🧭 Context

Since there was no European Portuguese translation for npmx, this PR serves to add it.

📚 Description

Added the pt-PT.json file with the European Portuguese translations, as well as the corresponding configuration to make it available in npmx.

References

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Apr 27, 2026 8:32pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Apr 27, 2026 8:32pm
npmx-lunaria Ignored Ignored Apr 27, 2026 8:32pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ce465eac-ae14-4dcd-bf81-3159d40d7933

📥 Commits

Reviewing files that changed from the base of the PR and between 4100dd6 and 266e180.

📒 Files selected for processing (1)
  • i18n/locales/pt-PT.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • i18n/locales/pt-PT.json

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added Portuguese (Portugal) locale: the app now offers a full pt‑PT interface with comprehensive translations across navigation, search, command palette, blog, settings, profiles, modals, code viewer, filters and pagination, plus privacy, accessibility and analytics text. Date, number and pluralised UI strings are supported for pt‑PT.

Walkthrough

Adds Portuguese (Portugal) locale support by registering pt-PT in the i18n configuration and adding a comprehensive pt-PT translation JSON covering UI copy, navigation, modals, policies, accessibility text, and pluralisation templates.

Changes

Cohort / File(s) Summary
Portuguese (pt-PT) Locale Addition
config/i18n.ts, i18n/locales/pt-PT.json
Registers pt-PT in the i18n locales list and adds a full pt-PT translation file with UI strings, SEO, navigation, modals, error messages, accessibility content, privacy policy text, pluralisation templates and interpolation placeholders.

Suggested reviewers

  • graphieros
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a Portuguese (Portugal) locale to the i18n configuration.
Description check ✅ Passed The description is directly related to the changeset, explaining the context for adding European Portuguese support and documenting reference sources used for translations.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@i18n/locales/pt-PT.json`:
- Around line 1361-1367: Update the pt-PT locale entries "githubStars" and
"githubIssues" so the product name uses the correct casing "GitHub": change
"Estrelas no Github" to "Estrelas no GitHub" and "Issues no Github" to "Issues
no GitHub", and also update the description string "repositório GitHub" if any
remaining occurrences use the wrong casing to keep the file consistent with
other translations.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2a5849e4-5cd7-49e1-9ba7-1d693dd5a17f

📥 Commits

Reviewing files that changed from the base of the PR and between b1684b0 and 4100dd6.

📒 Files selected for processing (2)
  • config/i18n.ts
  • i18n/locales/pt-PT.json

Comment thread i18n/locales/pt-PT.json
Copy link
Copy Markdown
Contributor

@graphieros graphieros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @joaopalmeiro !
I don't speak Portuguese, I left 2 remarks, to your judgement.

Comment thread i18n/locales/pt-PT.json
Comment thread i18n/locales/pt-PT.json
@graphieros graphieros added this pull request to the merge queue Apr 29, 2026
Merged via the queue into npmx-dev:main with commit aab13d3 Apr 29, 2026
22 checks passed
@joaopalmeiro joaopalmeiro deleted the feat/add-pt-pt branch April 29, 2026 07:28
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.

2 participants