Closed taozhou-glean closed 2 weeks ago
Describe the bug
multi-line comment seems to be extracted missing #. on subsequent lines
#.
To Reproduce Steps to reproduce the behavior, possibly with minimal code sample, e.g:
<Trans comment="this is a multi-line comment the second line" > Some text </Trans>
Expected behavior
#. this is a multi-line comment #. the second line #. js-lingui-id: Ot/Ga/ msgid "Some text" msgstr "Some text"
actual result:
#. this is a multi-line comment the second line #. js-lingui-id: Ot/Ga/ msgid "Some text" msgstr "Some text"
Additional context lingui itself seems to be able to parse this just fine, but library like crowdin will treat this message catalog file as invalid
lingui --version
npm list @babel/core
@lingui/swc-plugin
babel-macro-plugin
.babelrc
Reproducible - https://stackblitz.com/edit/vitejs-vite-jiwzn1?file=src%2Flocales%2Fen.po
Describe the bug
multi-line comment seems to be extracted missing
#.
on subsequent linesTo Reproduce Steps to reproduce the behavior, possibly with minimal code sample, e.g:
Expected behavior
actual result:
Additional context lingui itself seems to be able to parse this just fine, but library like crowdin will treat this message catalog file as invalid
lingui --version
: 4.11.2npm list @babel/core
@lingui/swc-plugin
babel-macro-plugin
.babelrc
) or framework you use (Create React App, NextJs, Vite)