How to get a neutral language resource when there are several resource files for different languages?

I have several resource files to support different languages. The user receives resources in their preferred language. An additional journal is kept in the application journal, to which I would like to register using only neutral language (English).

I do not need a dedicated resource file for messages in English only. The same messages that are shown to end users in their language must be additionally recorded in English in the application log file.

What would be the best approach to this?

+4
source share
1 answer

Try

string res = Resources.ResourceManager.GetString("...", CultureInfo.InvariantCulture); 
+4
source

Source: https://habr.com/ru/post/1343952/


All Articles