ISO639.to_iso639_2b
You're seeing just the function
to_iso639_2b
, go back to ISO639 module for more information.
Specs
expects as input downcased ISO 639-1, ISO 639-2 or ISO 639-2/B language code and returns ISO 639-2/B (Bibliographic) code if it exists in standard. 639-2 code is returned if bibliographic value doesn't exist. Default value is nil
for wrong argument situations.
Examples
iex> ISO639.to_iso639_2b("hy")
"arm"
iex> ISO639.to_iso639_2b("eus")
"baq"
iex> ISO639.to_iso639_2b("chi")
"chi"
iex> ISO639.to_iso639_2b("cs")
"cze"
iex> ISO639.to_iso639_2b("de")
"ger"
iex> ISO639.to_iso639_2b("ud")
nil