You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
javascript extraction method gives unexpected results with escaped newlines #1056
(Notice the extra newline between "hey" and "lol" with the javascript extraction method).
I think it's most likely a bug, and the JavaScript should behave the same as the Python.
This is especially bad since the current behavior also differs from how the JavaScript parser interprets it:
consthey=_("hey \lol");
The content of the variable is heylol, but the extracted source term is hey\nlol. The mismatch between the two will prevent the string from being translated by gettext at all.
Activity
nightcityblade commentedon Aug 13, 2026
Hi, I'd like to work on this. I'll submit a PR shortly.