Reputation: 1715
I have an asp.net mvc application which uses Resx files for different languages. The files are existing in Web project and another one service layer.
I want now to customize some labels for specific customer (they have accounts and login to our web app). Is it possible to to archive with less code change?
Have reached some articles like below but switch to use database seems require much work.
It seems using a custom resource provider to load customer based resx files could help but the difficulty I am thinking of is:
Upvotes: 3
Views: 1192
Reputation: 1715
So well I have a solution working ! (based on the post from Afana), code change should be very less (create xml files, run ResourceBuilder.exe).
What I did customize is just little:
ResourceBuilder
to generate all keys in a partial classXmlResourceProvider
for individual customer or accepts default xml resourceUpvotes: 2