Get a localized list of locale names from the locale_names dataset
Source:R/get_values.R
cldr_locale_names.RdThe locale_names table contains information on how to express components of
locale codes and this is localized across 574 locales.
The cldr_locale_names() function allows one to extract a named list using
a locale and one of the following element names:
"langs": corresponds to thelang_namescolumn in locale_names"scripts": is thescript_namescolumn in locale_names"territories": isterritory_names"variants": isvariant_names
Arguments
- locale
The locale ID for which to obtain the data from the locale_names table.
- element
The element from which information will be obtained for the specified
locale. A valid set of locale_names elements can be accessed through the locale_names_elements list object.