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

[Translation pipeline] Build VideoPress package to extract localization strings #5668

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

fluiddot
Copy link
Contributor

@fluiddot fluiddot commented Apr 13, 2023

Related PR:

Fixes the issue mentioned here.

The translation pipeline needs to extract the localization strings used in the web version to identify which ones are only used in the native version. The latter is added to the localization strings files to be translated along with the rest of the strings of the host apps. For this reason, since we'll incorporate the VideoPress block, we need to build the VideoPress package.

Additionally, the section, related to adding a new i18n domain for a plugin, has been updated in the README to reflect the recent changes after introducing the VideoPress package.

To test:

  1. Verify that the VideoPress package is not built by removing the folder jetpack/projects/packages/videopress/build.
  2. Run the command npm run bundle.
  3. Observe that no modifications are made to the localization strings files (i.e. bundle/ios/GutenbergNativeTranslations.swift and bundle/android/strings.xml).

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@fluiddot fluiddot self-assigned this Apr 13, 2023
@fluiddot fluiddot changed the base branch from trunk to add-run-jetpack-command April 13, 2023 18:24
@fluiddot fluiddot force-pushed the i18n-build-videopress-plugin branch from 44595da to ccd2380 Compare April 21, 2023 11:04
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Apr 21, 2023

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@fluiddot fluiddot marked this pull request as ready for review April 21, 2023 11:05
@fluiddot fluiddot requested review from jhnstn and geriux April 21, 2023 11:05
Base automatically changed from add-run-jetpack-command to trunk April 24, 2023 07:44
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I verified the test plan succeeded. 🎉 Thank you!

README.md Outdated Show resolved Hide resolved
fluiddot and others added 2 commits April 26, 2023 15:51
Co-authored-by: David Calhoun <github@davidcalhoun.me>
@fluiddot fluiddot enabled auto-merge April 26, 2023 13:54
@fluiddot fluiddot merged commit bb0d5a5 into trunk Apr 26, 2023
@fluiddot fluiddot deleted the i18n-build-videopress-plugin branch April 26, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants