Interface ILocaleHelper
- Namespace
- SunamoLang.Interfaces
- Assembly
- SunamoLang.dll
Provides locale conversion operations between language and country codes.
public interface ILocaleHelper
- Extension Methods
Methods
GetCountryForLang2(string)
Gets the country code for the specified language.
string GetCountryForLang2(string lang)
Parameters
langstringThe language code.
Returns
- string
The country code corresponding to the language.
GetLangForCountry2(string)
Gets the language code for the specified country.
string? GetLangForCountry2(string country)
Parameters
countrystringThe country code.
Returns
- string
The language code corresponding to the country.