enkidatron / elm-cldr / Cldr.Locale

Locale


type alias Locale =
Internal.Locale.Locale

Represents the locale to use for formatting.

You can parse a value from JS like navigator.language or use hardcoded locales.

Create

fromString : List Locale -> String -> Maybe Locale

Parse a Locale from a Unicode or BCP47 identifier.

fromString basicLocales "en"
--> Just en

fromString allLocales "en-GB"
--> Just en_GB

allLocales : List Locale

A list of every locale listed in the JSON version of the CLDR.

basicLocales : List Locale

A list of every "basic" locale listed in the JSON version of the CLDR.

A "basic" locale is a locale without a region, script, or variant subtag, such as en or ru.

Convert

toUnicode : Locale -> String

Get the Unicode representation of a locale.

toUnicode en_GB
--> "en-GB"

Locales by language

Af

af : Locale

Date format strings:

Time format strings:

af_NA : Locale

Date format strings:

Time format strings:

Am

am : Locale

Date format strings:

Time format strings:

Ar

ar : Locale

Date format strings:

Time format strings:

ar_AE : Locale

Date format strings:

Time format strings:

ar_BH : Locale

Date format strings:

Time format strings:

ar_DJ : Locale

Date format strings:

Time format strings:

ar_DZ : Locale

Date format strings:

Time format strings:

ar_EG : Locale

Date format strings:

Time format strings:

ar_EH : Locale

Date format strings:

Time format strings:

ar_ER : Locale

Date format strings:

Time format strings:

ar_IL : Locale

Date format strings:

Time format strings:

ar_IQ : Locale

Date format strings:

Time format strings:

ar_JO : Locale

Date format strings:

Time format strings:

ar_KM : Locale

Date format strings:

Time format strings:

ar_KW : Locale

Date format strings:

Time format strings:

ar_LB : Locale

Date format strings:

Time format strings:

ar_LY : Locale

Date format strings:

Time format strings:

ar_MA : Locale

Date format strings:

Time format strings:

ar_MR : Locale

Date format strings:

Time format strings:

ar_OM : Locale

Date format strings:

Time format strings:

ar_PS : Locale

Date format strings:

Time format strings:

ar_QA : Locale

Date format strings:

Time format strings:

ar_SA : Locale

Date format strings:

Time format strings:

ar_SD : Locale

Date format strings:

Time format strings:

ar_SO : Locale

Date format strings:

Time format strings:

ar_SS : Locale

Date format strings:

Time format strings:

ar_SY : Locale

Date format strings:

Time format strings:

ar_TD : Locale

Date format strings:

Time format strings:

ar_TN : Locale

Date format strings:

Time format strings:

ar_YE : Locale

Date format strings:

Time format strings:

As

locale_as : Locale

Date format strings:

Time format strings:

Az

az : Locale

Date format strings:

Time format strings:

az_Latn : Locale

Date format strings:

Time format strings:

Be

be : Locale

Date format strings:

Time format strings:

be_TARASK : Locale

Date format strings:

Time format strings:

Bg

bg : Locale

Date format strings:

Time format strings:

Bn

bn : Locale

Date format strings:

Time format strings:

bn_IN : Locale

Date format strings:

Time format strings:

Bs

bs : Locale

Date format strings:

Time format strings:

bs_Latn : Locale

Date format strings:

Time format strings:

Ca

ca : Locale

Date format strings:

Time format strings:

ca_AD : Locale

Date format strings:

Time format strings:

ca_ES_VALENCIA : Locale

Date format strings:

Time format strings:

ca_FR : Locale

Date format strings:

Time format strings:

ca_IT : Locale

Date format strings:

Time format strings:

Chr

chr : Locale

Date format strings:

Time format strings:

Cs

cs : Locale

Date format strings:

Time format strings:

Cy

cy : Locale

Date format strings:

Time format strings:

Da

da : Locale

Date format strings:

Time format strings:

da_GL : Locale

Date format strings:

Time format strings:

De

de : Locale

Date format strings:

Time format strings:

de_AT : Locale

Date format strings:

Time format strings:

de_BE : Locale

Date format strings:

Time format strings:

de_CH : Locale

Date format strings:

Time format strings:

de_IT : Locale

Date format strings:

Time format strings:

de_LI : Locale

Date format strings:

Time format strings:

de_LU : Locale

Date format strings:

Time format strings:

Dsb

dsb : Locale

Date format strings:

Time format strings:

El

el : Locale

Date format strings:

Time format strings:

el_CY : Locale

Date format strings:

Time format strings:

el_POLYTON : Locale

Date format strings:

Time format strings:

En

en : Locale

Date format strings:

Time format strings:

en_001 : Locale

Date format strings:

Time format strings:

en_150 : Locale

Date format strings:

Time format strings:

en_AE : Locale

Date format strings:

Time format strings:

en_AG : Locale

Date format strings:

Time format strings:

en_AI : Locale

Date format strings:

Time format strings:

en_AS : Locale

Date format strings:

Time format strings:

en_AT : Locale

Date format strings:

Time format strings:

en_AU : Locale

Date format strings:

Time format strings:

en_BB : Locale

Date format strings:

Time format strings:

en_BE : Locale

Date format strings:

Time format strings:

en_BI : Locale

Date format strings:

Time format strings:

en_BM : Locale

Date format strings:

Time format strings:

en_BS : Locale

Date format strings:

Time format strings:

en_BW : Locale

Date format strings:

Time format strings:

en_BZ : Locale

Date format strings:

Time format strings:

en_CA : Locale

Date format strings:

Time format strings:

en_CC : Locale

Date format strings:

Time format strings:

en_CH : Locale

Date format strings:

Time format strings:

en_CK : Locale

Date format strings:

Time format strings:

en_CM : Locale

Date format strings:

Time format strings:

en_CX : Locale

Date format strings:

Time format strings:

en_CY : Locale

Date format strings:

Time format strings:

en_DE : Locale

Date format strings:

Time format strings:

en_DG : Locale

Date format strings:

Time format strings:

en_DK : Locale

Date format strings:

Time format strings:

en_DM : Locale

Date format strings:

Time format strings:

en_ER : Locale

Date format strings:

Time format strings:

en_FI : Locale

Date format strings:

Time format strings:

en_FJ : Locale

Date format strings:

Time format strings:

en_FK : Locale

Date format strings:

Time format strings:

en_FM : Locale

Date format strings:

Time format strings:

en_GB : Locale

Date format strings:

Time format strings:

en_GD : Locale

Date format strings:

Time format strings:

en_GG : Locale

Date format strings:

Time format strings:

en_GH : Locale

Date format strings:

Time format strings:

en_GI : Locale

Date format strings:

Time format strings:

en_GM : Locale

Date format strings:

Time format strings:

en_GU : Locale

Date format strings:

Time format strings:

en_GY : Locale

Date format strings:

Time format strings:

en_HK : Locale

Date format strings:

Time format strings:

en_ID : Locale

Date format strings:

Time format strings:

en_IE : Locale

Date format strings:

Time format strings:

en_IL : Locale

Date format strings:

Time format strings:

en_IM : Locale

Date format strings:

Time format strings:

en_IN : Locale

Date format strings:

Time format strings:

en_IO : Locale

Date format strings:

Time format strings:

en_JE : Locale

Date format strings:

Time format strings:

en_JM : Locale

Date format strings:

Time format strings:

en_KE : Locale

Date format strings:

Time format strings:

en_KI : Locale

Date format strings:

Time format strings:

en_KN : Locale

Date format strings:

Time format strings:

en_KY : Locale

Date format strings:

Time format strings:

en_LC : Locale

Date format strings:

Time format strings:

en_LR : Locale

Date format strings:

Time format strings:

en_LS : Locale

Date format strings:

Time format strings:

en_MG : Locale

Date format strings:

Time format strings:

en_MH : Locale

Date format strings:

Time format strings:

en_MO : Locale

Date format strings:

Time format strings:

en_MP : Locale

Date format strings:

Time format strings:

en_MS : Locale

Date format strings:

Time format strings:

en_MT : Locale

Date format strings:

Time format strings:

en_MU : Locale

Date format strings:

Time format strings:

en_MV : Locale

Date format strings:

Time format strings:

en_MW : Locale

Date format strings:

Time format strings:

en_MY : Locale

Date format strings:

Time format strings:

en_NA : Locale

Date format strings:

Time format strings:

en_NF : Locale

Date format strings:

Time format strings:

en_NG : Locale

Date format strings:

Time format strings:

en_NL : Locale

Date format strings:

Time format strings:

en_NR : Locale

Date format strings:

Time format strings:

en_NU : Locale

Date format strings:

Time format strings:

en_NZ : Locale

Date format strings:

Time format strings:

en_PG : Locale

Date format strings:

Time format strings:

en_PH : Locale

Date format strings:

Time format strings:

en_PK : Locale

Date format strings:

Time format strings:

en_PN : Locale

Date format strings:

Time format strings:

en_PR : Locale

Date format strings:

Time format strings:

en_PW : Locale

Date format strings:

Time format strings:

en_RW : Locale

Date format strings:

Time format strings:

en_SB : Locale

Date format strings:

Time format strings:

en_SC : Locale

Date format strings:

Time format strings:

en_SD : Locale

Date format strings:

Time format strings:

en_SE : Locale

Date format strings:

Time format strings:

en_SG : Locale

Date format strings:

Time format strings:

en_SH : Locale

Date format strings:

Time format strings:

en_SI : Locale

Date format strings:

Time format strings:

en_SL : Locale

Date format strings:

Time format strings:

en_SS : Locale

Date format strings:

Time format strings:

en_SX : Locale

Date format strings:

Time format strings:

en_SZ : Locale

Date format strings:

Time format strings:

en_TC : Locale

Date format strings:

Time format strings:

en_TK : Locale

Date format strings:

Time format strings:

en_TO : Locale

Date format strings:

Time format strings:

en_TT : Locale

Date format strings:

Time format strings:

en_TV : Locale

Date format strings:

Time format strings:

en_TZ : Locale

Date format strings:

Time format strings:

en_UG : Locale

Date format strings:

Time format strings:

en_UM : Locale

Date format strings:

Time format strings:

en_VC : Locale

Date format strings:

Time format strings:

en_VG : Locale

Date format strings:

Time format strings:

en_VI : Locale

Date format strings:

Time format strings:

en_VU : Locale

Date format strings:

Time format strings:

en_WS : Locale

Date format strings:

Time format strings:

en_ZA : Locale

Date format strings:

Time format strings:

en_ZM : Locale

Date format strings:

Time format strings:

en_ZW : Locale

Date format strings:

Time format strings:

en_Latn : Locale

Date format strings:

Time format strings:

Es

es : Locale

Date format strings:

Time format strings:

es_419 : Locale

Date format strings:

Time format strings:

es_AR : Locale

Date format strings:

Time format strings:

es_BO : Locale

Date format strings:

Time format strings:

es_BR : Locale

Date format strings:

Time format strings:

es_BZ : Locale

Date format strings:

Time format strings:

es_CL : Locale

Date format strings:

Time format strings:

es_CO : Locale

Date format strings:

Time format strings:

es_CR : Locale

Date format strings:

Time format strings:

es_CU : Locale

Date format strings:

Time format strings:

es_DO : Locale

Date format strings:

Time format strings:

es_EA : Locale

Date format strings:

Time format strings:

es_EC : Locale

Date format strings:

Time format strings:

es_GQ : Locale

Date format strings:

Time format strings:

es_GT : Locale

Date format strings:

Time format strings:

es_HN : Locale

Date format strings:

Time format strings:

es_IC : Locale

Date format strings:

Time format strings:

es_MX : Locale

Date format strings:

Time format strings:

es_NI : Locale

Date format strings:

Time format strings:

es_PA : Locale

Date format strings:

Time format strings:

es_PE : Locale

Date format strings:

Time format strings:

es_PH : Locale

Date format strings:

Time format strings:

es_PR : Locale

Date format strings:

Time format strings:

es_PY : Locale

Date format strings:

Time format strings:

es_SV : Locale

Date format strings:

Time format strings:

es_US : Locale

Date format strings:

Time format strings:

es_UY : Locale

Date format strings:

Time format strings:

es_VE : Locale

Date format strings:

Time format strings:

Et

et : Locale

Date format strings:

Time format strings:

Eu

eu : Locale

Date format strings:

Time format strings:

Fa

fa : Locale

Date format strings:

Time format strings:

fa_AF : Locale

Date format strings:

Time format strings:

Fi

fi : Locale

Date format strings:

Time format strings:

Fil

fil : Locale

Date format strings:

Time format strings:

Fr

fr : Locale

Date format strings:

Time format strings:

fr_BE : Locale

Date format strings:

Time format strings:

fr_BF : Locale

Date format strings:

Time format strings:

fr_BI : Locale

Date format strings:

Time format strings:

fr_BJ : Locale

Date format strings:

Time format strings:

fr_BL : Locale

Date format strings:

Time format strings:

fr_CA : Locale

Date format strings:

Time format strings:

fr_CD : Locale

Date format strings:

Time format strings:

fr_CF : Locale

Date format strings:

Time format strings:

fr_CG : Locale

Date format strings:

Time format strings:

fr_CH : Locale

Date format strings:

Time format strings:

fr_CI : Locale

Date format strings:

Time format strings:

fr_CM : Locale

Date format strings:

Time format strings:

fr_DJ : Locale

Date format strings:

Time format strings:

fr_DZ : Locale

Date format strings:

Time format strings:

fr_GA : Locale

Date format strings:

Time format strings:

fr_GF : Locale

Date format strings:

Time format strings:

fr_GN : Locale

Date format strings:

Time format strings:

fr_GP : Locale

Date format strings:

Time format strings:

fr_GQ : Locale

Date format strings:

Time format strings:

fr_HT : Locale

Date format strings:

Time format strings:

fr_KM : Locale

Date format strings:

Time format strings:

fr_LU : Locale

Date format strings:

Time format strings:

fr_MA : Locale

Date format strings:

Time format strings:

fr_MC : Locale

Date format strings:

Time format strings:

fr_MF : Locale

Date format strings:

Time format strings:

fr_MG : Locale

Date format strings:

Time format strings:

fr_ML : Locale

Date format strings:

Time format strings:

fr_MQ : Locale

Date format strings:

Time format strings:

fr_MR : Locale

Date format strings:

Time format strings:

fr_MU : Locale

Date format strings:

Time format strings:

fr_NC : Locale

Date format strings:

Time format strings:

fr_NE : Locale

Date format strings:

Time format strings:

fr_PF : Locale

Date format strings:

Time format strings:

fr_PM : Locale

Date format strings:

Time format strings:

fr_RE : Locale

Date format strings:

Time format strings:

fr_RW : Locale

Date format strings:

Time format strings:

fr_SC : Locale

Date format strings:

Time format strings:

fr_SN : Locale

Date format strings:

Time format strings:

fr_SY : Locale

Date format strings:

Time format strings:

fr_TD : Locale

Date format strings:

Time format strings:

fr_TG : Locale

Date format strings:

Time format strings:

fr_TN : Locale

Date format strings:

Time format strings:

fr_VU : Locale

Date format strings:

Time format strings:

fr_WF : Locale

Date format strings:

Time format strings:

fr_YT : Locale

Date format strings:

Time format strings:

Ga

ga : Locale

Date format strings:

Time format strings:

ga_GB : Locale

Date format strings:

Time format strings:

Gd

gd : Locale

Date format strings:

Time format strings:

Gl

gl : Locale

Date format strings:

Time format strings:

Gu

gu : Locale

Date format strings:

Time format strings:

Ha

ha : Locale

Date format strings:

Time format strings:

ha_GH : Locale

Date format strings:

Time format strings:

ha_NE : Locale

Date format strings:

Time format strings:

He

he : Locale

Date format strings:

Time format strings:

Hi

hi : Locale

Date format strings:

Time format strings:

Hr

hr : Locale

Date format strings:

Time format strings:

hr_BA : Locale

Date format strings:

Time format strings:

Hsb

hsb : Locale

Date format strings:

Time format strings:

Hu

hu : Locale

Date format strings:

Time format strings:

Hy

hy : Locale

Date format strings:

Time format strings:

Id

id : Locale

Date format strings:

Time format strings:

Ig

ig : Locale

Date format strings:

Time format strings:

Is

is : Locale

Date format strings:

Time format strings:

It

it : Locale

Date format strings:

Time format strings:

it_CH : Locale

Date format strings:

Time format strings:

it_SM : Locale

Date format strings:

Time format strings:

it_VA : Locale

Date format strings:

Time format strings:

Ja

ja : Locale

Date format strings:

Time format strings:

Jv

jv : Locale

Date format strings:

Time format strings:

Ka

ka : Locale

Date format strings:

Time format strings:

Kk

kk : Locale

Date format strings:

Time format strings:

Km

km : Locale

Date format strings:

Time format strings:

Kn

kn : Locale

Date format strings:

Time format strings:

Ko

ko : Locale

Date format strings:

Time format strings:

ko_CN : Locale

Date format strings:

Time format strings:

ko_KP : Locale

Date format strings:

Time format strings:

Kok

kok : Locale

Date format strings:

Time format strings:

Ky

ky : Locale

Date format strings:

Time format strings:

Lo

lo : Locale

Date format strings:

Time format strings:

Lt

lt : Locale

Date format strings:

Time format strings:

Lv

lv : Locale

Date format strings:

Time format strings:

Mk

mk : Locale

Date format strings:

Time format strings:

Ml

ml : Locale

Date format strings:

Time format strings:

Mn

mn : Locale

Date format strings:

Time format strings:

Mr

mr : Locale

Date format strings:

Time format strings:

Ms

ms : Locale

Date format strings:

Time format strings:

ms_BN : Locale

Date format strings:

Time format strings:

ms_ID : Locale

Date format strings:

Time format strings:

ms_SG : Locale

Date format strings:

Time format strings:

My

my : Locale

Date format strings:

Time format strings:

Nb

nb : Locale

Date format strings:

Time format strings:

nb_SJ : Locale

Date format strings:

Time format strings:

Ne

ne : Locale

Date format strings:

Time format strings:

ne_IN : Locale

Date format strings:

Time format strings:

Nl

nl : Locale

Date format strings:

Time format strings:

nl_AW : Locale

Date format strings:

Time format strings:

nl_BE : Locale

Date format strings:

Time format strings:

nl_BQ : Locale

Date format strings:

Time format strings:

nl_CW : Locale

Date format strings:

Time format strings:

nl_SR : Locale

Date format strings:

Time format strings:

nl_SX : Locale

Date format strings:

Time format strings:

Nn

nn : Locale

Date format strings:

Time format strings:

No

no : Locale

Date format strings:

Time format strings:

Or

or : Locale

Date format strings:

Time format strings:

Pa

pa : Locale

Date format strings:

Time format strings:

pa_Guru : Locale

Date format strings:

Time format strings:

Pl

pl : Locale

Date format strings:

Time format strings:

Ps

ps : Locale

Date format strings:

Time format strings:

ps_PK : Locale

Date format strings:

Time format strings:

Pt

pt : Locale

Date format strings:

Time format strings:

pt_AO : Locale

Date format strings:

Time format strings:

pt_CH : Locale

Date format strings:

Time format strings:

pt_CV : Locale

Date format strings:

Time format strings:

pt_GQ : Locale

Date format strings:

Time format strings:

pt_GW : Locale

Date format strings:

Time format strings:

pt_LU : Locale

Date format strings:

Time format strings:

pt_MO : Locale

Date format strings:

Time format strings:

pt_MZ : Locale

Date format strings:

Time format strings:

pt_PT : Locale

Date format strings:

Time format strings:

pt_ST : Locale

Date format strings:

Time format strings:

pt_TL : Locale

Date format strings:

Time format strings:

Ro

ro : Locale

Date format strings:

Time format strings:

ro_MD : Locale

Date format strings:

Time format strings:

Ru

ru : Locale

Date format strings:

Time format strings:

ru_BY : Locale

Date format strings:

Time format strings:

ru_KG : Locale

Date format strings:

Time format strings:

ru_KZ : Locale

Date format strings:

Time format strings:

ru_MD : Locale

Date format strings:

Time format strings:

ru_UA : Locale

Date format strings:

Time format strings:

Sd

sd : Locale

Date format strings:

Time format strings:

sd_Arab : Locale

Date format strings:

Time format strings:

Si

si : Locale

Date format strings:

Time format strings:

Sk

sk : Locale

Date format strings:

Time format strings:

Sl

sl : Locale

Date format strings:

Time format strings:

So

so : Locale

Date format strings:

Time format strings:

so_DJ : Locale

Date format strings:

Time format strings:

so_ET : Locale

Date format strings:

Time format strings:

so_KE : Locale

Date format strings:

Time format strings:

Sq

sq : Locale

Date format strings:

Time format strings:

sq_MK : Locale

Date format strings:

Time format strings:

sq_XK : Locale

Date format strings:

Time format strings:

Sr

sr : Locale

Date format strings:

Time format strings:

sr_Cyrl : Locale

Date format strings:

Time format strings:

sr_Cyrl_BA : Locale

Date format strings:

Time format strings:

sr_Cyrl_ME : Locale

Date format strings:

Time format strings:

sr_Cyrl_XK : Locale

Date format strings:

Time format strings:

sr_Latn : Locale

Date format strings:

Time format strings:

sr_Latn_BA : Locale

Date format strings:

Time format strings:

sr_Latn_ME : Locale

Date format strings:

Time format strings:

sr_Latn_XK : Locale

Date format strings:

Time format strings:

Sv

sv : Locale

Date format strings:

Time format strings:

sv_AX : Locale

Date format strings:

Time format strings:

sv_FI : Locale

Date format strings:

Time format strings:

Sw

sw : Locale

Date format strings:

Time format strings:

sw_CD : Locale

Date format strings:

Time format strings:

sw_KE : Locale

Date format strings:

Time format strings:

sw_UG : Locale

Date format strings:

Time format strings:

Ta

ta : Locale

Date format strings:

Time format strings:

ta_LK : Locale

Date format strings:

Time format strings:

ta_MY : Locale

Date format strings:

Time format strings:

ta_SG : Locale

Date format strings:

Time format strings:

Te

te : Locale

Date format strings:

Time format strings:

Th

th : Locale

Date format strings:

Time format strings:

Tk

tk : Locale

Date format strings:

Time format strings:

Tr

tr : Locale

Date format strings:

Time format strings:

tr_CY : Locale

Date format strings:

Time format strings:

Uk

uk : Locale

Date format strings:

Time format strings:

Root

root : Locale

Date format strings:

Time format strings:

Ur

ur : Locale

Date format strings:

Time format strings:

ur_IN : Locale

Date format strings:

Time format strings:

Uz

uz : Locale

Date format strings:

Time format strings:

uz_Latn : Locale

Date format strings:

Time format strings:

Vi

vi : Locale

Date format strings:

Time format strings:

Yo

yo : Locale

Date format strings:

Time format strings:

yo_BJ : Locale

Date format strings:

Time format strings:

Yue

yue : Locale

Date format strings:

Time format strings:

yue_Hans : Locale

Date format strings:

Time format strings:

yue_Hant : Locale

Date format strings:

Time format strings:

Zh

zh : Locale

Date format strings:

Time format strings:

zh_Hans : Locale

Date format strings:

Time format strings:

zh_Hans_HK : Locale

Date format strings:

Time format strings:

zh_Hans_MO : Locale

Date format strings:

Time format strings:

zh_Hans_SG : Locale

Date format strings:

Time format strings:

zh_Hant : Locale

Date format strings:

Time format strings:

zh_Hant_HK : Locale

Date format strings:

Time format strings:

zh_Hant_MO : Locale

Date format strings:

Time format strings:

Zu

zu : Locale

Date format strings:

Time format strings: