inexorabletash / jslogo

Logo in JavaScript
https://calormen.com/jslogo
Other
370 stars 148 forks source link

Make localization declarative #79

Closed inexorabletash closed 8 years ago

inexorabletash commented 8 years ago

The language files in l10n/ all have the same boilerplate code which is a maintenance burden and make it fragile for authors.

Factor it out into a helper localize() global that takes a "JSON" blob.