learningequality / le-utils

Utilities and constants shared across Kolibri, Ricecooker, and Kolibri Studio
MIT License
2 stars 31 forks source link

Build the labels with their ids from a template #92

Closed jredrejo closed 2 years ago

jredrejo commented 2 years ago

Builds a json file that can be used from JavaScript to have a complete list of the LE labels, according to https://docs.google.com/spreadsheets/d/16m_ELq6-hmBgveV3YJ6e_q0YmCRB0av2K22er_nEQuk/edit

As labels are not stored in a DB table, there's no need to create the mapper for python constants.

It would be good to decide if this is the best way to provide the list for the frontend or a generator for it should be added to kolibri/studio so a format closer to https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/constants.js#L34 is available.