Skip to content

Conversation

@chrisgarrity
Copy link
Contributor

Resolves:

Fixes #2172 (along with scratchfoundation/scratch-gui#3431)

Changes:

  • Initialize locales in redux using methods exported by GUI.
  • pass GUI method to set the scratchlanguage cookie

NOTE: The does not reload the page, so switching back to the project page will not reflect language changes made in gui until the next page reload. Reloading the page will lose project state so we don’t want to do that.

Test Coverage:

  • Change language in www, load preview, then see inside: the gui should load in the currently selected language (the language needs to be in both gui and www)
  • View a project in the editor: you can switch languages.
  • View community after changing languages in gui: the preview will still be in the previous language. On reload it will show the new language.

rschamp
rschamp previously approved these changes Oct 19, 2018
Copy link
Contributor

@rschamp rschamp left a comment

Choose a reason for hiding this comment

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

Well that's simple enough!

@chrisgarrity
Copy link
Contributor Author

I've marked this blocked so that the gui changes can land first.

* Initialize `locales` in redux using methods exported by GUI.
* pass GUI method to set the `scratchlanguage` cookie

NOTE: It does not reload the page, so switching back to the project page will not reflect language changes made in gui until the next page reload. Reloading the page will lose project state so we don’t want to do that.
@chrisgarrity chrisgarrity force-pushed the issue/2172-integrate-intl branch from 3e99c7d to 3fcc13a Compare October 22, 2018 21:38
@chrisgarrity chrisgarrity merged commit fdeab4d into scratchfoundation:develop Oct 23, 2018
@chrisgarrity chrisgarrity deleted the issue/2172-integrate-intl branch October 23, 2018 11:02
@BryceLTaylor
Copy link
Contributor

This was tested in a recent bug hunt. Looks good!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants