Skip to content

Add "config" message for translation #44

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

Merged
merged 3 commits into from
Sep 1, 2022
Merged

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

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.

2 participants