Repository navigation
Checagem automática dos idiomas do site - #13
Merged
Merged
Conversation
…números, seletor e hreflang iguais ao português) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Para que serve
O site tem seis idiomas (pt, en, fr, de, es, it), e cada um é uma cópia da página. Esta checagem roda sozinha em todo PR que mexe no site. Se uma versão ficar diferente do português, que é a origem, o PR fica vermelho, e a mensagem diz o arquivo e o que falta.
O que muda
scripts/checar_idiomas.mjs(novo): em cada idioma, confere a página inicial e a da lista.<html lang>está certo..github/workflows/idiomas.yml(novo): roda o script em todo PR que mexe emsite/. Também barra o PR que muda o texto do português sem mudar as traduções da mesma página.CLAUDE.md: ganhou a regra dos idiomas.A lista de idiomas sai do seletor do português. Para criar um idioma novo, basta criar a pasta e pôr o link no seletor do português; a checagem passa a cobrar esse idioma em todas as páginas.
Conferido
Idiomas em sintonia: pt, en, fr, de, es, it · páginas index, lista.Merge só com o OK do Rubens.
🤖 Generated with Claude Code