DeepLcom / deepl-node

Official Node.js library for the DeepL language translation API.
MIT License
371 stars 22 forks source link

Errors with square brackets #19

Closed aamoronatti closed 1 year ago

aamoronatti commented 1 year ago

Describe the bug When translating strings that contains square brackets it doesn't work well. It duplicates the content and removes the first bracket.

It's also happening in the web version.

To Reproduce Steps to reproduce the behavior:

  1. Go to following link and check the result yourself :)

https://www.deepl.com/translator?share=generic#es/en/%20%5B1s%5D%20%5B1s%5D%20%5B1s%5D%20%5B1s%5D%20%5B1s%5D

Expected behavior

[1s] [1s] [1s] [1s] [1s] Screenshots

web

andoni-enriquez commented 1 year ago

Sometimes it also replaces [1s] to (1s)

aamoronatti commented 1 year ago

web2

https://www.deepl.com/translator?share=generic#es/de/%20%5B1s%5D%20%5B1s%5D%20En%20este%20video%20tutorial%2C%20vas%20a%20poder%20conocer%20las%20dos%20maneras%20de%20acceder%20a%20tu%20autoevaluaci%C3%B3n%2C%20que%20es%20la%20primera%20fase%20del%20proceso%20de%20gesti%C3%B3n%20del%20desempe%C3%B1o.%20%0A%20%5B1s%5D%20Y%20tambi%C3%A9n%20podr%C3%A1s%20conocer%20las%20secciones%20que%20tiene%20una%20autoevaluaci%C3%B3n%2C%20que%20son%3A%0A%20%5B1s%5D%20La%20hoja%20de%20ruta%2C%0A%20%5B1s%5D%20Un%20texto%20de%20Introducci%C3%B3n%20al%20formulario%20de%20autoevaluaci%C3%B3n%2C%0A%20%5B1s%5D%20La%20secci%C3%B3n%20de%20evaluaci%C3%B3n%20de%20objetivos%20asingados%2C%0A%20%5B1s%5D%20La%20secci%C3%B3n%20de%20Objetivos%20de%20Desarrollo%2C%0A%20%5B1s%5D%20Y%20la%20secci%C3%B3n%20de%20Evaluaci%C3%B3n%20de%20Competencias.%0A%20%5B1s%5D%20Tambi%C3%A9n%20conocer%C3%A1s%20otras%20funcionalidades%20de%20apoyo%20a%20esta%20etapa.

seekuehe commented 1 year ago

Hi @anton-vidext,

Thank you for your report. We have informed the responsible team about the issue.

Since this is not a node library issue, I will close this ticket. If you encounter any other unexpected behavior related to translation, you can also contact support@deepl.com.