Skip to content

feat(i18n): add pt-BR translations and language option#2

Open
Eleutherio wants to merge 1 commit into
ifrederico:mainfrom
Eleutherio:feature/translation/pt-br
Open

feat(i18n): add pt-BR translations and language option#2
Eleutherio wants to merge 1 commit into
ifrederico:mainfrom
Eleutherio:feature/translation/pt-br

Conversation

@Eleutherio
Copy link
Copy Markdown

Summary

Adds Portuguese (Brazil) support to the widget UI.

Changes

  • Add pt dictionary entries in src/constants/translations.js.
  • Add pt to SUPPORTED_LANGUAGES.
  • Map pt to Brazil/BR in language label/flag logic (src/ui.js).
  • Regenerate distribution bundles in dist/.

Validation

  • Ran npm run ci locally.
  • Lint, build, and smoke tests passed.

Notes

  • This PR translates widget-owned UI strings.
  • axe-core third-party messages (violation.help, violation.description, failureSummary) remain in their original language.

Add Portuguese translations for widget UI labels and controls.

Include pt in supported languages and map country/flag for language selector.

Regenerate dist bundles after source changes.
@Eleutherio
Copy link
Copy Markdown
Author

Hey @ifredferico!

Hope you’re doing well. Just wanted to kindly follow up on this PR when you have a chance.

It’s currently awaiting workflow approval, so I’m not sure if anything else is needed from my side. I’d be happy to adjust anything if necessary.

Thanks!

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