Nefcairon

Nefcairon

Ex_cldr: What are locales "en-001" and "und"?

Hello,

The ex_cldr docs Getting Started with Cldr — Cldr v2.40.1 say

If installed from hex then only the locales “en”, “en-001” and “und” are installed

I wondered what the locales “en-001” and “und” are.

For the first “en-001” - I have found an answer in How to coerce currency symbols with a character prefix? E.g. US$ not $ (even if "en" is the locale) - #4 by kip. So it’s “world English”.

Second - “und” - is not so easy to google as “und” is a German word (“and” in English), but docs for other programming languages seem to use “und” short for “Undetermined”. I guess that’s it?

Most Liked

kip

kip

ex_cldr Core Team

seem to use “und” short for “Undetermined”

You are correct, that’s what it is. Until a couple of years ago is was called root, but that was linguistically misleading. So it was renamed to und. Basically it’s the “if all else fails, use values from here”.

I wondered what the locales “en-001”

Language tags convey a lot more information that is commonly recognised. The region identifier (for example, the US in en-US) is typically an ISO3166 territory code.

It can also be a United Nations M49 area code. These codes are intended to remove the geopolical implications inherent in territory codes to provide a basis for statistical analysis.

The following is a screen shot of the highest level hierarchy of M49 codes - that can expand to areas that are congruent with ISO3166 in many cases - but not all.

I hope that helps clarify some more (or perhaps now you wish you didn’t ask :-))

Where Next?

Popular in Questions Top

openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New

We're in Beta

About us Mission Statement