Adiciona prop para não traduzir tags HTTP - #40
Open
tobiasfreire-gaudium wants to merge 1 commit into
Open
Conversation
|
✅ Review postada — #40 (review) job_id: |
There was a problem hiding this comment.
Fix direto e bem contido: adiciona translate="no"/notranslate às tags de método HTTP e usa data-metodo + MutationObserver (com batching via rAF) para reverter qualquer tradução que escape, resolvendo exatamente o problema de responsividade descrito no PR. Diff isolado em custom.js, sem tocar HTML/CSS, sem input externo, sem risco de XSS (usa textContent, nunca innerHTML), e segue o mesmo padrão estilístico (IIFE + comentários explicativos em PT-BR) já usado nas duas outras seções do arquivo.
tobiasfreire-gaudium
requested review from
gabrielferreira-gaudium,
jfelipends,
marcos-marques-gaudium and
mateusmetzker
August 13, 2026 20:47
marcos-marques-gaudium
approved these changes
Aug 14, 2026
jfelipends
approved these changes
Aug 14, 2026
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.
Descrição
No Mintlify, nativamente cada página possui uma tag HTTP que referencia o método usado pelo endpoint daquela página (GET, POST, PUT, PATCH,etc). Essa tag fica do lado do nome da página.
Quando a opção de traduzir página do navegador está ativada, a tradução quebra a responsividade dessas tags.
A tradução das tags, no entanto, não deve ocorrer, pois elas identificam o método HTTP usado por aquele endpoint, e cada método possui uma semântica, que na tradução pode acabar não carregando a semântica necessária.
Nesse PR, é adicionada uma tratativa que adiciona as propriedade
translate="no"eclass="notranslate"às tags HTTP, para evitar essa tradução que quebra a responsividade e compreensão da documentação.Evidência de erro
Evidência de correção
Gravacao.de.Tela.2026-08-13.as.17.28.49.mov