Add @wordpress/i18n-text-domain
Eslint rule
#17091
Labels
Build
[Focus] i18n
Internationalization / i18n, adaptation to different languages
[Type] Duplicate
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Is your feature request related to a problem? Please describe.
Add
@wordpress/eslint-plugin
which would give you a bunch of i18n related rules. Specifically you could ensurejetpack
textdomain is always present for Gutenberg extensions.Initially it could be defined in extensions's eslint config and once
@wordpress/i18n
is used elsewhere in Jetpack, at the root config.See example:
https://github.com/Automattic/wp-calypso/blob/575477d44dd7d63f41031bc8216d822c12c16d9d/apps/editing-toolkit/.eslintrc.js#L5-L10
Additional context
See WordPress/gutenberg#20555
The text was updated successfully, but these errors were encountered: