{"id":220,"date":"2020-06-14T13:33:59","date_gmt":"2020-06-14T13:33:59","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=220"},"modified":"2020-06-14T13:33:59","modified_gmt":"2020-06-14T13:33:59","slug":"automatically-let-google-translate-your-webpage","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2020\/06\/14\/automatically-let-google-translate-your-webpage\/","title":{"rendered":"Automatically Let Google Translate Your Webpage"},"content":{"rendered":"\n<p>There was a requirement before that the webpage needs to be converted to any language that the guest will be coming from. <\/p>\n\n\n\n<p> So I got digging and found the code that will let Google translate convert it on the fly. Take note that this might need a few web source tinkering.<\/p>\n\n\n\n<p>Here it is : <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"196\" src=\"http:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/Untitled.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/Untitled.png 921w, https:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/Untitled-300x64.png 300w, https:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/Untitled-768x163.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>And the output you will see is :<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"181\" src=\"http:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/google-translate-widget.png\" alt=\"\" class=\"wp-image-222\" srcset=\"https:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/google-translate-widget.png 384w, https:\/\/basicwebsitesolutions.com\/blog\/wp-content\/uploads\/2020\/06\/google-translate-widget-300x141.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n\n\n\n<p>I&#8217;m not sure why I cannot copy and paste code to WordPress for now. I am suspecting that you cannot copy &lt;DIV> statements. But soon I will know why. But for now, a screenshot will do.<\/p>\n\n\n\n<p>Now, of course, there is a downside to using this one. The translation going back from Chinese-to-English for example might not yield the same result. Just be careful if you are using words like Parent&#8217;s Portal that might be translated as an intergalactic dimension.<\/p>\n\n\n\n<p>Just to be safe, we can keep it to plain or simple words that google can understand.<\/p>\n\n\n\n<p>As always stay safe<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n\n\n\n<p>You can view the youtube video here :  <br><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/youtu.be\/Q0Hqbn-4p6I\">https:\/\/youtu.be\/Q0Hqbn-4p6I<\/a>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was a requirement before that the webpage needs to be converted to any language that the guest will be coming from. So I got digging and found the code that will let Google translate convert it on the fly. Take note that this might need a few web source tinkering. Here it is : &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/basicwebsitesolutions.com\/blog\/2020\/06\/14\/automatically-let-google-translate-your-webpage\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Automatically Let Google Translate Your Webpage&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":224,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1,11],"tags":[128,125,129,127,126],"class_list":["post-220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-day-to-day-life","category-life-as-a-programmer","category-php-and-mysql","tag-google","tag-google-translate","tag-sourcecode","tag-translation","tag-widget"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions\/225"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media\/224"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}