Skip to content Skip to sidebar Skip to footer

How Can I Translate An Html File?

I want to add a translation for an HTML file which contains i.name. I do have an object called energydensity which contains the data I need for translation. This actually is a drop

Solution 1:

You might add something like:

<scripttype="text/javascript">functiongoogleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'},'google_translate_element');
}
</script>

This adds a Google Translate Button which translates your page to whatever language the user selects. There is a full example on w3schools.

Post a Comment for "How Can I Translate An Html File?"