Get current language in CultureInfo

后端 未结 6 1209
说谎
说谎 2020-12-05 17:20

How to identify the operating system\'s language using CultureInfo? E.g. if the language in Windows is set to French, I need to identify French and load the

6条回答
  •  无人及你
    2020-12-05 17:21

    I think something like this would give you the current CultureInfo:

    CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
    

    Is that what you're looking for?

提交回复
热议问题