osmaxx icon indicating copy to clipboard operation
osmaxx copied to clipboard

Translate JS strings in Frontend

Open wasabideveloper opened this issue 9 years ago • 3 comments

wasabideveloper avatar Dec 08 '15 14:12 wasabideveloper

Resolution possibility: Remove all hardcoded labels from js and use templetized divs or spans.

hixi avatar Mar 23 '16 15:03 hixi

Maybe it's a good idea to use data-* attributes and read the labels in JS from there

wasabideveloper avatar Mar 26 '16 21:03 wasabideveloper

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

das-g avatar Jan 30 '17 16:01 das-g