Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Sep 1, 2022

I've left color on the URL as it's needed immediately to get the correct visual.

Need to decide whether we update text via a message or URL params
but identifying the strings is a good start.
@netlify
Copy link

netlify bot commented Sep 1, 2022

Deploy Preview for distracted-dubinsky-fd8a42 ready!

Name Link
🔨 Latest commit 8e0db80
🔍 Latest deploy log https://app.netlify.com/sites/distracted-dubinsky-fd8a42/deploys/6310b2e45e7b5e0008695bc6
😎 Deploy Preview https://deploy-preview-44--distracted-dubinsky-fd8a42.netlify.app/simulator
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@microbit-matt-hillsdon microbit-matt-hillsdon changed the title Find the translatable strings and add indirection. Add "config" message for translation (and perhaps other) Sep 1, 2022
@microbit-matt-hillsdon microbit-matt-hillsdon changed the title Add "config" message for translation (and perhaps other) Add "config" message for translation Sep 1, 2022
@microbit-matt-hillsdon
Copy link
Contributor Author

Test via

$("iframe").contentWindow.postMessage({kind: "config", language: "fr", translations: {"button-a": "Button Aaah"}}) 

@microbit-matt-hillsdon
Copy link
Contributor Author

Can now be tested via https://github.com/microbit-foundation/python-editor-next/pull/925/files#diff-e177938198aa5ab3756df5b064edec860e613791aa48e83d2fe97837302ff3c1R36-R39 but it's not very convincing as there's no actual translation.

Copy link
Contributor

@microbit-robert microbit-robert 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.

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.

3 participants