Synopsis
locale2language_tag(locale
)
Takes a locale name and maps it to a language tag. Certain
tags aren’t mappable, such as C
or POSIX
, in which case
local2language_tag
will return
an empty list.
locale2language_tag('en'), # Returns 'en'
locale2language_tag('POSIX'), # Returns undef or ()