Description Usage Arguments Details Value See Also Examples
Provides some basic information on a given locale identifier.
1 | stri_locale_info(locale = NULL)
|
locale |
|
With this function you may obtain some basic information on any provided locale identifier, even if it is unsupported by ICU or if you pass a malformed locale identifier (the one that is not e.g. of the form Language_Country). See stringi-locale for discussion.
This function does nothing complicated. In many cases it is
similar to a call to
as.list(stri_split_fixed(locale, "_",
3L, opts_collator=NA)[[1]])
, with locale
case
mapped. It may be used, however, to get insight on how ICU
understands a provided locale identifier.
Returns a list with the following named character strings:
Language
, Country
, Variant
, and
Name
, being their underscore separated combination.
Other locale_management: stri_locale_get
,
stri_locale_set
;
stri_locale_list
;
stringi-locale
1 2 | stri_locale_info("pl_PL")
stri_locale_info("Pl_pL") # the same result
|
$Language
[1] "pl"
$Country
[1] "PL"
$Variant
[1] ""
$Name
[1] "pl_PL"
$Language
[1] "pl"
$Country
[1] "PL"
$Variant
[1] ""
$Name
[1] "pl_PL"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.