R/show-locales.R

Defines functions show_locales

Documented in show_locales

#' Locales
#'
#' A convenience function which returns a dataframe of available locales and
#' countries.
#'
#' @return a dataframe
#'
#' @export
#'
#' @examples
#' show_locales()
show_locales <- function() {
  x <- countryscales::locales[c("locale")]
  x$locale <- gsub("_", "-", x$locale)
  return(x)
}

Try the countryscales package in your browser

Any scripts or data that you put into this service are public.

countryscales documentation built on Sept. 29, 2026, 5:09 p.m.