xgettext does not find all translated strings

405 Views Asked by At

I have a bundle.js, output from a bigger react / typescript webpack project.

If i run: xgettext bundle.js --from-code=utf-8 --language=JavaScript it finds some of the translated strings, but not all of them.

I have tried to change --language to different others: PHP, Python, Perl, C etc. and I am still missing translations.

Is there a way to debug xgettext to see what it is doing step by step?

Or anyone have an idea to find all translated string in my bundle.js ?

Update 1

Bundle.js - https://paste.ee/p/XmML7
And one of the strings that are skipped, is the string: "Control Information"

I can find gettext("...") and gettext('...') 352 times in the bundle. But I only get 216 strings in my message.po file after running xgettext command above.

Update 2

This is the part of the full bundle.js, that contains the string: "Control Information"

https://pastebin.com/CuXKrDKC

0

There are 0 best solutions below