Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Multi-language options for dynamic content (from database) in ASP.NET Core MVC

$
0
0

HI guys,

I want to make my project in three languages, so the project will be multi-language. I've read about globalization & localization, but they are useful for static content such as menu names, datetime, and some other cultural things. I want to be able my CRUD operation in three languages, so that Admin will be able to create one post in different languages. And I don't need automatic translation as it doesn't translate well the sentence/paragraph based content. We will create them one-by-one, but I don't want to have different tables for them in database, but to make it so that resource-provider would work dynamically so that if I get content from database in default language by LINQ, it would be able to bind its other language variants. Thus, in click for ex. RU, the content would display the post description in Russian. Any good advice?

By the way, I've found one source (https://github.com/RickStrahl/Westwind.Globalization#installation-netcore )that explains this, but the way is long, I think there must be shorter way (for ex. choosing languanges in action using LINQ in relevant actions). I hope one of you found solution to such issue.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>