Trying to detect user language using askForString helper function

Ok so basically @MakeCode @richard I had an idea to make an extension that automatically detects a user’s language for in-game text localization, which I think would be very cool.

I’m trying to use the helper._getLocalizedInstructions() function to do this, which is for translating that text that shows up to tell you to use your computer keyboard when you use the prompt functionality. Unfortunately I can’t get it to work, neither by changing the default language of my browser or by changing the language in MakeCode settings. Is this functionality actually implemented or is this a fruitless search?

6 Likes

Richard answered on stream and basically said he’ll look into why it’s not working. Thanks Richard!

7 Likes

what is helpers._getLocalizedInstructions (what is pxsim.Keyboard.getLocalizedInstructions)?

How in the world does this work??? Also you should implement @Sarge’s localization extension.