Class LocaleUtils
- Namespace
- Glitch9
public static class LocaleUtils
- Inheritance
-
LocaleUtils
- Inherited Members
Methods
ParseGoogleLocaleCode(string)
public static SystemLanguage ParseGoogleLocaleCode(string language)
Parameters
language
string
Returns
- SystemLanguage
ParseIETFTag(string)
IETF Language Tags (e.g., en-US, ja-JP)
public static SystemLanguage ParseIETFTag(string localeCode)
Parameters
localeCode
string
Returns
- SystemLanguage
ParseISOCode(string)
public static SystemLanguage ParseISOCode(string localeCode)
Parameters
localeCode
string
Returns
- SystemLanguage
ToGoogleLocaleCode(Locale)
public static string ToGoogleLocaleCode(this Locale locale)
Parameters
locale
Locale
Returns
ToGoogleLocaleCode(SystemLanguage)
public static string ToGoogleLocaleCode(this SystemLanguage language)
Parameters
language
SystemLanguage
Returns
ToIETFTag(Locale)
public static string ToIETFTag(this Locale locale)
Parameters
locale
Locale
Returns
ToIETFTag(SystemLanguage)
IETF Language Tags (e.g., en-US, ja-JP)
public static string ToIETFTag(this SystemLanguage locale)
Parameters
locale
SystemLanguage
Returns
ToISOCode(Locale)
public static string ToISOCode(this Locale locale)
Parameters
locale
Locale
Returns
ToISOCode(SystemLanguage)
ISO-639-1 Language Codes (e.g., EN, JP)
public static string ToISOCode(this SystemLanguage locale)
Parameters
locale
SystemLanguage
Returns
ToInspectorName(SystemLanguage)
public static string ToInspectorName(this SystemLanguage language)
Parameters
language
SystemLanguage
Returns
ToLocales(List<SystemLanguage>)
public static List<Locale> ToLocales(this List<SystemLanguage> languages)
Parameters
languages
List<SystemLanguage>
Returns
TryParse(string, out Locale)
public static bool TryParse(string smartString, out Locale locale)