<div class="lan">
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'es', includedLanguages: 'bn,da,de,en,es,fr,lb,nl,no,pt,sv', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
使用此代码,用户可以翻译站点,从列表中选择一种语言。如何通过浏览器语言进行自动页面翻译?