HTML5 has no integrated translation. HTML supports the lang attribute, which indicates in which language the given content of the tag is written, but this is just an indicative attribute that in no way changes the content.
A more philosophical argument for why there is no automatic translation is that HTML is a structural language ... it defines the structure on which your web page is built. He not only does not change the content, but also does it, because the developer will lose control over the quality and accuracy of the translation. It can be very bad ...
As you should already know, Chrome translates foreign language pages for you into your preferred language. The difference here is that Chrome is controlled by a user who has the right to decide in which language to view the content, and whether they want to view the source content that is explicitly defined by you, the developer.
Translation is performed in the browser. To translate, you need a translation engine that really does the translation for you. As you know, you cannot just translate words one by one and ultimately have the correct translation in another language. Chrome uses the power of Google Translate to translate its pages, and thatβs how it offers this feature. Your best bet for multilingual support is to offer your pages in any number of languages ββthat you definitely can, and then hope that users who donβt use Chrome will connect your URL to Google translate or a similar service to get an approximate content of your content in their native language.
source share