Class CultureUtil
Contains helper methods for handling locales and languages.
Namespace: NoSuchStudio.Localization
Assembly: NoSuchStudio-Localization.dll
Syntax
public static class CultureUtil
Methods
PrintAllCultures()
Declaration
public static void PrintAllCultures()
SystemCultureInfo()
Get system's active culture info.
Declaration
public static CultureInfo SystemCultureInfo()
Returns
| Type | Description |
|---|---|
| CultureInfo | system's active culture info. |
SystemLanguage()
Get the english name of the current system culture info.
Declaration
public static string SystemLanguage()
Returns
| Type | Description |
|---|---|
| String | the english name of the current system culture info. |
ToStringExt(CultureInfo)
Declaration
public static string ToStringExt(this CultureInfo cultureInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | cultureInfo |
Returns
| Type | Description |
|---|---|
| String |