Translation of a website without cms

Asked

Viewed 61 times

-2

Hello, I have a site only in html, css and js. The client asked to insert a language change button. English and Portuguese only. I wonder if there is any tool or way to do this process just using js or if I will have to translate the whole page and then create the anchor redirecting between the two files.

Thanks in advance for your attention.

  • I think you would have to use i18n, you can use two HTML [en and en], I just don’t know if it would be feasible for your project, or you can insert google Translate to your website.

1 answer

0


Nathan, there used to be a Google translator feature that was possible to include a button but was removed, so if your site is static maybe creating an html page in another language would be faster, you can translate by placing the url there in google translator it generates a translated page, then just you copy the source code, maybe it helps.

Take a look at the example: https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=pt-BR&sp=nmt4&tl=en&u=https://en.stackoverflow.com/questions/370108/tradu%25C3%25A7%25C3%25A3o-de-um-site-sem-cms&xid=17259,15700022,15700186,15700190,15700248,15700253&usg=ALkJrhiJWUBzVkGYs1dFDEEURXCgFFRgCQ

Browser other questions tagged

You are not signed in. Login or sign up in order to post.