List locally stored locales

csl_locales(locale = NULL)

csl_locale_exists(locale)

Arguments

locale

(character) one locale name

Value

If locale=NULL, a list of locales. If locale is not NULL, then a full path to the locale file is returned if the locale exists.

Examples

# setup csl_cache$cache_path_set("seasl", type = "tempdir")
#> [1] "/tmp/Rtmp23qKAt/R/seasl"
csl_cache$cache_path_get()
#> [1] "/tmp/Rtmp23qKAt/R/seasl"
# List all locale files csl_locales()
#> character(0)
# cleanup csl_cache$delete_all()
#> no files found
if (FALSE) { # fetch data first csl_fetch_locales() # List all locale files csl_locales() # list files csl_locales("et") csl_locales("fr-FR") csl_locale_exists("et") csl_locale_exists("cc") csl_locale_exists("fr-FR") }