Javascript Language Selectors

If you prefer to build your own language selector, then you can call the following method to change the language:

tml.changeLanguage("ru");  

For example, you can make the above method call to a link tag:

<a onclick="tml.changeLanguage('ru')">Russian</a>  
<a onclick="tml.changeLanguage('es')">Spanish</a>  

Alternatively, you can use our default language selectors. Add an empty HTML tag to your page and indicate which language selector you want to use:

<div data-tml-language-selector="default"></div>  

To learn more about language selector options, visit our language selector widget section.