ThomHarris
ThomHarris

Reputation:

jQuery Plug-in to handle translation?

I recently have come across with a need for some type of "translation"-type plug-in that could translate specific fields or areas to other languages.

I am not sure if something like this even is out there - but I thought this might be a good place to ask.

Upvotes: 1

Views: 1040

Answers (1)

Rion Williams
Rion Williams

Reputation: 76607

You might want to take a look at the Sunday Morning jQuery plug-in. It utilizes the Google Translate API and can translate either single words (perhaps on a click event), entire fields, or whatever else you might need to do.

Example of usage: (Double clicking a word for French translation)

HTML

<div id="example2">     
     <p class="example">My kingdom for a horse!</p>
</div>

jQuery

$('#example2 .example').sundayMorningReset();           
  $('#example2 .example').sundayMorningBubble({
       source:'en',
       destination:'fr'
  });

Take a look through their documentation near the bottom of the page - as it features all the different methods of implementing it, hope this helps.

Upvotes: 2

Related Questions