Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Add Brazilian Portuguese localization for command descriptions#3296

Closed
aleckyann wants to merge 4 commits into
gsd-build:feat/3295-add-optional-pt-br-localization-for-instfrom
aleckyann:copilot/add-pt-br-command-descriptions
Closed

Add Brazilian Portuguese localization for command descriptions#3296
aleckyann wants to merge 4 commits into
gsd-build:feat/3295-add-optional-pt-br-localization-for-instfrom
aleckyann:copilot/add-pt-br-command-descriptions

Conversation

@aleckyann

Copy link
Copy Markdown

This pull request introduces Brazilian Portuguese (pt-BR) localization support for command descriptions and adds comprehensive tests to ensure correct localization behavior. The main focus is on providing accurate translations for command descriptions and verifying that localization is applied consistently across different integrations and outputs.

Localization support:

  • Added a new file, pt-BR-command-descriptions.json, containing Brazilian Portuguese translations for all command descriptions.

Testing and validation:

  • Introduced a new test suite, command-description-localization.test.cjs, which:
    • Verifies that English remains the default language.
    • Ensures that only the frontmatter description is localized, not the prompt or other content.
    • Checks that localized descriptions are correctly propagated to Claude and Copilot skills, as well as Gemini command TOML outputs.
    • Confirms that the localization is reflected in installed skill files.

@aleckyann aleckyann requested a review from glittercowboy as a code owner May 9, 2026 13:18
Copilot AI review requested due to automatic review settings May 9, 2026 13:18
@coderabbitai

coderabbitai Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d30ff506-606d-40b7-ad30-461d6bba787f

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

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Brazilian Portuguese (pt-BR) localization for command descriptions by rewriting only the description: field in command frontmatter at install/conversion time, while keeping the underlying command prompts in canonical English.

Changes:

  • Added commands/i18n/pt-BR-command-descriptions.json containing pt-BR translations keyed by command name.
  • Implemented locale selection + description rewriting in bin/install.js, and applied it across multiple install/copy pipelines (Claude/Copilot/Gemini/etc.).
  • Added a new Node test suite validating default-English behavior and correct propagation of localized descriptions into generated skills and Gemini TOML.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tests/command-description-localization.test.cjs Adds tests ensuring only frontmatter descriptions are localized and that conversions/installs carry localized descriptions through.
commands/i18n/pt-BR-command-descriptions.json Introduces the pt-BR description translation map for all commands.
bin/install.js Adds locale flag/env handling, loads pt-BR mappings, rewrites frontmatter descriptions, and integrates localization into command-copy/install flows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@trek-e

trek-e commented May 10, 2026

Copy link
Copy Markdown
Contributor

please use the correct PR templates and follow the guidelines.

@trek-e

trek-e commented May 11, 2026

Copy link
Copy Markdown
Contributor

follow contribution guidelines

@trek-e trek-e closed this May 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants