Skip to content

fix(i18n): add missing pt-BR translations#2090

Open
offeringofpie wants to merge 6 commits intonpmx-dev:mainfrom
offeringofpie:fix/i18n-pt-BR-updates-260315
Open

fix(i18n): add missing pt-BR translations#2090
offeringofpie wants to merge 6 commits intonpmx-dev:mainfrom
offeringofpie:fix/i18n-pt-BR-updates-260315

Conversation

@offeringofpie
Copy link

@offeringofpie offeringofpie commented Mar 15, 2026

🔗 Linked issue

🧭 Context

📚 Description

Added some missing pt-BR translations.

@vercel
Copy link

vercel bot commented Mar 15, 2026

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

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Mar 15, 2026 6:04pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Mar 15, 2026 6:04pm
npmx-lunaria Ignored Ignored Mar 15, 2026 6:04pm

Request Review

@github-actions
Copy link

github-actions bot commented Mar 15, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
i18n/locales/pt-BR.json Localization changed, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 15, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request expands the Portuguese (pt-BR) locale JSON with extensive new and updated translation keys across many sections (shortcuts, search, nav, data_source, provenance, distribution/versions, dependencies, package view, privacy_policy, a11y, blog, profile, pds, header/compare, account/auth flows, team/contributors, sponsors and more). Total change: approximately +548/−68 lines in i18n/locales/pt-BR.json. No functional code or public API signature changes were introduced.

Possibly related PRs

  • npmx-dev/npmx.dev PR 1951: Adds the same i18n keys (e.g., footer.builders_chat and multiple shortcuts.instant_search entries) in other locale JSON files, indicating shared key additions.
  • npmx-dev/npmx.dev PR 1886: Introduces extensive locale translations for the same new i18n sections (footer.blog, shortcuts, provenance_section, privacy_policy, blog, pds) in a different locale, matching this PR’s structure.
  • npmx-dev/npmx.dev PR 1557: Makes highly similar structural additions to locale JSONs (shortcuts, provenance_section, privacy_policy, distribution, keyboard_shortcuts), consistent with this update.

Suggested reviewers

  • graphieros
  • danielroe
  • ghostdevv
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description accurately describes the changeset—adding missing Portuguese (Brazil) translations to the i18n locale file.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Copy link
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: 2

🧹 Nitpick comments (1)
i18n/locales/pt-BR.json (1)

745-747: Use pt-BR terminology consistently for file-related labels

The new strings mix pt-PT terms (ficheiro) into the pt-BR locale. For consistency with the rest of this locale, prefer arquivo.

Suggested fix
-    "file_path": "Caminho do ficheiro",
+    "file_path": "Caminho do arquivo",
-    "binary_rendering_warning": "Tipo de ficheiro não suportado para visualização.",
+    "binary_rendering_warning": "Tipo de arquivo não suportado para visualização.",
-    "binary_file": "Ficheiro binário"
+    "binary_file": "Arquivo binário"

-    "file_too_large": "Ficheiro muito grande para comparar",
+    "file_too_large": "Arquivo muito grande para comparar",
-    "files_button": "Ficheiros",
+    "files_button": "Arquivos",
-    "files_count": "{count} ficheiro | {count} ficheiros",
+    "files_count": "{count} arquivo | {count} arquivos",

-    "no_files_filtered": "Nenhum ficheiro {filter}",
-    "no_files_search": "Nenhum ficheiro correspondente a \"{query}\"",
+    "no_files_filtered": "Nenhum arquivo {filter}",
+    "no_files_search": "Nenhum arquivo correspondente a \"{query}\"",

Also applies to: 1128-1130, 1140-1141


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cfbf05cc-301f-4032-8451-8321581d9e76

📥 Commits

Reviewing files that changed from the base of the PR and between fbb9011 and 63c7009.

📒 Files selected for processing (1)
  • i18n/locales/pt-BR.json

Copy link
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

♻️ Duplicate comments (1)
i18n/locales/pt-BR.json (1)

65-65: ⚠️ Potential issue | 🟡 Minor

Fix user-visible spelling/capitalisation issues in translated copy.

There are a few visible copy defects on Line 65, Line 297, Line 1020, Line 1250, and Line 1292.

Suggested patch
-    "title_packages": "pesquisa de pactoes",
+    "title_packages": "pesquisa de pacotes",

-      "fallback_install_provenance": "Os comandos de instalação estão fixados na versão {version}, a última versão com provenencia.",
+      "fallback_install_provenance": "Os comandos de instalação estão fixados na versão {version}, a última versão com proveniência.",

-      "add_column": "Adictionr coluna sem dependência à comparação",
+      "add_column": "Adicionar coluna sem dependência à comparação",

-      "link": "Repositório Github",
+      "link": "Repositório GitHub",

-    "display_name": "Nome visivel",
+    "display_name": "Nome visível",

Also applies to: 297-297, 1020-1020, 1250-1250, 1292-1292


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f3ff696b-8fe4-482f-8741-3a3bcd0eb144

📥 Commits

Reviewing files that changed from the base of the PR and between 63c7009 and ab39996.

📒 Files selected for processing (1)
  • i18n/locales/pt-BR.json

@codecov
Copy link

codecov bot commented Mar 15, 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
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: 2

🧹 Nitpick comments (3)
i18n/locales/pt-BR.json (3)

20-20: Consider using "blog" instead of "blogue" for pt-BR consistency.

In Brazilian Portuguese, "blog" is the standard term (used as a direct loanword). "Blogue" is the European Portuguese (pt-PT) adaptation. For regional consistency with pt-BR, consider changing to "blog".

This also applies to lines 1259 and 1261.

Suggested fix
-    "blog": "blogue",
+    "blog": "blog",

And at lines 1259, 1261:

-    "title": "Blogue",
+    "title": "Blog",
...
-    "heading": "blogue",
+    "heading": "blog",

75-75: Awkward phrasing in found_packages_sorted.

The current translation "Classificando o resultado {count} superior" is grammatically awkward in Portuguese. Consider rephrasing for better readability.

Suggested fix
-    "found_packages_sorted": "Nenhum resultado encontrado | Classificando o resultado {count} superior | Classificando {count} resultados principais",
+    "found_packages_sorted": "Nenhum resultado encontrado | Ordenando o top {count} resultado | Ordenando os top {count} resultados",

349-349: Inconsistent use of "Transferências" vs "Downloads".

In Brazilian Portuguese, "Downloads" is the standard term (used as a loanword). The file uses "Downloads Semanais" at line 443 but "Transferências" at lines 349, 401, and 783. Consider standardising to "Downloads" throughout for pt-BR consistency.

Suggested fix
-      "y_axis_label": "Transferências"
+      "y_axis_label": "Downloads"
-        "downloads": "Transferências",
+        "downloads": "Downloads",

Also at line 783:

-      "downloads": "Transferências",
+      "downloads": "Downloads",

Also applies to: 401-401


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1902f95d-d555-40a2-90ee-351f49b64cee

📥 Commits

Reviewing files that changed from the base of the PR and between ab39996 and 135df21.

📒 Files selected for processing (1)
  • i18n/locales/pt-BR.json

Copy link
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: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 329dbaca-a1eb-45b4-86f1-081a05c52d00

📥 Commits

Reviewing files that changed from the base of the PR and between 135df21 and 876c587.

📒 Files selected for processing (1)
  • i18n/locales/pt-BR.json

Copy link
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: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f704d73e-8da3-472d-b15a-d4071b5d348a

📥 Commits

Reviewing files that changed from the base of the PR and between 876c587 and 8f7ed9b.

📒 Files selected for processing (1)
  • i18n/locales/pt-BR.json

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