processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.48k stars 3.29k forks source link

i18n: Expose translator language switching feature for integration #5453

Open almchung opened 2 years ago

almchung commented 2 years ago

How would this new feature help increase access to p5.js?

This proposes to extend our existing internationalization tool and exposes its features for future integration tasks (e.g. as discussed in p5.js web editor's issue #1943 with @outofambit ).

Most appropriate sub-area of p5.js?

Feature enhancement details:

  1. Expose the language switching function This mainly means to extend setTranslatorLanguage() from our i18n module [LINK]. p5._setTranslatorLanguage() can be a way to do this [LINK].
  2. Expose a function listing available translator language We will add p5._availableTranslatorLanguages() to query for the settings page to know which translations are supported in the sketch's version of p5.

Checklist:

almchung commented 2 years ago

This will be on hold until early this summer when the development direction for the FES becomes clearer. Thank you!

Ashley-Y-Lin commented 1 year ago

Do we have a better sense of the development direction for FES? I'd be excited to try implementing some of the features above if so.

almchung commented 1 year ago

Hi @Ashley-Y-Lin, thank you for your interest! We got several open issues for FES, including this one. We may work on major ones like decoupling FES (#5629) during the summer, so you may want to wait to work on this particular issue until late summer. But meanwhile, please feel free to jump in and work on other open issues.