Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net MVC - Multi lingual site

I am tasked with developing a multi lingual site using ASP.NET MVC. For static content i am ok to have resx files to allow better scalability. But the problem comes for user entered data. User1 fills up a customer data form and saves it using language1. Now User2 when views the data, the data entered by user1 in langauge1 should be shown in the language of User2's choice. Can somebody help with some idea here. Thanks in advance.

like image 697
Hari Subramaniam Avatar asked Feb 21 '23 09:02

Hari Subramaniam


1 Answers

You could use an automatic language translation service such as Google's Translate. Using it 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 resulting JSON.

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

Don't expect miracles though as far as the quality of the automatic language translation is concerned.

like image 153
Darin Dimitrov Avatar answered Mar 03 '23 05:03

Darin Dimitrov