Search code examples
c#stringinternationalizationresx

Where to store strings in code, not related to forms, for I18N!


We have a relatively large dotNet application and are wondering where is the best place to store strings in our code that aren't related to forms? We don't want to have tens of un-collapse resx file being displayed in our application's solution explorer window. Any advice would be appreciated.


Solution

  • Typically people tend to create simple source directories for resx files.
    One can create LocalizableResources folder and place all translatable resx files there, as well as NonLocalizableResources for non-translatable resx files (if you use them; in sufficiently large project chances are high that you do).