Translator comments are sometimes missed out #9464
Labels
Internationalization (i18n)
Issues or PRs related to internationalization efforts
[Type] Bug
An existing feature does not function as intended
[Type] Build Tooling
Issues or PRs related to build tooling
Describe the bug
When generating
languages/gutenberg.pot
, sometimes the built files are used instead of the original source files and translator comments get missed.In
packages/editor/src/components/block-list/block.js
we have this on lines 382-384:This gets built to this in
packages/editor/build-module/components/block-list/block.js
:and when translations are generated, the
build-module
version's translation entry is used and the translator comment is not included.To Reproduce
Run
npm run build
and see thatbuild-module
versions of files are referenced inlanguages/gutenberg.pot
Expected behavior
Only the original
src
versions should be referenced, and all translator comments should be included.The text was updated successfully, but these errors were encountered: