locked
Localization and internationalization in service and repository layer RRS feed

  • Question

  • User433211055 posted

    Hi

    I'm developing for test some new features...

    I would like know if there is something important to do in service and repository layer about localization...

    Can I manage all in web layer?

    I have a big database...   I must have a table for each entity to translate or can I have other approach?

    I look some approach in the web but I think a bit complicated to manage ... exist an easy way?

    BR

    Wednesday, June 8, 2016 9:09 AM

All replies

  • User2119946224 posted

    Hello,

    In web there are two approaches you can use for implement Localization:

    1) Using .Resx files

    2) Using .xml files

    For 1, you can not update resource files run time programmatically, but in xml file you can update keys run time.

    For both you can make separate layer and use same resources in multiple projects.

    For .Resx,

    You can create separate project and from project property make access modifier public. Reference this layer to web and get keys access there.

    For .XML,

    You can create xml files in your web project. after that create layer and use project xml files for localization.

    Please let me know if you needs further details.

    Regards,

    Tuesday, June 20, 2017 4:38 AM