user2262701
user2262701

Reputation: 3

converting existing website to multilingual website of asp.net mvc

I want to convert my existing website which is created in asp.net mvc to a multilingual without resource file.I have a lot of client side content (obtained through ajax in javascript) what is the best possible way?

Upvotes: 0

Views: 406

Answers (1)

pnewhook
pnewhook

Reputation: 4078

I wouldn't stray too far from resource files. They're meant to be used for localization, and they're good at it. You may need to template some JSON strings from a resource file, but that'll be faster than a DB lookup, or file read.

For the purpose of localizing client-side content to be displayed to the user, are partial views possible? You'll get the benefit of the typical MVC pipeline (i.e. passing through the localization modules) but also get the content via an Ajax query.

Upvotes: 1

Related Questions