Repository navigation
fix(i18n): correct broken placeholders in pt-BR translations (#27257) - #27383
Merged
innerdvations merged 2 commits intoAug 21, 2026
Merged
Conversation
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
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
innerdvations
enabled auto-merge (squash)
August 20, 2026 11:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonSettings.profile.form.section.experience.interfaceLanguageHelpen"Preference changes will apply only to you. More information is available {here}."pt-BR(before)"?leia essa {documentation}?"?{documentation}is never supplied byProfilePage.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}, whichProfilePage.tsx(lines 343?344) does supply.core/content-manager?pt-BR.jsoncontainers.list.itemsen"{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;maxLengthalso had a typo (logo?longo):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