translate.js icon indicating copy to clipboard operation
translate.js copied to clipboard

Is there a way to translate titles ?

Open Almarane opened this issue 9 years ago • 2 comments

Hi !

I wanted to know if it is possible to translate "titles" with this API. I am making a French/English webpage, and I would want to translate something like this:

So that when you hover this button, it displays "Activer/désactiver la notification sonore de nouveaux messages" in French, and "Mute/Unmute new messages alert sound" in English.

I'd also like to know if there's a way to translate alerts.

Thank you !

Almarane avatar Jul 27 '15 12:07 Almarane

I found this plugin to be awesome! By the way, I just can't translate the text of html attributes such as placeholder and value. Any thoughts?

Update: After facing a limitation regarding the mentioned functionality I got a workaround solution, it's a tweak, but it works. It required the plugin's file modification, for instructions please check here: https://github.com/tinoni/translate.js/issues/6

monecchi avatar Oct 30 '15 20:10 monecchi

Hi @Almarane Perhaps you might want to take a look at this https://github.com/tinoni/translate.js/issues/6 - Cheers!

monecchi avatar Oct 31 '15 00:10 monecchi