RunestoneComponents icon indicating copy to clipboard operation
RunestoneComponents copied to clipboard

Translation of the components

Open donnerc opened this issue 6 years ago • 2 comments

I need to translate the components to French. I could of course do that my own copy but how could I contribute back ? What would be the best way to include translation support right in the components ?

donnerc avatar Oct 01 '19 07:10 donnerc

the activecode.js file implements some i18n for that component, which uses jquery's i18n framework. I suggest you expand on that work as it seems relatively easy to implement and understand.

You can see that in activecode/js there is a activecode-i18n.en.js and activecode-i18n.sr-Cyrl.js file. These files contain key value pairs where we use the keys in the code and the values are the translation to whatever language.

Brad

bnmnetp avatar Oct 01 '19 13:10 bnmnetp

Cool. Thanks. I will have a look.

donnerc avatar Oct 01 '19 15:10 donnerc