Description
Increasing Access
Currently, users can set the language of the p5.js editor by using the language dropdown on the upper-left hand navigation menu (pictured below). While language preferences are saved to a user's account, they have to be set manually by the user.

Adding support for a URL query parameter to set the language would make it easier to share the p5.js editor in different languages. This was initially raised by @SableRaf!
Feature request details
What Would This Look Like?
The query parameter to determine the language would be set at the end of a url, such as https://editor.p5js.org/path?lang=fr
. This would load the editor in French.
What Are Some Considerations?
- Should visiting a URL with a language parameter also update the user's saved language preference, or only apply for that session?
- What happens if the
lang
value is invalid or unsupported?
Please feel free to continue fleshing out what this might look like and further considerations that would need to be made here in the comments below!