Convert language menu to dropdown matching SciELO Design System#1430
Draft
Convert language menu to dropdown matching SciELO Design System#1430
Conversation
Agent-Logs-Url: https://github.com/scieloorg/core/sessions/fe090cf0-7c10-4dcf-b1e8-f1be735e89bb Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Improve language menu to align with design system
Convert language menu to dropdown matching SciELO Design System
Apr 28, 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.
O que esse PR faz?
Reformula o menu de idiomas no topo do site para seguir o padrão do Design System SciELO: um botão dropdown com ícone de globo, rótulo do idioma atual e caret, ao invés de uma lista inline de links.
<ul>de traduções por um dropdown Bootstrap (dropdown-toggle+dropdown-menu-end), reaproveitando a convenção já usada emdownload_button_csv_xls.html.{% get_current_language %}+{% get_language_info %}.aria-haspopup,aria-expanded,aria-labelledby,aria-label).hreflang="{{ language_code }}"referenciava uma variável inexistente; agora usa{{ translation.locale.language_code }}.Não há novos assets —
bootstrap.bundle.min.js(com Popper) ematerial-icons-outlinedjá são carregados embase.html/scielo_design_system.css.Onde a revisão poderia começar?
core/templates/home/scieloorg/header.htmlComo este poderia ser testado manualmente?
./start-dev.shoudocker compose -f local.yml up).home/scieloorg/header.htmlviahome_page.html).🌐 <Idioma atual> ▾.page.get_translations.live).Algum cenário de contexto que queira dar?
O menu anterior renderizava cada tradução como um link solto ao lado de "Sobre o SciELO", o que não correspondia ao padrão visual adotado pelo SciELO.br nem ao componente de escolha de idioma definido no Design System.
Screenshots
Referência do Design System (scielo.br):
Quais são tickets relevantes?
N/A
Referências