Skip to content

fix(i18n): correct broken placeholders in pt-BR translations (#27257) - #27383

Merged
innerdvations merged 2 commits into
strapi:developfrom
webdevsamran:fix/pt-br-broken-placeholders
Aug 21, 2026
Merged

innerdvations merged 2 commits into
strapi:developfrom
webdevsamran:fix/pt-br-broken-placeholders

Conversation

@webdevsamran

Copy link
Copy Markdown
Contributor

Summary

Fixes five broken pt-BR translation strings where the code supplies a placeholder that the translation never uses (or vice-versa), causing visible rendering bugs for Brazilian Portuguese admin users.

Changes

core/admin ? pt-BR.json

Settings.profile.form.section.experience.interfaceLanguageHelp

Value
en "Preference changes will apply only to you. More information is available {here}."
pt-BR (before) "?leia essa {documentation}?" ? {documentation} is never supplied by ProfilePage.tsx; the link rendered as the literal text {documentation}.
pt-BR (after) "As altera??es de prefer?ncia se aplicam apenas a voc?. Mais informa??es dispon?veis {here}." ? uses {here}, which ProfilePage.tsx (lines 343?344) does supply.

core/content-manager ? pt-BR.json

containers.list.items

Value
en "{number} {number, plural, =0 {items} one {item} other {items}}"
pt-BR (before) "{number, plural, =0 {itens} one {item} other {itens}}" ? the leading {number} token was dropped, so the list header showed "itens" with no count.
pt-BR (after) "{number} {number, plural, =0 {itens} one {item} other {itens}}"

Four validation messages ? all were missing their {min}/{max} placeholder, hiding the actual limit from the user; maxLength also had a typo (logo ? longo):

Key Before After
error.validation.max "O valor ? muito alto." "O valor ? muito alto (m?x: {max})."
error.validation.maxLength "O valor ? muito logo." "O valor ? muito longo (m?x: {max})."
error.validation.min "O valor ? muito baixo." "O valor ? muito baixo (m?n: {min})."
error.validation.minLength "O valor ? muito curto." "O valor ? muito curto (m?n: {min})."

Testing

These are static JSON translation files. Verification: load the Strapi admin in pt-BR, navigate to Profile ? Experience ? interface language help text (link must appear), any collection list view (item count must appear), and submit an out-of-range value (limit must appear in the error).

Fixes #27257

Five strings in pt-BR reference placeholders that the code never supplies,
causing visible rendering bugs for Brazilian Portuguese admin users.

core/admin:
- Settings.profile.form.section.experience.interfaceLanguageHelp:
  Was using {documentation} (never supplied), causing the link to appear
  as the literal text '{documentation}'. Changed to {here} which matches
  what ProfilePage.tsx (line 343-344) actually provides.

core/content-manager:
- containers.list.items: Was missing the leading {number} token, so the
  list header read 'itens' with no count. Restored the {number} prefix
  matching the en.json pattern.
- error.validation.max: Added (máx: {max}) so users see the limit value.
- error.validation.maxLength: Added (máx: {max}) and fixed typo 'logo' -> 'longo'.
- error.validation.min: Added (mín: {min}) so users see the limit value.
- error.validation.minLength: Added (mín: {min}) so users see the limit value.

Fixes strapi#27257
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@strapi-cla

strapi-cla commented Aug 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot Bot added pr: fix This PR is fixing a bug source: core:admin Source is core/admin package translations PRs associated with translation improvements and extensions labels Aug 16, 2026
@github-actions github-actions Bot added the community Changes and fixes created by community members label Aug 16, 2026
@innerdvations innerdvations added this to the 5.52.2 milestone Aug 20, 2026

@innerdvations innerdvations 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.

Thanks!

@innerdvations
innerdvations enabled auto-merge (squash) August 20, 2026 11:22
@innerdvations
innerdvations merged commit 5bc22a3 into strapi:develop Aug 21, 2026
102 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Changes and fixes created by community members pr: fix This PR is fixing a bug source: core:admin Source is core/admin package translations PRs associated with translation improvements and extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pt-BR admin strings reference placeholders the code doesn't provide (broken link and missing count)

3 participants