tinoni / translate.js

A jQuery plugin to translate text in the client side
MIT License
87 stars 84 forks source link

data-trn-key is overriding HTML text content #7

Closed HOllarves closed 8 years ago

HOllarves commented 8 years ago

For some strange reason, the value of any data-trn-key will override the actual text in the HTML. I understand that data-trn-key is for paragraphs or long text, like some sort of a flag to quickly translate something.

If I'm mistaken I'd love to know.

Thank you!

jorgejeferson commented 8 years ago

I do not quite understand your question, but come on. The trn class is used to tell which tag will be translated. I said ?!

HOllarves commented 8 years ago

@jorgejeferson Jorge, Now I understand.

I didn't know that when using data-trn-key I must provide translation for all the languages I'm using in my dictionary. That was causing my problem.

Thanks for the fast response, very much appreciated.

Gracias!