![]() ![]() Google Translate JS SDK default your page source language is English (code is en), if your page source language is non-English language, please set defaultPageLanguageCode manually. So we added class= "notranslate" to the price DOM to dynamically modify the price DOM information when the currency changes. For the price on the page, we don't want to be translated into multiple languages. It offers a website interface, a mobile app for Android and iOS, and an API that helps developers build browser extensions and software applications. In this project, we need two functions, multi-language and multi-currency, to complete internationalization. Google Translate is a multilingual neural machine translation service developed by Google to translate text, documents and websites from one language into another. I can give you an example of best practices: We are working on a cross-border e-commerce project. Only the translation of static content is supported without refreshing the page.įor something you don't want to translate, add class= "notranslate" Note that here we invoke /translate_a/element.js library file, the translation for the web pages of writing is the full amount. > prop name: showArrow, type: Boolean, default: true Tips GoogleTranslateSelectedHandler( language) ![]() If you want to do something after you select the language, add to the component, just like this: > Use in Vue component // main.js import vGoogleTranslate from "v-google-translate" Expand the Advanced section to the left side of the Settings panel, and then click Languages. > Use in Vue component yarn add v-google-translate Start by visiting the Chrome Settings panelopen the Chrome menu, and then click Settings. To view the package in action, check it out here. If your target market lives across the sea and speaks a different language, you may not have any choice but to localize.įor more details on what localization is and the potential benefits, checkout this article. This package enables localization of web apps made with vue by use of google translate.Īs your website and app grows, you may find a need to expand to other markets outside your home country. Offer the quick translation of your website into over 15 languages. This package was heavily inspired by vue-google-translate. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |