mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-02 21:03:34 +03:00
Fix pt-BR download label mislabeled as "Baixar (JSON)" (#7043)
# Description of Changes
- **What:** Corrected the pt-BR (Brazilian Portuguese) `download`
translation from `"Baixar (JSON)"` to `"Baixar"` in
`frontend/editor/public/locales/pt-BR/translation.toml`, in both the
root table (line 32) and the `[fileManager]` section (line 3577).
- **Why:** The generic `download` key flows through
`useFileActionTerminology` (`download: t("download", "Download")`) into
the shared download button rendered on tool-result screens (e.g.
`ReviewToolStep`). Because the string was `"Baixar (JSON)"`, every
tool's Download button showed "Baixar (JSON)" for pt-BR users — implying
a JSON export regardless of the actual output format. This mislabeling
was locale-wide (all pt-BR users, all tool downloads). Session
autocapture confirmed the confusion: a pt-BR user on `/convert`
repeatedly clicked a button whose text was exactly "Baixar (JSON)", then
abandoned the flow. Nothing crashed — it's a confusing label, not a
functional break.
- **Scope / verification:** en-US uses plain `"Download"` for this key
and pt-PT already uses `"Transferir"`; no other locale carried the
`"(JSON)"` suffix on the download key, so the defect was isolated to
pt-BR. Only translation values changed — no keys added/removed, so
translation counts are unaffected.
Note: I scoped this to the mislabel — the exact symptom users observed.
The report also mentions the download being a silent anchor-click with
no success toast; that's a separate, broader UX enhancement in
`ReviewToolStep`/`WorkbenchBar`/`downloadService`, so it's intentionally
left out of this focused translation fix.
---
## Checklist
### General
- [x] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings
### Translations (if applicable)
- [x] Only a value correction in `pt-BR`; no translation tags added or
removed.
---
*Created with [PostHog Code](https://posthog.com/code?ref=pr) from [an
inbox
report](posthog-code://inbox/019f655d-bd60-78c2-ba59-98c23243ed57).*
Co-authored-by: posthog-eu[bot] <226701856+posthog-eu[bot]@users.noreply.github.com>
This commit is contained in:
@@ -29,7 +29,7 @@ customTextTooltip = "Formato personalizado opcional para os números de página.
|
||||
delete = "Apagar"
|
||||
details = "Detalhes"
|
||||
discardChanges = "Descartar alterações"
|
||||
download = "Baixar (JSON)"
|
||||
download = "Baixar"
|
||||
downloadPdf = "Baixar PDF"
|
||||
downloadUnavailable = "Download indisponível para este item"
|
||||
edit = "Editar"
|
||||
@@ -3574,7 +3574,7 @@ deleteAll = "Excluir tudo"
|
||||
deleteSelected = "Apagar Selecionados"
|
||||
deselectAll = "Desselecionar Tudo"
|
||||
details = "Detalhes do arquivo"
|
||||
download = "Baixar (JSON)"
|
||||
download = "Baixar"
|
||||
downloadSelected = "Baixar selecionados"
|
||||
dropFilesHere = "Solte os arquivos aqui"
|
||||
fileFormat = "Formato"
|
||||
|
||||
Reference in New Issue
Block a user