Java Locale Class

Introduction

The Locale class in Java is a part of the java.util package.

It represents a specific geographical, political, or cultural region. 

It is used to tailor the behavior of locale-sensitive operations such as formatting dates, numbers, and currencies.

Table of Contents

  1. What is the Locale Class?
  2. Common Methods
  3. Examples of Using the Locale Class
  4. Conclusion

1. What is the Locale Class?

The Locale class provides information about a specific locale, including the language, country, and variant. It is essential for internationalization (i18n) and localization (l10n) in Java applications.

2. Common Methods

  • Locale(String language): Constructs a locale with the specified language.
  • Locale(String language, String country): Constructs a locale with the specified language and country.
  • Locale(String language, String country, String variant): Constructs a locale with the specified language, country, and variant.
  • getLanguage(): Returns the language code of this locale.
  • getCountry(): Returns the country code of this locale.
  • getDisplayName(): Returns a name for the locale that is appropriate for display to the user.
  • getDisplayLanguage(): Returns the name of the locale's language suitable for display to the user.
  • getDisplayCountry(): Returns the name of the locale's country suitable for display to the user.
  • getDefault(): Returns the default locale for this instance of the Java Virtual Machine.
  • setDefault(Locale newLocale): Sets the default locale for this instance of the Java Virtual Machine.

3. Examples of Using the Locale Class

Example 1: Creating a Locale

This example demonstrates how to create a Locale object with a specific language.

import java.util.Locale;

public class CreateLocaleExample {
    public static void main(String[] args) {
        Locale locale = new Locale("en");
        System.out.println("Language: " + locale.getLanguage());
    }
}

Output:

Language: en

Example 2: Creating a Locale with Language and Country

This example shows how to create a Locale object with both language and country.

import java.util.Locale;

public class CreateLocaleWithCountryExample {
    public static void main(String[] args) {
        Locale locale = new Locale("en", "US");
        System.out.println("Language: " + locale.getLanguage());
        System.out.println("Country: " + locale.getCountry());
    }
}

Output:

Language: en
Country: US

Example 3: Displaying Locale Information

This example demonstrates how to display various locale information.

import java.util.Locale;

public class DisplayLocaleInfoExample {
    public static void main(String[] args) {
        Locale locale = new Locale("fr", "FR");
        System.out.println("Locale: " + locale.getDisplayName());
        System.out.println("Language: " + locale.getDisplayLanguage());
        System.out.println("Country: " + locale.getDisplayCountry());
    }
}

Output:

Locale: French (France)
Language: French
Country: France

Example 4: Getting the Default Locale

This example shows how to get the default locale of the Java Virtual Machine.

import java.util.Locale;

public class DefaultLocaleExample {
    public static void main(String[] args) {
        Locale defaultLocale = Locale.getDefault();
        System.out.println("Default Locale: " + defaultLocale.getDisplayName());
    }
}

Output:

Default Locale: English (India)

Example 5: Setting the Default Locale

This example demonstrates how to set the default locale of the Java Virtual Machine.

import java.util.Locale;

public class SetDefaultLocaleExample {
    public static void main(String[] args) {
        Locale newLocale = new Locale("es", "ES");
        Locale.setDefault(newLocale);
        Locale defaultLocale = Locale.getDefault();
        System.out.println("New Default Locale: " + defaultLocale.getDisplayName());
    }
}

Output:

New Default Locale: espa?ol (Espa?a)

Example 6: Using Locale with Date Formatting

This example shows how to use a Locale with date formatting.

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

public class LocaleDateFormatExample {
    public static void main(String[] args) {
        Date date = new Date();
        Locale locale = new Locale("de", "DE");
        DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale);
        System.out.println("Formatted Date: " + dateFormat.format(date));
    }
}

Output:

Formatted Date: 1. Juli 2024

Example 7: Using Locale with Number Formatting

This example demonstrates how to use a Locale with number formatting.

import java.text.NumberFormat;
import java.util.Locale;

public class LocaleNumberFormatExample {
    public static void main(String[] args) {
        double number = 12345.678;
        Locale locale = new Locale("fr", "FR");
        NumberFormat numberFormat = NumberFormat.getInstance(locale);
        System.out.println("Formatted Number: " + numberFormat.format(number));
    }
}

Output:

Formatted Number: 12?345,678

Example 8: Using Locale with Currency Formatting

This example shows how to use a Locale with currency formatting.

import java.text.NumberFormat;
import java.util.Locale;

public class LocaleCurrencyFormatExample {
    public static void main(String[] args) {
        double amount = 12345.678;
        Locale locale = new Locale("ja", "JP");
        NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(locale);
        System.out.println("Formatted Currency: " + currencyFormat.format(amount));
    }
}

Output:

Formatted Currency: ?12,346

Example 9: Listing All Available Locales

This example demonstrates how to list all available locales.

import java.util.Locale;

public class ListAvailableLocalesExample {
    public static void main(String[] args) {
        Locale[] locales = Locale.getAvailableLocales();
        for (Locale locale : locales) {
            System.out.println(locale.getDisplayName() + " (" + locale.getLanguage() + "_" + locale.getCountry() + ")");
        }
    }
}

Output:

(_)
Hebrew (he_)
Thai (Thai, Thailand) (th_TH)
Low German (nds_)
Turkmen (Latin, Turkmenistan) (tk_TM)
Tigrinya (Ethiopia) (ti_ET)
Tamil (Singapore) (ta_SG)
Latvian (lv_)
English (Niue) (en_NU)
Chinese (Simplified, Singapore) (zh_SG)
Fula (Adlam, Liberia) (ff_LR)
English (Jamaica) (en_JM)
Kako (kkj_)
Northern Sami (Latin, Norway) (se_NO)
Sindhi (Arabic) (sd_)
Spanish (Bolivia) (es_BO)
Obolo (Nigeria) (ann_NG)
Dzongkha (Bhutan) (dz_BT)
Manipuri (mni_)
Yiddish (yi_)
Lower Sorbian (Germany) (dsb_DE)
Bosnian (Bosnia & Herzegovina) (bs_BA)
Luxembourgish (Latin, Luxembourg) (lb_LU)
English (Liberia) (en_LR)
Arabic (Chad) (ar_TD)
Czech (cs_)
Greek (el_)
Nuer (Latin, South Sudan) (nus_SS)
Afrikaans (af_)
Fula (Latin, Mauritania) (ff_MR)
Swahili (Uganda) (sw_UG)
Inari Sami (smn_)
Turkmen (Turkmenistan) (tk_TM)
Serbian (Cyrillic, Montenegro) (sr_ME)
Arabic (Egypt) (ar_EG)
Lower Sorbian (dsb_)
Ossetic (Cyrillic, Georgia) (os_GE)
Yoruba (Nigeria) (yo_NG)
Northern Sami (Norway) (se_NO)
Koyra Chiini (khq_)
English (Palau) (en_PW)
Polish (Poland) (pl_PL)
Serbian (Serbia and Montenegro) (sr_CS)
Nepali (India) (ne_IN)
Aghem (Latin, Cameroon) (agq_CM)
Moksha (mdf_)
Arabic (Western Sahara) (ar_EH)
Bosnian (Latin, Bosnia & Herzegovina) (bs_BA)
Low German (Germany) (nds_DE)
Rajasthani (Devanagari, India) (raj_IN)
Norwegian Bokm?l (Svalbard & Jan Mayen) (nb_SJ)
Spanish (United States) (es_US)
Sanskrit (sa_)
English (United States, Computer) (en_US)
Portuguese (Macao SAR China) (pt_MO)
Chinese (Simplified) (zh_)
Luxembourgish (Luxembourg) (lb_LU)
Lower Sorbian (Latin, Germany) (dsb_DE)
Icelandic (Latin, Iceland) (is_IS)
Somali (Kenya) (so_KE)
Zarma (Niger) (dje_NE)
Armenian (Armenian, Armenia) (hy_AM)
Fula (Latin, Ghana) (ff_GH)
French (St Pierre & Miquelon) (fr_PM)
Arabic (Comoros) (ar_KM)
Norwegian (Norway, Nynorsk) (no_NO)
Polish (Latin, Poland) (pl_PL)
Aghem (Cameroon) (agq_CM)
Toki Pona (tok_)
Gujarati (Gujarati, India) (gu_IN)
Teso (teo_)
Turkish (T?rkiye) (tr_TR)
Basque (eu_)
Kalaallisut (Latin, Greenland) (kl_GL)
Arabic (Mauritania) (ar_MR)
Spanish (Dominican Republic) (es_DO)
Russian (ru_)
Azerbaijani (az_)
Sundanese (Latin) (su_)
Persian (fa_)
Nheengatu (Brazil) (yrl_BR)
Kalaallisut (Greenland) (kl_GL)
English (Nauru) (en_NR)
North Ndebele (nd_)
Kazakh (kk_)
Low German (Latin, Germany) (nds_DE)
Kinyarwanda (Latin, Rwanda) (rw_RW)
Armenian (hy_)
English (Australia) (en_AU)
English (Cyprus) (en_CY)
Turkish (Latin, T?rkiye) (tr_TR)
Chuvash (Cyrillic, Russia) (cv_RU)
Tigrinya (Eritrea) (ti_ER)
Nuer (South Sudan) (nus_SS)
English (Rwanda) (en_RW)
Shambala (ksb_)
Luxembourgish (lb_)
Luo (luo_)
Sundanese (su_)
Croatian (Latin, Croatia) (hr_HR)
Lingala (Congo - Kinshasa) (ln_CD)
Ngiemboon (Cameroon) (nnh_CM)
Norwegian (no_)
Zarma (Latin, Niger) (dje_NE)
Arabic (Israel) (ar_IL)
Makhuwa-Meetto (mgh_)
Haryanvi (India) (bgc_IN)
Odia (India) (or_IN)
Haryanvi (Devanagari, India) (bgc_IN)
Occitan (Spain) (oc_ES)
Pashto (Arabic, Afghanistan) (ps_AF)
Tamil (ta_)
Azerbaijani (Latin) (az_)
Langi (lag_)
Arabic (Syria) (ar_SY)
Luo (Latin, Kenya) (luo_KE)
Bafia (Cameroon) (ksf_CM)
Tibetan (bo_)
Tatar (Russia) (tt_RU)
Oromo (Kenya) (om_KE)
English (American Samoa) (en_AS)
French (Vanuatu) (fr_VU)
Chinese (Taiwan) (zh_TW)
Kalenjin (kln_)
Sindhi (India) (sd_IN)
Ngiemboon (Latin, Cameroon) (nnh_CM)
Maithili (mai_)
French (Niger) (fr_NE)
Portuguese (Mozambique) (pt_MZ)
Friulian (Latin, Italy) (fur_IT)
Bena (Latin, Tanzania) (bez_TZ)
Asturian (Latin, Spain) (ast_ES)
Shambala (Tanzania) (ksb_TZ)
Burmese (Myanmar, Myanmar (Burma)) (my_MM)
English (Jersey) (en_JE)
Uzbek (Afghanistan) (uz_AF)
Lingala (Central African Republic) (ln_CF)
Danish (Latin, Denmark) (da_DK)
English (Christmas Island) (en_CX)
Akan (Latin, Ghana) (ak_GH)
English (Austria) (en_AT)
Galician (gl_)
Serbian (Cyrillic) (sr_)
Cantonese (Simplified, China) (yue_CN)
Nheengatu (Venezuela) (yrl_VE)
Kannada (India) (kn_IN)
Fula (Adlam) (ff_)
Irish (ga_)
Sardinian (sc_)
Quechua (qu_)
English (Tanzania) (en_TZ)
Belarusian (Taraskievica orthography) (be_)
English (Puerto Rico) (en_PR)
Mundang (mua_)
Javanese (jv_)
Shona (sn_)
Pashto (ps_)
Khmer (km_)
Standard Moroccan Tamazight (zgh_)
French (New Caledonia) (fr_NC)
Spanish (es_)
Ngomba (jgo_)
Scottish Gaelic (United Kingdom) (gd_GB)
French (Cameroon) (fr_CM)
Swiss German (gsw_)
Walser (Latin, Switzerland) (wae_CH)
Urdu (Arabic, Pakistan) (ur_PK)
Punjabi (Gurmukhi, India) (pa_IN)
Nigerian Pidgin (Latin, Nigeria) (pcm_NG)
Teso (Uganda) (teo_UG)
Cebuano (ceb_)
Norwegian (Latin, Norway) (no_NO)
Bengali (Bengali, Bangladesh) (bn_BD)
Inari Sami (Latin, Finland) (smn_FI)
English (Netherlands) (en_NL)
Nepali (Devanagari, Nepal) (ne_NP)
Lingala (Congo - Brazzaville) (ln_CG)
Telugu (te_)
Azerbaijani (Azerbaijan) (az_AZ)
Slovenian (sl_)
Greek (Cyprus) (el_CY)
Marathi (India) (mr_IN)
Hausa (ha_)
Kurdish (T?rkiye) (ku_TR)
Gusii (Latin, Kenya) (guz_KE)
Northern Luri (Iran) (lrc_IR)
Swiss German (France) (gsw_FR)
Spanish (Honduras) (es_HN)
Hungarian (Hungary) (hu_HU)
Fula (Senegal) (ff_SN)
Sangu (sbp_)
Albanian (North Macedonia) (sq_MK)
Bulgarian (Cyrillic, Bulgaria) (bg_BG)
Serbian (Cyrillic, Bosnia & Herzegovina) (sr_BA)
Rajasthani (India) (raj_IN)
Somali (Latin, Somalia) (so_SO)
Estonian (Estonia) (et_EE)
Swahili (sw_)
Western Frisian (Netherlands) (fy_NL)
Arabic (Oman) (ar_OM)
Turkish (Cyprus) (tr_CY)
Kwasio (nmg_)
Latvian (Latin, Latvia) (lv_LV)
Uzbek (Latin, Uzbekistan) (uz_UZ)
Duala (Cameroon) (dua_CM)
Northern Luri (Iraq) (lrc_IQ)
German (Italy) (de_IT)
Vai (Vai) (vai_)
Portuguese (Latin, Brazil) (pt_BR)
French (Tunisia) (fr_TN)
Serbian (Serbia) (sr_RS)
German (Switzerland) (de_CH)
Swahili (Latin, Tanzania) (sw_TZ)
French (French Polynesia) (fr_PF)
Portuguese (Equatorial Guinea) (pt_GQ)
Gujarati (gu_)
Vunjo (Tanzania) (vun_TZ)
Machame (Tanzania) (jmc_TZ)
Malagasy (Latin, Madagascar) (mg_MG)
English (Tuvalu) (en_TV)
Lao (lo_)
English (Pitcairn Islands) (en_PN)
Moksha (Russia) (mdf_RU)
Luba-Katanga (Latin, Congo - Kinshasa) (lu_CD)
Chinese (Simplified, Hong Kong SAR China) (zh_HK)
Dutch (Netherlands) (nl_NL)
English (Guyana) (en_GY)
Bosnian (Latin) (bs_)
Jola-Fonyi (Senegal) (dyo_SN)
Ossetic (os_)
Dutch (Cura?ao) (nl_CW)
Arabic (Algeria) (ar_DZ)
Portuguese (Switzerland) (pt_CH)
French (Equatorial Guinea) (fr_GQ)
French (C?te d?Ivoire) (fr_CI)
Kikuyu (Kenya) (ki_KE)
English (Nigeria) (en_NG)
Amharic (am_)
Interlingua (world) (ia_001)
English (Pakistan) (en_PK)
Chinese (China) (zh_CN)
English (St Lucia) (en_LC)
Kinyarwanda (rw_)
Bodo (India) (brx_IN)
Fula (Adlam, Burkina Faso) (ff_BF)
Manx (Isle of Man) (gv_IM)
Bambara (Latin, Mali) (bm_ML)
Cornish (Latin, United Kingdom) (kw_GB)
Obolo (Latin, Nigeria) (ann_NG)
Yangben (Latin, Cameroon) (yav_CM)
Macedonian (North Macedonia) (mk_MK)
English (Trinidad & Tobago) (en_TT)
Taita (dav_)
Slovenian (Slovenia) (sl_SI)
Sango (Latin, Central African Republic) (sg_CF)
Koyraboro Senni (ses_)
Xhosa (South Africa) (xh_ZA)
Finnish (Latin, Finland) (fi_FI)
French (Belgium) (fr_BE)
Ngomba (Cameroon) (jgo_CM)
Fula (Adlam, Niger) (ff_NE)
Spanish (Venezuela) (es_VE)
Marathi (mr_)
Malagasy (mg_)
Meru (Kenya) (mer_KE)
English (Bermuda) (en_BM)
Norwegian Bokm?l (Norway) (nb_NO)
Sena (seh_)
Kabuverdianu (Cape Verde) (kea_CV)
Meta? (mgo_)
Kaingang (Latin, Brazil) (kgp_BR)
Vietnamese (Vietnam) (vi_VN)
English (United States) (en_US)
Morisyen (Mauritius) (mfe_MU)
French (Burkina Faso) (fr_BF)
Punjabi (Gurmukhi) (pa_)
Italian (San Marino) (it_SM)
Persian (Arabic, Iran) (fa_IR)
Sanskrit (Devanagari, India) (sa_IN)
French (Mayotte) (fr_YT)
Gujarati (India) (gu_IN)
Fula (Latin, Cameroon) (ff_CM)
Asturian (ast_)
Maltese (Latin, Malta) (mt_MT)
Finnish (Finland) (fi_FI)
Cantonese (Simplified) (yue_)
Catalan (France) (ca_FR)
Serbian (Latin, Bosnia & Herzegovina) (sr_BA)
Chakma (Chakma, Bangladesh) (ccp_BD)
Ukrainian (Cyrillic, Ukraine) (uk_UA)
French (Djibouti) (fr_DJ)
Kashmiri (Arabic) (ks_)
Fula (Adlam, Guinea-Bissau) (ff_GW)
Hausa (Ghana) (ha_GH)
Yiddish (Hebrew, world) (yi_001)
Afrikaans (Latin, South Africa) (af_ZA)
Tigrinya (Ethiopic, Ethiopia) (ti_ET)
Tongan (Latin, Tonga) (to_TO)
German (Belgium) (de_BE)
Amharic (Ethiopic, Ethiopia) (am_ET)
Fula (Latin, Guinea-Bissau) (ff_GW)
Mundang (Latin, Cameroon) (mua_CM)
Chinese (Macao SAR China) (zh_MO)
Chiga (cgg_)
Nyankole (Uganda) (nyn_UG)
Malay (Malaysia) (ms_MY)
Tamil (Sri Lanka) (ta_LK)
Rundi (Latin, Burundi) (rn_BI)
Bafia (ksf_)
Welsh (cy_)
German (Latin, Germany) (de_DE)
Cebuano (Philippines) (ceb_PH)
Albanian (sq_)
French (fr_)
Tajik (Tajikistan) (tg_TJ)
Vunjo (Latin, Tanzania) (vun_TZ)
Quechua (Peru) (qu_PE)
German (de_)
Spanish (Ecuador) (es_EC)
Macedonian (Cyrillic, North Macedonia) (mk_MK)
Ganda (Uganda) (lg_UG)
Fula (Adlam, Cameroon) (ff_CM)
Fula (Latin, Niger) (ff_NE)
Zulu (South Africa) (zu_ZA)
Skolt Sami (sms_)
French (Latin, France) (fr_FR)
Sundanese (Latin, Indonesia) (su_ID)
Chiga (Uganda) (cgg_UG)
Colognian (Germany) (ksh_DE)
Ganda (lg_)
Russian (Russia) (ru_RU)
Nigerian Pidgin (Nigeria) (pcm_NG)
English (Dominica) (en_DM)
Sindhi (sd_)
Hebrew (Hebrew, Israel) (he_IL)
Irish (Ireland) (ga_IE)
English (Burundi) (en_BI)
Cantonese (China) (yue_CN)
English (Samoa) (en_WS)
Romansh (Latin, Switzerland) (rm_CH)
French (Luxembourg) (fr_LU)
Pijin (Latin, Solomon Islands) (pis_SB)
Somali (so_)
M?ori (New Zealand) (mi_NZ)
Arabic (Eritrea) (ar_ER)
Pijin (Solomon Islands) (pis_SB)
Kabyle (kab_)
Nuer (nus_)
Shona (Zimbabwe) (sn_ZW)
Spanish (Ceuta & Melilla) (es_EA)
Irish (United Kingdom) (ga_GB)
Thai (Thailand, TH, Thai Digits) (th_TH)
Hindi (hi_)
French (Seychelles) (fr_SC)
English (Sierra Leone) (en_SL)
Fula (Latin, Nigeria) (ff_NG)
Norwegian (Norway) (no_NO)
Vai (vai_)
English (St Helena) (en_SH)
Fula (Adlam, Nigeria) (ff_NG)
Chinese (Traditional, Macao SAR China) (zh_MO)
Sindhi (Arabic, Pakistan) (sd_PK)
German (Luxembourg) (de_LU)
M?ori (mi_)
Maltese (mt_)
German (Germany) (de_DE)
Norwegian Nynorsk (Latin, Norway) (nn_NO)
English (Denmark) (en_DK)
Yangben (yav_)
Somali (Djibouti) (so_DJ)
Lithuanian (Lithuania) (lt_LT)
Kamba (kam_)
Romanian (ro_)
Esperanto (world) (eo_001)
English (US Outlying Islands) (en_UM)
Ewe (ee_)
Pashto (Pakistan) (ps_PK)
English (Slovenia) (en_SI)
Vai (Vai, Liberia) (vai_LR)
Lao (Laos) (lo_LA)
Cherokee (chr_)
Rombo (Latin, Tanzania) (rof_TZ)
Arabic (Lebanon) (ar_LB)
Dogri (doi_)
Northern Luri (Arabic, Iran) (lrc_IR)
Afrikaans (South Africa) (af_ZA)
Fula (Guinea) (ff_GN)
Kashmiri (Devanagari, India) (ks_IN)
Colognian (Latin, Germany) (ksh_DE)
Spanish (Belize) (es_BZ)
Arabic (United Arab Emirates) (ar_AE)
Esperanto (Latin, world) (eo_001)
Croatian (Croatia) (hr_HR)
Rombo (Tanzania) (rof_TZ)
Assamese (as_)
Italian (it_)
Kashmiri (India) (ks_IN)
Burmese (Myanmar (Burma)) (my_MM)
Urdu (Pakistan) (ur_PK)
Mongolian (Mongolia) (mn_MN)
Danish (Denmark) (da_DK)
English (Micronesia) (en_FM)
English (Belgium) (en_BE)
Sichuan Yi (ii_)
French (Wallis & Futuna) (fr_WF)
Mazanderani (Iran) (mzn_IR)
Nama (naq_)
English (Singapore) (en_SG)
Kalenjin (Kenya) (kln_KE)
Fula (Latin, Gambia) (ff_GM)
Central Atlas Tamazight (tzm_)
Tatar (Cyrillic, Russia) (tt_RU)
Teso (Latin, Uganda) (teo_UG)
Friulian (fur_)
Oromo (om_)
Nheengatu (Colombia) (yrl_CO)
Asu (Latin, Tanzania) (asa_TZ)
Bena (Tanzania) (bez_TZ)
Fula (Latin, Guinea) (ff_GN)
English (Sudan) (en_SD)
Slovenian (Latin, Slovenia) (sl_SI)
Maithili (Devanagari, India) (mai_IN)
Hindi (Latin) (hi_)
Japanese (Japan, JP, Japanese Calendar) (ja_JP)
Spanish (El Salvador) (es_SV)
Portuguese (Brazil) (pt_BR)
Malayalam (India) (ml_IN)
Manipuri (Bengali, India) (mni_IN)
Irish (Latin, Ireland) (ga_IE)
English (Falkland Islands) (en_FK)
Icelandic (Iceland) (is_IS)
Bhojpuri (bho_)
Basaa (Latin, Cameroon) (bas_CM)
English (Diego Garcia) (en_DG)
Croatian (hr_)
Portuguese (S?o Tom? & Pr?ncipe) (pt_ST)
Akan (Ghana) (ak_GH)
Lithuanian (lt_)
Uzbek (Arabic, Afghanistan) (uz_AF)
Chakma (ccp_)
English (Sweden) (en_SE)
Chinese (Simplified, China) (zh_CN)
Spanish (Latin America) (es_419)
Lingala (Latin, Congo - Kinshasa) (ln_CD)
Kako (Latin, Cameroon) (kkj_CM)
English (en_)
Swiss German (Liechtenstein) (gsw_LI)
Gusii (Kenya) (guz_KE)
Chakma (Bangladesh) (ccp_BD)
Spanish (Canary Islands) (es_IC)
Catalan (ca_)
Arabic (Tunisia) (ar_TN)
Bambara (Mali) (bm_ML)
Cornish (United Kingdom) (kw_GB)
Punjabi (Pakistan) (pa_PK)
Uyghur (China) (ug_CN)
Machame (Latin, Tanzania) (jmc_TZ)
Kikuyu (Latin, Kenya) (ki_KE)
Spanish (Brazil) (es_BR)
Koyra Chiini (Mali) (khq_ML)
English (Solomon Islands) (en_SB)
Tibetan (Tibetan, China) (bo_CN)
Kinyarwanda (Rwanda) (rw_RW)
Cherokee (United States) (chr_US)
Tachelhit (Tifinagh, Morocco) (shi_MA)
Arabic (Iraq) (ar_IQ)
Nyankole (nyn_)
Macedonian (mk_)
Santali (sat_)
English (Germany) (en_DE)
Punjabi (Arabic) (pa_)
Romanian (Moldova) (ro_MD)
English (Finland) (en_FI)
Bosnian (bs_)
Western Frisian (fy_)
Thai (th_)
Uzbek (Uzbekistan) (uz_UZ)
Taita (Kenya) (dav_KE)
Interlingua (Latin, world) (ia_001)
Yakut (Cyrillic, Russia) (sah_RU)
English (Seychelles) (en_SC)
English (Uganda) (en_UG)
English (New Zealand) (en_NZ)
Zarma (dje_)
Spanish (Uruguay) (es_UY)
Masai (Kenya) (mas_KE)
Manipuri (India) (mni_IN)
Russian (Ukraine) (ru_UA)
Sango (Central African Republic) (sg_CF)
English (Fiji) (en_FJ)
German (Liechtenstein) (de_LI)
English (Barbados) (en_BB)
Inari Sami (Finland) (smn_FI)
Croatian (Bosnia & Herzegovina) (hr_BA)
Yoruba (Latin, Nigeria) (yo_NG)
Moksha (Cyrillic, Russia) (mdf_RU)
German (Austria) (de_AT)
Luba-Katanga (Congo - Kinshasa) (lu_CD)
Arabic (world) (ar_001)
Somali (Somalia) (so_SO)
Latvian (Latvia) (lv_LV)
Central Kurdish (ckb_)
Arabic (Kuwait) (ar_KW)
Serbian (Cyrillic, Serbia) (sr_RS)
Bemba (bem_)
Danish (da_)
Walser (wae_)
English (Lesotho) (en_LS)
Igbo (ig_)
English (Hong Kong SAR China) (en_HK)
Bodo (Devanagari, India) (brx_IN)
Chechen (Russia) (ce_RU)
Meru (Latin, Kenya) (mer_KE)
Georgian (Georgia) (ka_GE)
Swahili (Tanzania) (sw_TZ)
French (Rwanda) (fr_RW)
Malagasy (Madagascar) (mg_MG)
English (Latin, United States) (en_US)
Serbian (Latin, Serbia) (sr_RS)
Ossetic (Russia) (os_RU)
Central Atlas Tamazight (Latin, Morocco) (tzm_MA)
Kyrgyz (Kyrgyzstan) (ky_KG)
Dutch (Latin, Netherlands) (nl_NL)
Kurdish (Latin, T?rkiye) (ku_TR)
Kikuyu (ki_)
Morisyen (Latin, Mauritius) (mfe_MU)
Norwegian Bokm?l (nb_)
Konkani (kok_)
Ewondo (ewo_)
Norwegian Nynorsk (nn_)
Arabic (Jordan) (ar_JO)
Galician (Latin, Spain) (gl_ES)
Bulgarian (bg_)
Kabuverdianu (kea_)
Kyrgyz (Cyrillic, Kyrgyzstan) (ky_KG)
Zulu (zu_)
French (Algeria) (fr_DZ)
Amharic (Ethiopia) (am_ET)
Northern Frisian (Latin, Germany) (frr_DE)
Upper Sorbian (hsb_)
Quechua (Ecuador) (qu_EC)
Tibetan (China) (bo_CN)
Georgian (Georgian, Georgia) (ka_GE)
English (Montserrat) (en_MS)
Konkani (Devanagari, India) (kok_IN)
English (Guernsey) (en_GG)
Makonde (Latin, Tanzania) (kde_TZ)
Santali (India) (sat_IN)
Swedish (Sweden) (sv_SE)
Serbian (Montenegro) (sr_ME)
Meru (mer_)
Yakut (sah_)
Nigerian Pidgin (pcm_)
English (Zambia) (en_ZM)
French (Mali) (fr_ML)
Hausa (Nigeria) (ha_NG)
Breton (br_)
Persian (Afghanistan) (fa_AF)
Occitan (France) (oc_FR)
Arabic (Saudi Arabia) (ar_SA)
Filipino (Latin, Philippines) (fil_PH)
Slovak (sk_)
Oromo (Latin, Ethiopia) (om_ET)
Ossetic (Georgia) (os_GE)
Yiddish (world) (yi_001)
Malayalam (ml_)
Central Kurdish (Arabic, Iraq) (ckb_IQ)
Northern Frisian (Germany) (frr_DE)
English (Malta) (en_MT)
English (Ghana) (en_GH)
English (Israel) (en_IL)
Swedish (sv_)
Kannada (Kannada, India) (kn_IN)
Central Atlas Tamazight (Morocco) (tzm_MA)
Toki Pona (Latin, world) (tok_001)
Greek (Greek, Greece) (el_GR)
Koyraboro Senni (Mali) (ses_ML)
Rwa (Latin, Tanzania) (rwk_TZ)
Lakota (United States) (lkt_US)
Vai (Latin, Liberia) (vai_LR)
Sindhi (Devanagari) (sd_)
Kurdish (ku_)
Swahili (Congo - Kinshasa) (sw_CD)
Fula (Adlam, Mauritania) (ff_MR)
Filipino (Philippines) (fil_PH)
Italian (Vatican City) (it_VA)
Spanish (Philippines) (es_PH)
Spanish (Spain) (es_ES)
Bulgarian (Bulgaria) (bg_BG)
Spanish (Colombia) (es_CO)
English (St Vincent & the Grenadines) (en_VC)
Koyraboro Senni (Latin, Mali) (ses_ML)
Aghem (agq_)
Basque (Latin, Spain) (eu_ES)
Upper Sorbian (Germany) (hsb_DE)
Swedish (Latin, Sweden) (sv_SE)
English (Europe) (en_150)
Arabic (Sudan) (ar_SD)
Hausa (Niger) (ha_NE)
English (St Kitts & Nevis) (en_KN)
Embu (ebu_)
Romanian (Romania) (ro_RO)
Serbian (Latin, Montenegro) (sr_ME)
Spanish (Guatemala) (es_GT)
Fula (Latin, Liberia) (ff_LR)
Basaa (Cameroon) (bas_CM)
North Ndebele (Latin, Zimbabwe) (nd_ZW)
French (Madagascar) (fr_MG)
Spanish (Chile) (es_CL)
Mongolian (mn_)
Kamba (Kenya) (kam_KE)
Persian (Iran) (fa_IR)
Japanese (Japanese, Japan) (ja_JP)
Wolof (wo_)
English (Macao SAR China) (en_MO)
Kaingang (kgp_)
Tachelhit (Tifinagh) (shi_)
English (Belize) (en_BZ)
Lakota (Latin, United States) (lkt_US)
Albanian (Albania) (sq_AL)
Romanian (Latin, Romania) (ro_RO)
Tasawaq (Niger) (twq_NE)
Kwasio (Cameroon) (nmg_CM)
Tamil (Tamil, India) (ta_IN)
Kabyle (Latin, Algeria) (kab_DZ)
Azerbaijani (Cyrillic) (az_)
English (Northern Mariana Islands) (en_MP)
English (Grenada) (en_GD)
Turkmen (tk_)
Sangu (Latin, Tanzania) (sbp_TZ)
Tachelhit (Latin) (shi_)
English (Botswana) (en_BW)
Kabyle (Algeria) (kab_DZ)
Hebrew (Israel) (he_IL)
Makonde (Tanzania) (kde_TZ)
Tamil (Malaysia) (ta_MY)
Toki Pona (world) (tok_001)
Hindi (Latin, India) (hi_IN)
North Ndebele (Zimbabwe) (nd_ZW)
Swedish (Finland) (sv_FI)
Luyia (Latin, Kenya) (luy_KE)
Manipuri (Bengali) (mni_)
Nepali (ne_)
Chinese (Singapore) (zh_SG)
English (Ireland) (en_IE)
Sinhala (Sinhala, Sri Lanka) (si_LK)
Bhojpuri (India) (bho_IN)
English (Kiribati) (en_KI)
Tasawaq (Latin, Niger) (twq_NE)
Lao (Lao, Laos) (lo_LA)
Oromo (Ethiopia) (om_ET)
Albanian (Latin, Albania) (sq_AL)
Japanese (Japan) (ja_JP)
Burmese (my_)
Kamba (Latin, Kenya) (kam_KE)
Georgian (ka_)
Occitan (Latin, France) (oc_FR)
Korean (Korean, South Korea) (ko_KR)
Fula (Adlam, Ghana) (ff_GH)
French (St Martin) (fr_MF)
Malay (Indonesia) (ms_ID)
Tachelhit (shi_)
Kalaallisut (kl_)
Sanskrit (India) (sa_IN)
Cantonese (Hong Kong SAR China) (yue_HK)
Indonesian (id_)
English (Eswatini) (en_SZ)
Faroese (Latin, Faroe Islands) (fo_FO)
Rwa (Tanzania) (rwk_TZ)
Chinese (zh_)
Spanish (Peru) (es_PE)
Makhuwa-Meetto (Mozambique) (mgh_MZ)
Samburu (saq_)
English (United Kingdom) (en_GB)
Chinese (Traditional, Hong Kong SAR China) (zh_HK)
Santali (Ol Chiki, India) (sat_IN)
Kazakh (Kazakhstan) (kk_KZ)
Spanish (Panama) (es_PA)
Arabic (Palestinian Territories) (ar_PS)
Bena (bez_)
French (Monaco) (fr_MC)
Cornish (kw_)
Vai (Latin) (vai_)
Colognian (ksh_)
Urdu (India) (ur_IN)
Lingala (ln_)
Swiss German (Switzerland) (gsw_CH)
Chechen (Cyrillic, Russia) (ce_RU)
Luyia (Kenya) (luy_KE)
Portuguese (pt_)
Kako (Cameroon) (kkj_CM)
Spanish (Equatorial Guinea) (es_GQ)
Makhuwa-Meetto (Latin, Mozambique) (mgh_MZ)
Arabic (Yemen) (ar_YE)
English (Sint Maarten) (en_SX)
Tongan (to_)
Russian (Kazakhstan) (ru_KZ)
Estonian (et_)
Pijin (pis_)
Korean (North Korea) (ko_KP)
Dutch (Suriname) (nl_SR)
English (Bahamas) (en_BS)
Rombo (rof_)
Bemba (Latin, Zambia) (bem_ZM)
Belarusian (be_)
Manx (gv_)
Kalenjin (Latin, Kenya) (kln_KE)
Duala (dua_)
Chiga (Latin, Uganda) (cgg_UG)
Dutch (Caribbean Netherlands) (nl_BQ)
Ewe (Latin, Ghana) (ee_GH)
Fula (Adlam, Guinea) (ff_GN)
Uzbek (Cyrillic, Uzbekistan) (uz_UZ)
Hindi (Devanagari, India) (hi_IN)
Morisyen (mfe_)
English (Kenya) (en_KE)
Gusii (guz_)
Chuvash (Russia) (cv_RU)
Asu (Tanzania) (asa_TZ)
Sardinian (Italy) (sc_IT)
Japanese (ja_)
French (Senegal) (fr_SN)
Odia (or_)
Bodo (brx_)
French (Morocco) (fr_MA)
Portuguese (Luxembourg) (pt_LU)
Fula (Adlam, Gambia) (ff_GM)
French (St Barth?lemy) (fr_BL)
Meta? (Cameroon) (mgo_CM)
Kwasio (Latin, Cameroon) (nmg_CM)
Maithili (India) (mai_IN)
Korean (South Korea) (ko_KR)
Tajik (Cyrillic, Tajikistan) (tg_TJ)
Spanish (Mexico) (es_MX)
Zulu (Latin, South Africa) (zu_ZA)
Dogri (India) (doi_IN)
Finnish (fi_)
Northern Frisian (frr_)
Bosnian (Cyrillic) (bs_)
Uzbek (uz_)
Serbian (Latin) (sr_)
English (South Sudan) (en_SS)
Tibetan (India) (bo_IN)
Romansh (rm_)
French (Burundi) (fr_BI)
Tachelhit (Morocco) (shi_MA)
English (Madagascar) (en_MG)
Upper Sorbian (Latin, Germany) (hsb_DE)
Nama (Latin, Namibia) (naq_NA)
Bengali (bn_)
Breton (Latin, France) (br_FR)
Kannada (kn_)
Ngiemboon (nnh_)
Bengali (Bangladesh) (bn_BD)
Spanish (Latin, Spain) (es_ES)
English (South Africa) (en_ZA)
Welsh (Latin, United Kingdom) (cy_GB)
Obolo (ann_)
French (France) (fr_FR)
Punjabi (India) (pa_IN)
French (Benin) (fr_BJ)
English (Marshall Islands) (en_MH)
Chinese (Traditional) (zh_)
Vai (Liberia) (vai_LR)
Javanese (Latin, Indonesia) (jv_ID)
Pashto (Afghanistan) (ps_AF)
Yakut (Russia) (sah_RU)
Kyrgyz (ky_)
Masai (mas_)
Bosnian (Cyrillic, Bosnia & Herzegovina) (bs_BA)
Xhosa (Latin, South Africa) (xh_ZA)
Taita (Latin, Kenya) (dav_KE)
Slovak (Slovakia) (sk_SK)
Skolt Sami (Finland) (sms_FI)
Xhosa (xh_)
Koyra Chiini (Latin, Mali) (khq_ML)
Mazanderani (Arabic, Iran) (mzn_IR)
Mongolian (Cyrillic, Mongolia) (mn_MN)
Wolof (Senegal) (wo_SN)
Hausa (Latin, Nigeria) (ha_NG)
French (Haiti) (fr_HT)
Russian (Cyrillic, Russia) (ru_RU)
Telugu (India) (te_IN)
Masai (Latin, Kenya) (mas_KE)
Northern Luri (lrc_)
Dutch (Sint Maarten) (nl_SX)
Chechen (ce_)
French (Congo - Brazzaville) (fr_CG)
Manx (Latin, Isle of Man) (gv_IM)
Maltese (Malta) (mt_MT)
Korean (ko_)
Rajasthani (raj_)
Malay (Latin, Malaysia) (ms_MY)
Low German (Netherlands) (nds_NL)
Malayalam (Malayalam, India) (ml_IN)
Standard Moroccan Tamazight (Tifinagh, Morocco) (zgh_MA)
Makonde (kde_)
Akan (ak_)
Dzongkha (dz_)
Nyankole (Latin, Uganda) (nyn_UG)
English (Vanuatu) (en_VU)
Interlingua (ia_)
Tongan (Tonga) (to_TO)
Fula (Latin, Sierra Leone) (ff_SL)
Sena (Mozambique) (seh_MZ)
Soga (Latin, Uganda) (xog_UG)
Fula (Adlam, Senegal) (ff_SN)
Vietnamese (Latin, Vietnam) (vi_VN)
Sundanese (Indonesia) (su_ID)
Sichuan Yi (China) (ii_CN)
Ngomba (Latin, Cameroon) (jgo_CM)
Punjabi (Arabic, Pakistan) (pa_PK)
French (R?union) (fr_RE)
Bengali (India) (bn_IN)
French (Guadeloupe) (fr_GP)
Punjabi (pa_)
Standard Moroccan Tamazight (Morocco) (zgh_MA)
Ukrainian (Ukraine) (uk_UA)
Tajik (tg_)
Rundi (rn_)
Rwa (rwk_)
Hungarian (hu_)
French (Switzerland) (fr_CH)
English (Norfolk Island) (en_NF)
Ganda (Latin, Uganda) (lg_UG)
Cebuano (Latin, Philippines) (ceb_PH)
Tasawaq (twq_)
Serbian (Cyrillic, Kosovo) (sr_XK)
Norwegian Bokm?l (Latin, Norway) (nb_NO)
Bambara (bm_)
Kashmiri (Devanagari) (ks_)
Arabic (South Sudan) (ar_SS)
English (Guam) (en_GU)
Dutch (Aruba) (nl_AW)
English (Anguilla) (en_AI)
Western Frisian (Latin, Netherlands) (fy_NL)
Soga (Uganda) (xog_UG)
English (Cameroon) (en_CM)
Czech (Czechia) (cs_CZ)
Turkish (tr_)
Catalan (Spain) (ca_ES)
Hungarian (Latin, Hungary) (hu_HU)
Romansh (Switzerland) (rm_CH)
Russian (Moldova) (ru_MD)
Nheengatu (yrl_)
English (Tonga) (en_TO)
Fula (Latin, Senegal) (ff_SN)
Fula (Adlam, Sierra Leone) (ff_SL)
English (Papua New Guinea) (en_PG)
Estonian (Latin, Estonia) (et_EE)
French (Central African Republic) (fr_CF)
Portuguese (Timor-Leste) (pt_TL)
English (Eritrea) (en_ER)
Serbian (Bosnia & Herzegovina) (sr_BA)
Spanish (Paraguay) (es_PY)
Konkani (India) (kok_IN)
Belarusian (Cyrillic, Belarus) (be_BY)
French (Togo) (fr_TG)
Dzongkha (Tibetan, Bhutan) (dz_BT)
Serbian (Latin, Kosovo) (sr_XK)
English (Philippines) (en_PH)
Igbo (Nigeria) (ig_NG)
French (Guinea) (fr_GN)
Scottish Gaelic (Latin, United Kingdom) (gd_GB)
Chinese (Simplified, Macao SAR China) (zh_MO)
Santali (Ol Chiki) (sat_)
Northern Sami (Finland) (se_FI)
Fula (ff_)
English (Cook Islands) (en_CK)
Hawaiian (Latin, United States) (haw_US)
Arabic (Morocco) (ar_MA)
English (Antigua & Barbuda) (en_AG)
French (Chad) (fr_TD)
Embu (Kenya) (ebu_KE)
Lithuanian (Latin, Lithuania) (lt_LT)
Bemba (Zambia) (bem_ZM)
Ewondo (Latin, Cameroon) (ewo_CM)
Soga (xog_)
Ewondo (Cameroon) (ewo_CM)
French (Congo - Kinshasa) (fr_CD)
Rundi (Burundi) (rn_BI)
English (Namibia) (en_NA)
Meta? (Latin, Cameroon) (mgo_CM)
Malay (ms_)
Uyghur (ug_)
Catalan (Italy) (ca_IT)
Langi (Tanzania) (lag_TZ)
Quechua (Latin, Peru) (qu_PE)
Indonesian (Indonesia) (id_ID)
Teso (Kenya) (teo_KE)
Catalan (Andorra) (ca_AD)
Quechua (Bolivia) (qu_BO)
Hawaiian (United States) (haw_US)
Vietnamese (vi_)
French (Canada) (fr_CA)
Kabuverdianu (Latin, Cape Verde) (kea_CV)
Jola-Fonyi (dyo_)
Albanian (Kosovo) (sq_XK)
M?ori (Latin, New Zealand) (mi_NZ)
English (Cayman Islands) (en_KY)
Italian (Switzerland) (it_CH)
Sinhala (Sri Lanka) (si_LK)
Luo (Kenya) (luo_KE)
English (United Arab Emirates) (en_AE)
Italian (Italy) (it_IT)
Esperanto (eo_)
English (Zimbabwe) (en_ZW)
Arabic (Somalia) (ar_SO)
Norwegian Nynorsk (Norway) (nn_NO)
French (Mauritius) (fr_MU)
Polish (pl_)
Northern Sami (Sweden) (se_SE)
English (Tokelau) (en_TK)
Mundang (Cameroon) (mua_CM)
Urdu (ur_)
Kaingang (Brazil) (kgp_BR)
Uzbek (Arabic) (uz_)
Samburu (Kenya) (saq_KE)
Portuguese (Guinea-Bissau) (pt_GW)
Northern Sami (se_)
Shona (Latin, Zimbabwe) (sn_ZW)
Malay (Singapore) (ms_SG)
Ewe (Togo) (ee_TG)
Lingala (Angola) (ln_AO)
Belarusian (Belarus) (be_BY)
Cantonese (Traditional) (yue_)
Khmer (Khmer, Cambodia) (km_KH)
Italian (Latin, Italy) (it_IT)
Skolt Sami (Latin, Finland) (sms_FI)
Luyia (luy_)
Chuvash (cv_)
Portuguese (Cape Verde) (pt_CV)
Bhojpuri (Devanagari, India) (bho_IN)
Ukrainian (uk_)
Spanish (Puerto Rico) (es_PR)
Walser (Switzerland) (wae_CH)
Mazanderani (mzn_)
Tatar (tt_)
Russian (Belarus) (ru_BY)
Faroese (Denmark) (fo_DK)
Ewe (Ghana) (ee_GH)
Arabic (Bahrain) (ar_BH)
Kazakh (Cyrillic, Kazakhstan) (kk_KZ)
Uyghur (Arabic, China) (ug_CN)
Hindi (India) (hi_IN)
English (Switzerland) (en_CH)
Sardinian (Latin, Italy) (sc_IT)
Samburu (Latin, Kenya) (saq_KE)
Asu (asa_)
Greek (Polytonic) (el_)
Faroese (Faroe Islands) (fo_FO)
Yoruba (Benin) (yo_BJ)
Asturian (Spain) (ast_ES)
French (Comoros) (fr_KM)
French (Martinique) (fr_MQ)
Spanish (Argentina) (es_AR)
Fula (Latin) (ff_)
Dogri (Devanagari, India) (doi_IN)
English (Malaysia) (en_MY)
Embu (Latin, Kenya) (ebu_KE)
Sangu (Tanzania) (sbp_TZ)
Filipino (fil_)
Uzbek (Cyrillic) (uz_)
Armenian (Armenia) (hy_AM)
Cantonese (Traditional, Hong Kong SAR China) (yue_HK)
English (Gambia) (en_GM)
Faroese (fo_)
Shambala (Latin, Tanzania) (ksb_TZ)
Nepali (Nepal) (ne_NP)
Nheengatu (Latin, Brazil) (yrl_BR)
Friulian (Italy) (fur_IT)
Tamil (India) (ta_IN)
French (French Guiana) (fr_GF)
Lakota (lkt_)
Indonesian (Latin, Indonesia) (id_ID)
Icelandic (is_)
Portuguese (Angola) (pt_AO)
Sinhala (si_)
Telugu (Telugu, India) (te_IN)
English (world) (en_001)
Javanese (Indonesia) (jv_ID)
Duala (Latin, Cameroon) (dua_CM)
Langi (Latin, Tanzania) (lag_TZ)
Russian (Kyrgyzstan) (ru_KG)
French (Mauritania) (fr_MR)
Bafia (Latin, Cameroon) (ksf_CM)
Kashmiri (ks_)
Chinese (Traditional, Taiwan) (zh_TW)
Fula (Latin, Burkina Faso) (ff_BF)
Assamese (India) (as_IN)
Chinese (Hong Kong SAR China) (zh_HK)
Swahili (Kenya) (sw_KE)
Thai (Thailand) (th_TH)
Assamese (Bengali, India) (as_IN)
Machame (jmc_)
Cantonese (yue_)
English (Malawi) (en_MW)
Nama (Namibia) (naq_NA)
Haryanvi (bgc_)
English (British Indian Ocean Territory) (en_IO)
Arabic (Qatar) (ar_QA)
English (Cocos (Keeling) Islands) (en_CC)
Arabic (Arabic, Egypt) (ar_EG)
Portuguese (Portugal) (pt_PT)
Slovak (Latin, Slovakia) (sk_SK)
Azerbaijani (Cyrillic, Azerbaijan) (az_AZ)
Central Kurdish (Iraq) (ckb_IQ)
Tachelhit (Latin, Morocco) (shi_MA)
Spanish (Cuba) (es_CU)
Arabic (ar_)
English (US Virgin Islands) (en_VI)
Basque (Spain) (eu_ES)
Hawaiian (haw_)
Basaa (bas_)
Igbo (Latin, Nigeria) (ig_NG)
Greek (Greece) (el_GR)
Sango (sg_)
Uzbek (Latin) (uz_)
Yangben (Cameroon) (yav_CM)
Danish (Greenland) (da_GL)
Khmer (Cambodia) (km_KH)
Central Kurdish (Iran) (ckb_IR)
Dutch (nl_)
Kashmiri (Arabic, India) (ks_IN)
Catalan (Spain, Valencian) (ca_ES)
Wolof (Latin, Senegal) (wo_SN)
Sindhi (Devanagari, India) (sd_IN)
Marathi (Devanagari, India) (mr_IN)
Spanish (Costa Rica) (es_CR)
French (Gabon) (fr_GA)
Serbian (sr_)
Arabic (Libya) (ar_LY)
English (Mauritius) (en_MU)
Galician (Spain) (gl_ES)
Azerbaijani (Latin, Azerbaijan) (az_AZ)
English (Isle of Man) (en_IM)
Swiss German (Latin, Switzerland) (gsw_CH)
Sena (Latin, Mozambique) (seh_MZ)
English (Gibraltar) (en_GI)
English (Canada) (en_CA)
Cherokee (Cherokee, United States) (chr_US)
Scottish Gaelic (gd_)
French (Syria) (fr_SY)
Odia (Oriya, India) (or_IN)
Somali (Ethiopia) (so_ET)
Catalan (Latin, Spain) (ca_ES)
Dutch (Belgium) (nl_BE)
Arabic (Djibouti) (ar_DJ)
Welsh (United Kingdom) (cy_GB)
English (British Virgin Islands) (en_VG)
Jola-Fonyi (Latin, Senegal) (dyo_SN)
Occitan (oc_)
English (Turks & Caicos Islands) (en_TC)
English (Maldives) (en_MV)
Czech (Latin, Czechia) (cs_CZ)
Swedish (?land Islands) (sv_AX)
Afrikaans (Namibia) (af_NA)
Vunjo (vun_)
English (India) (en_IN)
Luba-Katanga (lu_)
Yoruba (yo_)
Spanish (Nicaragua) (es_NI)
Sichuan Yi (Yi, China) (ii_CN)
Masai (Tanzania) (mas_TZ)
Sindhi (Pakistan) (sd_PK)
Tigrinya (ti_)
Malay (Brunei) (ms_BN)
Chakma (India) (ccp_IN)
Breton (France) (br_FR)

Example 10: Using Builder to Create Locale

This example shows how to use Locale.Builder to create a Locale.

import java.util.Locale;

public class LocaleBuilderExample {
    public static void main(String[] args) {
        Locale locale = new Locale.Builder()
                          .setLanguage("en")
                          .setRegion("GB")
                          .build();
        System.out.println("Locale: " + locale.getDisplayName());
    }
}

Output:

Locale: English (United Kingdom)

4. Conclusion

The Locale class in Java provides essential support for internationalization (i18n) and localization (l10n). It allows developers to tailor applications to different regions and cultures, ensuring that content is appropriately formatted for various locales. The examples provided demonstrate common usage patterns and highlight the capabilities of the Locale class.

Comments