Table of Contents

Class LocaleHelper

Namespace
SunamoShared.Helpers
Assembly
SunamoShared.dll

Provides helper methods for locale and culture operations.

public class LocaleHelper
Inheritance
LocaleHelper
Inherited Members
Extension Methods

Methods

GetCountryForLang(string)

Gets the country code for a given language code. Note: not reliable because for "en" it returns "AG". Use GetCountryForLang2 instead.

public static string GetCountryForLang(string lang)

Parameters

lang string

Two-letter language code.

Returns

string

Init()

Initializes the locale helper by iterating available cultures.

public static void Init()