I really love this tool!
There is just one thing which make me nervous in every code review in my team - comments in locale files.
Example:
#: src/components/footer.jsx:30
#: src/components/header.jsx:35
#: src/components/header.jsx:96
msgid "menu.link.blog"
msgstr "Blog"
Every single change in files: footer.jsx, header.jsx, header.jsx will make change in localization file too, because number of the row with translate will be changed.
Is somehow posible to disable these comments in localization files please?
Hey @landsman,
I'm afraid this feature is only available in pre-release of v3: https://js-lingui-git-next.lingui-js.now.sh/ref/conf.html#formatoptions (from #661).
For now you could run sed after extract: yarn extract; find locales -type f -name "*.po" -exec sed -i '' '/^#:/d' {} +
@tricoder42 thank you for reply and workaround solution!
So, these comments are not required for correct work of Lingui, right?
Definitely not now
On 12 Aug 2020, 17:04 +0200, Michal Landsman notifications@github.com, wrote:
@tricoder42 thank you for reply and workaround solution!
So, these comments are not required for correct work of Lingui, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
FYI, we did cleaner for that as workaround: https://github.com/trisbee/lingui-locale-cleaner