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

refactor: move i18n service to npm #6193

Merged
merged 5 commits into from
Apr 14, 2020

Conversation

mpaktiti
Copy link
Contributor

Resolves #6173

This PR removes the internal i18n service and installs the new api-plugin-i18n npm package as its replacement.

The code in this npm package is the same, and has already been tested, so the expected outcome of this PR is seeing nothing different than how the app currently runs.

Signed-off-by: Maria Paktiti [email protected]

Signed-off-by: Maria Paktiti <[email protected]>
@mpaktiti mpaktiti requested a review from kieckhafer April 13, 2020 23:36
@mpaktiti mpaktiti marked this pull request as draft April 13, 2020 23:51
@mpaktiti mpaktiti marked this pull request as ready for review April 14, 2020 00:10
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

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

Looks good overall, a few small things

src/registerPlugins.js Outdated Show resolved Hide resolved
jest.config.cjs Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@@ -9,6 +9,7 @@ const externalNodeModules = [
"@reactioncommerce/api-plugin-accounts",
"@reactioncommerce/api-plugin-address-validation",
"@reactioncommerce/api-plugin-address-validation-test",
"@reactioncommerce/api-plugin-i18n",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kieckhafer should I also move lines 7+8 under the api-plugin-i18n or they are left there for a reason?

Copy link
Member

Choose a reason for hiding this comment

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

No reason, I updated them.

Signed-off-by: Erik Kieckhafer <[email protected]>
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

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

👍 changes approved

@kieckhafer kieckhafer merged commit 14c8a74 into trunk Apr 14, 2020
@mpaktiti mpaktiti deleted the refactor-mpaktiti-move-i18n-plugin branch April 14, 2020 14:30
@kieckhafer kieckhafer mentioned this pull request Apr 16, 2020
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.

move i18n plugin to its own npm package, and install npm version Reaction
2 participants