Salesforce LocaleSidKey Values
Posted: 2020-09-17
Last Updated: 2024-01-26
This is a complete nothing-post, I'm merely putting it here because I was searching for the list of values online (to save writing the code at the bottom of the post, laziness eh?) and couldn't find them, so here they are, correct at the time of writing as of 26th March, 2024. Now presented as two lists, one with just the values, one with the pairs, or you can download a .csv file.
Labels & Values
Afrikaans (South Africa), af_ZA
Albanian (Albania), sq_AL
Amharic (Ethiopia), am_ET
Arabic (Algeria), ar_DZ
Arabic (Bahrain), ar_BH
Arabic (Egypt), ar_EG
Arabic (Iraq), ar_IQ
Arabic (Jordan), ar_JO
Arabic (Kuwait), ar_KW
Arabic (Lebanon), ar_LB
Arabic (Libya), ar_LY
Arabic (Morocco), ar_MA
Arabic (Oman), ar_OM
Arabic (Qatar), ar_QA
Arabic (Saudi Arabia), ar_SA
Arabic (Tunisia), ar_TN
Arabic (United Arab Emirates), ar_AE
Arabic (Yemen), ar_YE
Armenian (Armenia), hy_AM
Azerbaijani (Azerbaijan), az_AZ
Bangla (Bangladesh), bn_BD
Bangla (India), bn_IN
Basque (Spain), eu_ES
Belarusian (Belarus), be_BY
Bosnian (Bosnia & Herzegovina), bs_BA
Bulgarian (Bulgaria), bg_BG
Burmese (Myanmar [Burma]), my_MM
Catalan (Spain), ca_ES
Chinese (China, Pinyin Ordering), zh_CN_PINYIN
Chinese (China, Stroke Ordering), zh_CN_STROKE
Chinese (China), zh_CN
Chinese (Hong Kong SAR China, Stroke Ordering), zh_HK_STROKE
Chinese (Hong Kong SAR China), zh_HK
Chinese (Macao SAR China), zh_MO
Chinese (Malaysia), zh_MY
Chinese (Singapore), zh_SG
Chinese (Taiwan, Stroke Ordering), zh_TW_STROKE
Chinese (Taiwan), zh_TW
Croatian (Croatia), hr_HR
Czech (Czechia), cs_CZ
Danish (Denmark), da_DK
Dutch (Aruba), nl_AW
Dutch (Belgium), nl_BE
Dutch (Netherlands), nl_NL
Dutch (Suriname), nl_SR
Dzongkha (Bhutan), dz_BT
English (Antigua & Barbuda), en_AG
English (Australia), en_AU
English (Bahamas), en_BS
English (Barbados), en_BB
English (Belgium), en_BE
English (Belize), en_BZ
English (Bermuda), en_BM
English (Botswana), en_BW
English (Cameroon), en_CM
English (Canada), en_CA
English (Cayman Islands), en_KY
English (Cyprus), en_CY
English (Eritrea), en_ER
English (Eswatini), en_SZ
English (Falkland Islands), en_FK
English (Fiji), en_FJ
English (Gambia), en_GM
English (Germany), en_DE
English (Ghana), en_GH
English (Gibraltar), en_GI
English (Guyana), en_GY
English (Hong Kong SAR China), en_HK
English (India), en_IN
English (Indonesia), en_ID
English (Ireland), en_IE
English (Israel), en_IL
English (Italy), en_IT
English (Jamaica), en_JM
English (Kenya), en_KE
English (Liberia), en_LR
English (Madagascar), en_MG
English (Malawi), en_MW
English (Malaysia), en_MY
English (Malta), en_MT
English (Mauritius), en_MU
English (Namibia), en_NA
English (Netherlands), en_NL
English (New Zealand), en_NZ
English (Nigeria), en_NG
English (Pakistan), en_PK
English (Papua New Guinea), en_PG
English (Philippines), en_PH
English (Rwanda), en_RW
English (Samoa), en_WS
English (Seychelles), en_SC
English (Sierra Leone), en_SL
English (Singapore), en_SG
English (Sint Maarten), en_SX
English (Solomon Islands), en_SB
English (South Africa), en_ZA
English (St. Helena), en_SH
English (Tanzania), en_TZ
English (Tonga), en_TO
English (Trinidad & Tobago), en_TT
English (Uganda), en_UG
English (United Arab Emirates), en_AE
English (United Kingdom), en_GB
English (United States), en_US
English (Vanuatu), en_VU
Estonian (Estonia), et_EE
Finnish (Finland), fi_FI
French (Belgium), fr_BE
French (Canada), fr_CA
French (Comoros), fr_KM
French (France), fr_FR
French (Guinea), fr_GN
French (Haiti), fr_HT
French (Luxembourg), fr_LU
French (Mauritania), fr_MR
French (Monaco), fr_MC
French (Morocco), fr_MA
French (Switzerland), fr_CH
French (Wallis & Futuna), fr_WF
Georgian (Georgia), ka_GE
German (Austria), de_AT
German (Belgium), de_BE
German (Germany), de_DE
German (Luxembourg), de_LU
German (Switzerland), de_CH
Greek (Cyprus), el_CY
Greek (Greece), el_GR
Gujarati (India), gu_IN
Haitian Creole (Haiti), ht_HT
Haitian Creole (United States), ht_US
Hawaiian (United States), haw_US
Hebrew (Israel), iw_IL
Hindi (India), hi_IN
Hmong (United States), hmn_US
Hungarian (Hungary), hu_HU
Icelandic (Iceland), is_IS
Indonesian (Indonesia), in_ID
Irish (Ireland), ga_IE
Italian (Italy), it_IT
Italian (Switzerland), it_CH
Japanese (Japan), ja_JP
Kalaallisut (Greenland), kl_GL
Kannada (India), kn_IN
Kazakh (Kazakhstan), kk_KZ
Khmer (Cambodia), km_KH
Korean (South Korea), ko_KR
Kyrgyz (Kyrgyzstan), ky_KG
Lao (Laos), lo_LA
Latvian (Latvia), lv_LV
Lithuanian (Lithuania), lt_LT
Luba-Katanga (Congo - Kinshasa), lu_CD
Luxembourgish (Luxembourg), lb_LU
Macedonian (North Macedonia), mk_MK
Malay (Brunei), ms_BN
Malay (Malaysia), ms_MY
Malayalam (India), ml_IN
Maltese (Malta), mt_MT
Marathi (India), mr_IN
Montenegrin (Montenegro), sh_ME
Nepali (Nepal), ne_NP
Norwegian (Norway), no_NO
Pashto (Afghanistan), ps_AF
Polish (Poland), pl_PL
Portuguese (Angola), pt_AO
Portuguese (Brazil), pt_BR
Portuguese (Cape Verde), pt_CV
Portuguese (Mozambique), pt_MZ
Portuguese (Portugal), pt_PT
Portuguese (São Tomé & Príncipe), pt_ST
Punjabi (India), pa_IN
Romanian (Moldova), ro_MD
Romanian (Romania), ro_RO
Romansh (Switzerland), rm_CH
Rundi (Burundi), rn_BI
Russian (Armenia), ru_AM
Russian (Belarus), ru_BY
Russian (Kazakhstan), ru_KZ
Russian (Kyrgyzstan), ru_KG
Russian (Lithuania), ru_LT
Russian (Moldova), ru_MD
Russian (Poland), ru_PL
Russian (Russia), ru_RU
Russian (Ukraine), ru_UA
Samoan (Samoa), sm_WS
Samoan (United States), sm_US
Serbian (Cyrillic) (Bosnia and Herzegovina), sr_BA
Serbian (Cyrillic) (Serbia), sr_CS
Serbian (Latin) (Bosnia and Herzegovina), sh_BA
Serbian (Latin) (Serbia), sh_CS
Serbian (Serbia), sr_RS
Slovak (Slovakia), sk_SK
Slovenian (Slovenia), sl_SI
Somali (Djibouti), so_DJ
Somali (Somalia), so_SO
Spanish (Argentina), es_AR
Spanish (Bolivia), es_BO
Spanish (Chile), es_CL
Spanish (Colombia), es_CO
Spanish (Costa Rica), es_CR
Spanish (Dominican Republic), es_DO
Spanish (Ecuador), es_EC
Spanish (El Salvador), es_SV
Spanish (Guatemala), es_GT
Spanish (Honduras), es_HN
Spanish (Mexico), es_MX
Spanish (Nicaragua), es_NI
Spanish (Panama), es_PA
Spanish (Paraguay), es_PY
Spanish (Peru), es_PE
Spanish (Puerto Rico), es_PR
Spanish (Spain), es_ES
Spanish (United States), es_US
Spanish (Uruguay), es_UY
Spanish (Venezuela), es_VE
Swahili (Kenya), sw_KE
Swedish (Sweden), sv_SE
Tagalog (Philippines), tl_PH
Tajik (Tajikistan), tg_TJ
Tamil (India), ta_IN
Tamil (Sri Lanka), ta_LK
Telugu (India), te_IN
Te reo (New Zealand), mi_NZ
Thai (Thailand), th_TH
Tigrinya (Ethiopia), ti_ET
Turkish (Türkiye), tr_TR
Ukrainian (Ukraine), uk_UA
Urdu (Pakistan), ur_PK
Uzbek (Latin, Uzbekistan), uz_LATN_UZ
Vietnamese (Vietnam), vi_VN
Welsh (United Kingdom), cy_GB
Xhosa (South Africa), xh_ZA
Yiddish (United States), ji_US
Yoruba (Benin), yo_BJ
Zulu (South Africa), zu_ZA
Values Only
af_ZA
am_ET
ar_AE
ar_BH
ar_DZ
ar_EG
ar_IQ
ar_JO
ar_KW
ar_LB
ar_LY
ar_MA
ar_OM
ar_QA
ar_SA
ar_TN
ar_YE
az_AZ
be_BY
bg_BG
bn_BD
bn_IN
bs_BA
ca_ES
cs_CZ
cy_GB
da_DK
de_AT
de_BE
de_CH
de_DE
de_LU
dz_BT
el_CY
el_GR
en_AE
en_AG
en_AU
en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ZA
yo_BJ
zh_CN
zh_CN_PINYIN
zh_CN_STROKE
zh_HK
zh_HK_STROKE
zh_MO
zh_MY
zh_SG
zh_TW
zh_TW_STROKE
zu_ZA
Code
List<String> pairs = new List<String>();
List<String> values = new List<String>();
Schema.SObjectField f = Schema.getGlobalDescribe()
.get('User')
.getDescribe()
.Fields.getMap()
.get('LocaleSidKey');
for (Schema.PicklistEntry picklistEntry : f.getDescribe().getPicklistValues())
{
pairs.add(picklistEntry.getLabel() + ', ' + picklistEntry.getValue());
values.add(picklistEntry.getValue());
}
values.sort();
for(String s : values)
{
System.Debug(s);
}
for(String s : pairs)
{
System.Debug(s);
}