Merge branch 'release/2.3.4'#2045
Closed
RaFaeL-Cunha wants to merge 1 commit intoEvolutionAPI:developfrom
RaFaeL-Cunha:main
Closed
Merge branch 'release/2.3.4'#2045RaFaeL-Cunha wants to merge 1 commit intoEvolutionAPI:developfrom RaFaeL-Cunha:main
RaFaeL-Cunha wants to merge 1 commit intoEvolutionAPI:developfrom
RaFaeL-Cunha:main
Conversation
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.
📋 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__dirnameno 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
🧪 Testing
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.numbernotinwhatsappfoi substituído corretamente pelo texto traduzido, confirmando que os arquivos JSON estão sendo lidos.📸 Screenshots (if applicable)
✅ Checklist
📝 Additional Notes
N/A