Base solution for your next web application
Open Closed

Localization of entity properties and DB content #3631


User avatar
0
expertit created

Hello,

In the context of Asp.Net Zero, what is the best solution to localize application content, from the DB to the entity properties ?

Thanks for any advices


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    AspNet Zero or ABP don't have anything built in for entity localization. There are some known ways of doing this but I prefer to use one table for non localizable entity properties and one table for localizable entities.

    For example

    • Product

      • ID
      • Price
      • etc...
    • ProductLingual

      • ProductId
      • LanguageCode
      • Name

    But it is better if you search it on the web and decide the best one for yourself :).

    Thanks.

  • User Avatar
    0
    expertit created

    Hello ismcagdas,

    Thanks for your replies. We do like you explain in other .NET project not using AspNet Zero.

    We make also some modifications in the DB Context to support the localization by adapting some treatments.

    Best regards,

    Albert

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @expertit,

    We are also thinking to bring entity localization support to ABP Framework but we didn't think it deeply. Because of that I cannot offer you a better/detailed way at the moment.