If you prefer to build your own language selector, then you can call the following method to change the language:
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:
To learn more about language selector options, visit our language selector widget section.