Skip to content

Conversation

@RaFaeL-Cunha
Copy link

📋 Description

Este PR corrige um problema crítico onde as chaves de tradução (ex: cw.message.numbernotinwhatsapp) apareciam na interface em vez do texto traduzido.

O bug ocorria porque o carregamento dos arquivos JSON de tradução (pt-BR.json, en.json, etc.) falhava em ambientes de deployment, como o Docker.

Solução: Substituído o uso de path.resolve(process.cwd(), ...) (que é inconsistente) pela variável nativa __dirname no arquivo de inicialização de i18n. Isso garante um caminho absoluto e funcional para os arquivos, independentemente do Diretório de Trabalho (CWD) do processo.

🔗 Related Issue

N/A

🧪 Type of Change

  • 🐛 Bug fix (alteração sem quebra que corrige um problema)
  • ✨ New feature (alteração sem quebra que adiciona funcionalidade)
  • 💥 Breaking change (correção ou recurso que faria com que a funcionalidade existente não funcionasse como esperado)
  • 📚 Documentation update
  • 🔧 Refactoring (sem alterações funcionais)
  • ⚡ Performance improvement
  • 🧹 Code cleanup
  • 🔒 Security fix

🧪 Testing

  • Manual testing completed (Teste manual concluído)
  • Functionality verified in development environment (Funcionalidade verificada em ambiente de desenvolvimento)
  • No breaking changes introduced (Nenhuma alteração de quebra introduzida)
  • Tested with different connection types (if applicable)

Descrição Adicional do Teste:
A correção foi testada em um ambiente Docker, onde o problema era replicável. Após a alteração, o texto de erro cw.message.numbernotinwhatsapp foi substituído corretamente pelo texto traduzido, confirmando que os arquivos JSON estão sendo lidos.

📸 Screenshots (if applicable)

image

✅ Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have manually tested my changes thoroughly
  • I have verified the changes work with different scenarios
  • Any dependent changes have been merged and published

📝 Additional Notes

N/A

@railway-app railway-app bot temporarily deployed to evolution-api (adorable-delight / production) October 3, 2025 07:52 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (adorable-delight / production) October 3, 2025 08:05 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (n8n-workflows / production) October 3, 2025 12:28 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (n8n-workflows / production) October 3, 2025 12:40 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (n8n-workflows / production) October 3, 2025 13:28 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (n8n-workflows / production) October 3, 2025 13:38 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (N8N-Hobby / production) October 3, 2025 14:54 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (N8N-Hobby / production) October 3, 2025 15:12 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (N8N-Hobby / production) October 3, 2025 15:24 Inactive
@railway-app railway-app bot temporarily deployed to vigilant-youthfulness (evolution / production) October 3, 2025 16:56 Inactive
@railway-app railway-app bot temporarily deployed to vigilant-youthfulness (evolution / production) October 3, 2025 17:04 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (evolution-api / production) October 3, 2025 19:44 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (evolution-api / production) October 3, 2025 19:44 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (evolution-api / production) October 3, 2025 19:52 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (amiable-sparkle / production) October 4, 2025 01:08 Inactive
@railway-app railway-app bot temporarily deployed to secure-wonder (Evolution Api / production) October 4, 2025 18:30 Inactive
@railway-app railway-app bot temporarily deployed to secure-wonder (Evolution Api / production) October 4, 2025 18:51 Inactive
@railway-app railway-app bot temporarily deployed to secure-wonder (Evolution Api / production) October 4, 2025 19:53 Inactive
@railway-app railway-app bot temporarily deployed to joyful-art (Buxo Evolution API / production) October 5, 2025 16:06 Inactive
@railway-app railway-app bot temporarily deployed to joyful-art (Buxo Evolution API / production) October 5, 2025 16:24 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (N8N-Hobby / production) October 5, 2025 18:45 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (Evolution API / production) October 5, 2025 18:52 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (Evolution API / production) October 5, 2025 18:59 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (Services BalloonLatam-main / production) October 6, 2025 17:13 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (discerning-flexibility / production) October 6, 2025 21:11 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (amiable-sparkle / production) October 7, 2025 01:03 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (worthy-wholeness / Development) October 13, 2025 22:40 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (worthy-wholeness / production) October 13, 2025 22:40 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (ravishing-hope / production) October 13, 2025 23:12 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (tranquil-intuition / production) October 13, 2025 23:57 Inactive
@railway-app railway-app bot temporarily deployed to evo-api (comfortable-enchantment / production) October 14, 2025 01:02 Inactive
@railway-app railway-app bot temporarily deployed to evo-api (comfortable-enchantment / production) October 14, 2025 01:28 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (tranquil-intuition / production) October 14, 2025 01:51 Inactive
@railway-app railway-app bot temporarily deployed to evo-api (comfortable-enchantment / production) October 14, 2025 01:54 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (tranquil-intuition / production) October 14, 2025 01:58 Inactive
@railway-app railway-app bot temporarily deployed to evo-api (comfortable-enchantment / production) October 14, 2025 03:58 Inactive
@railway-app railway-app bot temporarily deployed to reasonable-encouragement (Evolution API / Development) October 14, 2025 15:33 Inactive
@railway-app railway-app bot temporarily deployed to reasonable-encouragement (Evolution API / production) October 14, 2025 15:33 Inactive
@railway-app railway-app bot temporarily deployed to reasonable-encouragement (Evolution API / production) October 14, 2025 15:36 Inactive
@railway-app railway-app bot temporarily deployed to reasonable-encouragement (Evolution API / production) October 14, 2025 15:38 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (bountiful-possibility / production) October 14, 2025 15:45 Inactive
@railway-app railway-app bot temporarily deployed to authentic-intuition (comfortable-enchantment / production) October 14, 2025 16:36 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (generous-rejoicing / production) October 14, 2025 16:36 Inactive
@railway-app railway-app bot temporarily deployed to authentic-intuition (comfortable-enchantment / production) October 14, 2025 17:06 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (alluring-kindness / production) October 14, 2025 19:01 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (alluring-kindness / production) October 14, 2025 19:14 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (daring-emotion / production) October 14, 2025 19:51 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (nurturing-perception / production) October 14, 2025 20:41 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (UNNO / production) October 14, 2025 20:49 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (fabulous-manifestation / production) October 14, 2025 22:13 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (fabulous-manifestation / production) October 14, 2025 22:30 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (tender-creation / production) October 15, 2025 00:32 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (N8N-Hobby / production) October 19, 2025 15:09 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (Evolution Api / production) October 20, 2025 07:35 Inactive
@railway-app railway-app bot temporarily deployed to evolution-api (n8n / production) October 22, 2025 20:47 Inactive
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