Skip to content

i18n: Use the WordPress package and remove the built-in implementation#6007

Merged
youknowriad merged 2 commits intomasterfrom
update/use-i18n-package
Apr 10, 2018
Merged

i18n: Use the WordPress package and remove the built-in implementation#6007
youknowriad merged 2 commits intomasterfrom
update/use-i18n-package

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

closes #5984

This PR updates Gutenberg to use the npm published i18n package.
It removes the built-in implementation of the package and all the related tools (babel-plugin, pot-to-php).

Testing instructions

  • Check that Gutenberg loads
  • Try another language, notice Gutenberg is translated properly.
  • Try running npm run package-plugin notice the pot and the php files are included properly in the generated zip.

@youknowriad youknowriad added the Internationalization (i18n) Issues or PRs related to internationalization efforts label Apr 5, 2018
@youknowriad youknowriad self-assigned this Apr 5, 2018
@youknowriad youknowriad requested a review from gziolo April 5, 2018 12:00
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.7.0",
"extract-text-webpack-plugin": "4.0.0-beta.0",
"gettext-parser": "1.3.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should also remove babel-traverse (used only in the plugin's tests).

@youknowriad
Copy link
Copy Markdown
Contributor Author

Any other concern here?

@youknowriad youknowriad merged commit 68d7265 into master Apr 10, 2018
@youknowriad youknowriad deleted the update/use-i18n-package branch April 10, 2018 12:53
@youknowriad youknowriad added this to the 2.7 milestone Apr 10, 2018
@gziolo
Copy link
Copy Markdown
Member

gziolo commented Apr 10, 2018

Sorry for not being able to answer on time.

Any other concern here?

Yes, this is awesome. :) Once we are done with all updates to Babel config (I saw other PR touching it), I will spin PR in packages to find a way to move it there 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Internationalization (i18n) Issues or PRs related to internationalization efforts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n translations domains not auto-registering

3 participants