GIRA / PhysicalBits

A web-based programming environment for educational robotics that supports live coding and autonomy using a hybrid blocks/text programming language.
https://gira.github.io/PhysicalBits/
MIT License
18 stars 5 forks source link

Autodetect language #19

Closed kristiank closed 4 years ago

kristiank commented 4 years ago

A first draft on automatically choosing the localization from browser language preferences. It works in my Firefox. I'm unsure how readable my code is and if I should use comments more.

RichoM commented 4 years ago

This seems to work great. Should I merge it now?

kristiank commented 4 years ago

I think so. We can later think on how to have the language saved in local storage. It could be good for situations where the browser language is not in accord to what the user wants.