RNA: allow updating textdomains in JS and PHP packages used in multiple plugins #20320
Closed
1 of 2 tasks
Labels
Build
[Focus] i18n
Internationalization / i18n, adaptation to different languages
[Focus] Jetpack DNA
[JS Package] Components
[Plugin] Backup
A plugin that allows users to save every change and get back online quickly with one-click restores.
[Pri] Normal
[Type] Task
Our PHP and JS packages currently use the
jetpack
textdomain for all translatable strings. While that's the right thing to do for all strings that are shipped with the Jetpack plugin, those strings will not be translated if they are shipped as is in other plugins with a different slug.We should consequently consider automatically updating those textdomains on production versions of each plugin.
@kbrown9 looked into the PHP part of this last year, in #18070, and offered a solution that was added to our docs:
jetpack/projects/packages/README.md
Lines 64 to 82 in d6b0536
It may be time to start adding that solution to our monorepo plugin that consumes packages, the Backup plugin.
Related: #17099
Example use-case: Jetpack components (see #20287).
The text was updated successfully, but these errors were encountered: