Last post Jul 17, 2019 07:20 AM by Xing Zou
Jul 16, 2019 08:51 AM|fatihbarut|LINK
I want my website to be international, therefore want to implement google translate api in it and with a language combobox II want my site to be shown in any language the user wants.
Is it possible to do it in easy way?
Jul 16, 2019 12:55 PM|AddWeb Solution|LINK
yes, you can.
Please use below code and package you can easily add in your projec
Install the NuGet package Google.Cloud.Translation.V2 (.NETStandard 1.3)
Use the TranslationClient
Jul 17, 2019 06:37 AM|Xing Zou|LINK
IMO, google translate api is used to translate text/paragraph or article.If it is used to translate the whole site, it will have bad performance and high cost which is not necessary at all.
Since asp.net core globalization and localization could achieve it too and it is recommended to use built-in localization for static text.
Jul 17, 2019 07:10 AM|fatihbarut|LINK
thanks a lot
could you explain it in details?
Jul 17, 2019 07:20 AM|Xing Zou|LINK
What I think is that if you use google translate api for the site, it will send large quantities of request to api when the page refreshes which will cause low performance.You need to use asp.net core globalization and localization with resource files ,
refer to the tutorial in details