feat(i18n): translate five more systems
CI / Build & test (Node 20) (push) Canceled after 0s
CI / Build & test (Node 24) (push) Canceled after 0s
CI / Build & test (push) Canceled after 0s
CodeQL / Analyze (javascript-typescript) (push) Canceled after 0s
Security / Secret scan (gitleaks) (push) Canceled after 0s
Security / Dependency scan (OSV-Scanner) (push) Canceled after 0s
Security / IaC/config scan (Trivy) (push) Canceled after 0s
Security / License compliance scan (Trivy) (push) Canceled after 0s
OpenSSF Scorecard / Scorecard analysis (push) Canceled after 0s
CI / Build & test (Node 20) (push) Canceled after 0s
CI / Build & test (Node 24) (push) Canceled after 0s
CI / Build & test (push) Canceled after 0s
CodeQL / Analyze (javascript-typescript) (push) Canceled after 0s
Security / Secret scan (gitleaks) (push) Canceled after 0s
Security / Dependency scan (OSV-Scanner) (push) Canceled after 0s
Security / IaC/config scan (Trivy) (push) Canceled after 0s
Security / License compliance scan (Trivy) (push) Canceled after 0s
OpenSSF Scorecard / Scorecard analysis (push) Canceled after 0s
- Settings > Voice: video — preview, permission states, camera picker.
This closes the Voice & Video tab; input, output and video are all done.
- Create channel / category / space
- Group DMs — new DM, add friends, group settings, leave
- Join a space — discovery, invite code, and both federated auth phases
- Delete account, transfer ownership, and the top-level error screen
Three patterns worth noting. Strings that are chosen in a helper or held in
state (the camera's hard-blocked copy, its preview errors, the space
visibility options, the invite failure reasons) now travel as translation
keys and are resolved where they render, so switching language re-labels
what is already on screen. Sentences that wrap an emphasised literal — the
host name when joining, the space and member names when transferring — are
split around their placeholder instead of interpolated, leaving word order
to the translation. And `CreateChannel` mapped over `(t) =>` for the channel
type, which shadowed the translator; the loop variable is now `channelType`.
The error boundary in main.tsx is a class component, so it reads the locale
once per render via `translate` rather than the hook — correct here anyway,
since an error screen has no reason to re-render on a language switch.
Two GroupDmSettings tests located the name input by its aria-label, which
this change translates. They now use the `data-group-dm-name-input`
attribute the input already carries, matching how the rest of that file
locates elements — and no longer break when copy changes.
Dictionary is at 595 keys, en and pt-BR at exact parity.
Verified: web build (tsc + vite), 490 web tests.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,11 +100,18 @@ fixas por `t('chave')`. O que faltar cai para o inglês sozinho.
|
||||
- Configurações → Atalhos (incluindo os nomes das ações e o aviso de conflito)
|
||||
- Configurações → Conta (perfil, senha, conta desligada da origem, zona de perigo)
|
||||
- Explorar servidores (cartões, entrar, pedir para entrar)
|
||||
- Configurações → Voz: vídeo (prévia, permissões, escolha de câmera) — fecha a aba
|
||||
- Criar canal, categoria e servidor
|
||||
- DMs em grupo (nova DM, adicionar amigos, configurações do grupo, sair)
|
||||
- Entrar num servidor (descoberta, código de convite, conectar e login federado)
|
||||
- Excluir conta, transferir propriedade e a tela de erro geral
|
||||
|
||||
### Fila sugerida de tradução
|
||||
|
||||
Configurações → Vídeo · Configurações → Instância · configurações do servidor e
|
||||
cargos · telas de erro · DMs em grupo (`GroupDmSettings`, `AddDmMemberModal`)
|
||||
Configurações → Instância (painéis: geral, registro, federação, transmissão,
|
||||
armazenamento, usuários) · configurações do servidor e cargos
|
||||
(`SpaceSettings` e `spaceSettingsPanels/`) · telas móveis (`Mobile*.tsx`) ·
|
||||
`CategorySettingsModal` · `ConnectedInstances`
|
||||
|
||||
## Correções pendentes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user