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

Gutenlypso: Load translations #29026

Merged
merged 4 commits into from
Dec 4, 2018
Merged

Gutenlypso: Load translations #29026

merged 4 commits into from
Dec 4, 2018

Conversation

mmtr
Copy link
Member

@mmtr mmtr commented Dec 3, 2018

Changes proposed in this Pull Request

This PR adds the translations to the locale data needed by the Gutenberg editor, so the sidebar is translated and we no longer have a discrepancy between the user language and the language used by Gutenberg:

screen shot 2018-11-14 at 10 13 14

Testing instructions

Note

This currently has 2 problems:

  • It cannot load 2 translations files at the same time, so right now the Jetpack blocks translations are not loaded (see Gutenlypso: Load translations #29026 (comment)). Solved in 8b8571a by using superagent and Promise.all
  • After setting the locale data with setLocaleData, I don't see any translated content, so I'm not sure what it's going on. I'm applying the same approach as D21408-code. Solved in e94732a after using the default domain.

@mmtr mmtr added [Status] In Progress i18n [Goal] Gutenberg Working towards full integration with Gutenberg labels Dec 3, 2018
@mmtr mmtr self-assigned this Dec 3, 2018
@matticbot
Copy link
Contributor

@mmtr mmtr requested a review from a team December 3, 2018 15:46
@mmtr mmtr requested a review from akirk December 3, 2018 17:38
dmsnell added a commit that referenced this pull request Dec 3, 2018
When using `requestFromUrl()` in #29026 we noticed errors being thrown
from within `waitForData()`. Investigation revealed this basic type
error that could have been caught by a language and compiler before it
was pushed to production. Yay JS.

This wasn't detected because this function isn't yet being used and we
weren't sure how to test it. Thankfully our fail-fast methodology
prevented this from appearing to our customers.
@gwwar gwwar added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Dec 4, 2018
@gwwar
Copy link
Contributor

gwwar commented Dec 4, 2018

Fantastic work @mmtr ✨ !

With @dmsnell's changes in #29043 I see the following without needing superagent

screen shot 2018-12-03 at 5 27 30 pm

dmsnell added a commit that referenced this pull request Dec 4, 2018
When using `requestFromUrl()` in #29026 we noticed errors being thrown
from within `waitForData()`. Investigation revealed this basic type
error that could have been caught by a language and compiler before it
was pushed to production. Yay JS.

This wasn't detected because this function isn't yet being used and we
weren't sure how to test it. Thankfully our fail-fast methodology
prevented this from appearing to our customers.
@gwwar gwwar force-pushed the update/gutenberg-translations branch from c383277 to 9d78988 Compare December 4, 2018 01:38
@gwwar gwwar added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Needs Author Reply labels Dec 4, 2018
@gwwar gwwar merged commit 02e434f into master Dec 4, 2018
@gwwar gwwar deleted the update/gutenberg-translations branch December 4, 2018 02:21
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 4, 2018
@gwwar
Copy link
Contributor

gwwar commented Dec 4, 2018

This fixes #28724

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg i18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants