Asp.net MVC - Multilingual Website

I am tasked with developing a multilingual website using ASP.NET MVC. For static content, I'm sure I have resx files to provide better scalability. But the problem is with user input. User1 fills in the customer data form and saves it using language1. Now User2, when viewing the data, the data entered by user1 in langauge1 should be displayed in the language of choice User2. Can someone help with some idea here. Thanks in advance.

+4
source share
2 answers

You can use an automatic language translation service such as Google Translate . Using it is as simple as sending a GET request to https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=hello%20world&source=en&target=de (translates hello world from English to German ) and parsing the received JSON.

As pointed out by @olivehour, Microsoft also offers a similar service .

Do not expect miracles, although with regard to the quality of automatic language translation.

+8
source

If you want the user to enter data translated into other languages โ€‹โ€‹of the users, you should ask them to enter him into these other languages. Or ask the editors to do this for them, suggesting that you need some level of quality in the translations.

0
source

Source: https://habr.com/ru/post/1397851/


All Articles