Skip to content

feat: i18n support for all tab screens#79

Draft
Abel13 with Copilot wants to merge 2 commits into
59-i18n-menufrom
copilot/add-i18n-support-to-tabs
Draft

feat: i18n support for all tab screens#79
Abel13 with Copilot wants to merge 2 commits into
59-i18n-menufrom
copilot/add-i18n-support-to-tabs

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown

Tab screens (Home, Chat, Leaderboard, Profile, Settings, AvatarCreator) had hardcoded strings — mostly Portuguese — with no translation support, unlike the auth screens which already used useTranslation.

Changes

  • i18n/translation.json — Added new sections (home, chat, leaderboard, profile, settings, avatarCreator) across all 4 locales (pt, en, es, zh). Volume labels use {{value}} interpolation.
  • Tab screens — Imported useTranslation and replaced all hardcoded strings with t() calls:
// Before
<ThemedText type='h4'>Configurações</ThemedText>
<ThemedText>Volume principal: {(generalVolume * 100).toFixed(0)}</ThemedText>

// After
const { t } = useTranslation('settings');
<ThemedText type='h4'>{t('title')}</ThemedText>
<ThemedText>{t('mainVolume', { value: (generalVolume * 100).toFixed(0) })}</ThemedText>
Screen Strings translated
Home greeting, createMatch, returnToMatch, openRooms, noRooms
Chat title
Leaderboard title
Profile greeting
Settings title, audio, sounds, mainVolume, uiVolume, musicVolume, effectsVolume
AvatarCreator noUrl
Original prompt

This section details on the original issue you should resolve

<issue_title>i18n-menu</issue_title>
<issue_description>### 📖 Description

Atualmente o hook de traduções está aplicado apenas ao login, cadastro e confirmação de código.
Precisamos incluir nas telas de (tabs)


Branch: i18n-menu

Como um jogador poliglota
Quero usar o idioma selecionado ao fazer login no app
Para que eu consiga ler de acordo com meu idioma preferido


🎯 Critérios de Aceitação:

  • Home usando tradução para todos os textos
  • Avatar creator usando tradução para todos os textos (não é necessário traduzir as variáveis geradas pelo criador de avatar)
  • Chat usando tradução para todos os textos
  • Leaderboards usando tradução para todos os textos
  • Profile usando tradução para todos os textos
  • Settings usando tradução para todos os textos

🔧 Tarefas Técnicas: (opcional)

  • importar o hook useTranslation nas telas mencionadas e substituir as strings pelas respectivas traduções
    </issue_description>

<agent_instructions>Keep the code concise</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…rofile, settings, avatarCreator)

Co-authored-by: Abel13 <1572407+Abel13@users.noreply.github.com>
Copilot AI changed the title [WIP] Add i18n support for menu and tabs feat: i18n support for all tab screens Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants