Skip to content

Language Selection via URL Query Parameter #3490

Closed
@raclim

Description

@raclim

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.

Image

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!

Metadata

Metadata

Labels

Feature RequestProposal for adding a new functionalityGood Medium IssueA moderately complex issue for contributors with some experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions