Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load the i18n-map in plugins #22143

Merged
merged 1 commit into from
Dec 20, 2021
Merged

Conversation

anomiex
Copy link
Contributor

@anomiex anomiex commented Dec 20, 2021

Changes proposed in this Pull Request:

For Jetpack, this will keep the packages' i18n working once we update
the packages to use aliasable domains instead of "jetpack".

For Backup and Boost, this will make the packages' i18n start working
once we do that update (and once a version with jetpack_vendor/ is
pushed to wporg svn so the translations exist).

When we add use of jetpack-composer-plugin to other plugins (e.g.
Search), we'll need to remember to do something similar to each of them
too.

Jetpack product discussion

For #21690

Does this pull request change what data or activity we track or use?

No

Testing instructions:

  • This shouldn't make any visible difference yet.

For Jetpack, this will keep the packages' i18n working once we update
the packages to use aliasable domains instead of "jetpack".

For Backup and Boost, this will make the packages' i18n _start_ working
once we do that update (and once a version with `jetpack_vendor/` is
pushed to wporg svn so the translations exist).

When we add use of jetpack-composer-plugin to other plugins (e.g.
Search), we'll need to remember to do something similar to each of them
too.
@anomiex anomiex added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. [Type] Janitorial [Pri] Normal labels Dec 20, 2021
@anomiex anomiex self-assigned this Dec 20, 2021
@github-actions github-actions bot added [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Dec 20, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 20, 2021

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: January 11, 2022.
  • Scheduled code freeze: January 3, 2022.

Backup plugin:

  • Next scheduled release: January 4, 2022.
  • Scheduled code freeze: December 27, 2021.

Boost plugin:

  • Next scheduled release: January 31, 2022.
  • Scheduled code freeze: January 24, 2022.

@anomiex anomiex enabled auto-merge (squash) December 20, 2021 21:34
@anomiex anomiex merged commit 9f91ba1 into master Dec 20, 2021
@anomiex anomiex deleted the update/plugins-load-assets-i18n-map branch December 20, 2021 21:43
@github-actions github-actions bot removed the [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. label Dec 20, 2021
anomiex added a commit that referenced this pull request Dec 22, 2021
To finally fix #21690, we need each package to have its own textdomain and
to declare that domain in its `composer.json`.

The work done in previous PRs will take it from there: composer-plugin will
include the packages' domains in the generated `i18n-map.php` (#22096),
which the plugin will pass to the Assets package (#22143), which will map
those package textdomains to the plugin's (#22083).

This also adds checks to the monorepo linting script to help people get the
setup right:

* Packages may not use a textdomain that matches a plugin slug.
* If the package's phpcs config or eslint config sets a textdomain (which it
  will have to if it uses i18n after #22117 and #22131), require that same
  textdomain is set in composer.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Janitorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants