Keyboard Support, Tested, Compatible with IE7+, Mobile Devices, Desktops and Maintained with ❤.
Say you had to translate this:
<div id="hello">Hello</div>
Step 1: place the widget wherever you like.
<div id="widget" class="localizationTool"></div>
Step 2: translate.
$("#widget").localizationTool({ strings: { "id:hello" : { it_IT : "Ciao", de_DE : "Hallo", fr_FR : "Salut" } } });this is the source string selectortranslate!translate!translate!
Select the text of DOM elements to translate directly via source string selectors:
You can use any text as well, and DOM elements will be extracted from the page automatically!
And from version 0.0.13, you can translate attributes as well!
Use <attributeName>::<id|class|element selector> to select attributes:
Define your own languages!
$('#widget').localizationTool({ languages: { 'myDialect' : { language: 'Dialect', country: 'Barletta', languageTranslated: "Barlett'n", countryTranslated: "Barli'tt", flag: { 'url' : 'http://www.example.org/barlettaFlag.png' } } }, strings: { 'id:hello' : { it_IT : 'Ciao', de_DE : 'Hallo', fr_FR : 'Salut', myDialect : 'Wanná!' } } });
This is the list of the currently supported languages/countries.
If you can't find your favourite language here, feel free to request it.
It would be great if you could contribute by indicating the followings:
If you think something is missing, don't be shy, suggest a feature!
Start translating your one page website now.