I created a new C # class library project that will contain resource files for all translations. The examples I saw have a flat structure with one giant resource file for each such language:
- Messages.resx
- Messages.fr-FR.resx
But for this particular project, it is preferable to split the resource files into logical groups:
- SystemMessages.resx
- UserMessages.resx
- SystemMessages.fr-FR.resx
- UserMessages.fr-FR.resx
This will be messy when we add more resource files and more translations, so it would be more manageable to have subfolders for each language, for example.
- en-GB \ SystemMessages.resx
- en-GB \ UserMessages.resx
- FR-FR \ SystemMessages.fr-FR.resx
- FR-FR \ UserMessages.fr-FR.resx
, . Translations.en-GB.SystemMessages.MyString, , en-GB , fr-FR.
?