Table of Contents

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

string

ToGoogleLocaleCode(SystemLanguage)

public static string ToGoogleLocaleCode(this SystemLanguage language)

Parameters

language SystemLanguage

Returns

string

ToIETFTag(Locale)

public static string ToIETFTag(this Locale locale)

Parameters

locale Locale

Returns

string

ToIETFTag(SystemLanguage)

IETF Language Tags (e.g., en-US, ja-JP)

public static string ToIETFTag(this SystemLanguage locale)

Parameters

locale SystemLanguage

Returns

string

ToISOCode(Locale)

public static string ToISOCode(this Locale locale)

Parameters

locale Locale

Returns

string

ToISOCode(SystemLanguage)

ISO-639-1 Language Codes (e.g., EN, JP)

public static string ToISOCode(this SystemLanguage locale)

Parameters

locale SystemLanguage

Returns

string

ToInspectorName(SystemLanguage)

public static string ToInspectorName(this SystemLanguage language)

Parameters

language SystemLanguage

Returns

string

ToLocales(List<SystemLanguage>)

public static List<Locale> ToLocales(this List<SystemLanguage> languages)

Parameters

languages List<SystemLanguage>

Returns

List<Locale>

TryParse(string, out Locale)

public static bool TryParse(string smartString, out Locale locale)

Parameters

smartString string
locale Locale

Returns

bool