简体   繁体   中英

Can I use google translator offline?

I am developing one application using spring boot and bootstrap. My requirement is I want to change languages as per user requirement. Recently I referred one task in w3sc: Task In this code have script file and so many Integrations internally.

Snippet:

<script type="text/javascript" 
   src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>

When its run without Google access (without internet) not working. Can I Integrate Google translator offline or any alternate solution for integrate google translator in my application?

No, you can't. If you want your application to be able to translate even without internet, you should prepare translations by your own and use one of many JS libs to support changing language, for example https://www.i18next.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM