what is the best way to store and display localized user-supplied content through models in ASP.Net Core so that your site can be multilingual? The ASP.NET localization guides show how to localize the static parts of a web site like labels and messages.
I'm looking for a way to be able to store localized user-supplied content in multiple languages, and display the correct language based on in the user's selection. So if the language is set to Thai, the application displays the Thai versions of the content, such as product description in Thai.
Is there a way to do this in ASP.NET Core?
nopCommerce provides this feature - you can add multiple languages and enter details for product, user, category models etc in all the languages that you've selected (see image).
nopCommerce bilingual model entry form
nopCommerce stores these localization features in a database table (LocalizedProperty) essentially as key-value pairs with foreign keys to determine the object it's tied to.
nopCommerce LocalizedProperty table
How do you make the application serve the correct values from such a table depending on locale?