osmaxx
osmaxx copied to clipboard
Translate JS strings in Frontend
Resolution possibility: Remove all hardcoded labels from js and use templetized divs or spans.
Maybe it's a good idea to use data-* attributes and read the labels in JS from there
Django seems to have a built-in solution for exposing translations to JavaScript: https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#internationalization-in-javascript-code