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

Use wordpress i 18 n in all of our codebase [MAILPOET-4908] #4627

Merged

Conversation

samnajian
Copy link
Contributor

@samnajian samnajian commented Dec 30, 2022

Description

This PR uses @wordpress/i18n package in the js/ts code related to Newsletters and the common code ( the directory mailpoet/assets/js/src/common ).

Code review notes

There will be a follow up ticket to take care of rest of the codebase.

QA notes

Please switch your site's language to a language that has a good coverage and check if the plugin remains translated on different pages

Linked tickets

MAILPOET-4908

After-merge notes

Please run the following commands to keep the translations current for the release to work fine:

  • ./do translations:build
  • ./do translations:push
  • Run ./do release:version-get-next to get the next version to use in the next step
  • ./do translations:prepare-language-packs {version from previous step}

@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch 9 times, most recently from dd2eea7 to 4ff83a3 Compare January 6, 2023 12:44
@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch from 4ff83a3 to 5845d5c Compare February 16, 2023 11:49
@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch 6 times, most recently from 419d2ac to 422ae5a Compare March 8, 2023 11:00
@samnajian samnajian requested a review from costasovo March 8, 2023 11:15
@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch from 422ae5a to 7f3b71b Compare March 8, 2023 11:19
@samnajian samnajian changed the title Mailpoet 4908 use wordpress i 18 n in all of our codebase Use wordpress i 18 n in all of our codebase [MAILPOET-4908] Mar 8, 2023
@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch 11 times, most recently from db2d95e to aea5c60 Compare March 9, 2023 20:09
[MAILPOET-4908]
[MAILPOET-4908]
[MAILPOET-4908]
As per import of @wordpress/i18n, and since it's using lodash
We'll need to reset window._ to underscore where we have a hard
dependency to underscore

[MAILPOET-4908]
This should fix the flakiness of EditorCouponCest::addCoupon

[MAILPOET-4908]
Some part of code had been removed by mistake for solving
merge conflicts

[MAILPOET-4908]
@samnajian samnajian force-pushed the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch from 028d1cc to 13a8587 Compare March 16, 2023 10:05
Copy link
Collaborator

@Aschepikov Aschepikov left a comment

Choose a reason for hiding this comment

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

GJ!

@Aschepikov Aschepikov merged commit 3756a9b into trunk Mar 20, 2023
@Aschepikov Aschepikov deleted the MAILPOET-4908-use-wordpress-i-18-n-in-all-of-our-codebase branch March 20, 2023 10:49
@Aschepikov Aschepikov assigned samnajian and unassigned veljkho and Aschepikov Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants