Module typeables::locale_country_code
source · [−]Expand description
Locale Country Code
Examples:
let x = LocaleCountryCodeAsStructStr("US"); // United States
let x = LocaleCountryCodeAsStructStr("CN"); // China
let x = LocaleCountryCodeAsStructStr("IN"); // India
let x = LocaleCountryCodeAsStructStr("ES"); // Spain
let x = LocaleCountryCodeAsStructStr("EG"); // Egypt
let x = LocaleCountryCodeAsStructStr("ID"); // Indonesia
A locale typically uses a language code and country code:
- “en-US” means English - United States.
- “zh-CN” means Chinese - China (Simplified variant)
- “hi-IN” means Hindi - India
- “es-ES” means Spanish - Spain
- “ar-EG” means Arabic - Egypt
- “ms-ID” means Malay - Indonesia
Locale concepts: