| vocab_table | R Documentation |
vocab function from a plain name tableThe common case for a label_scheme() vocab argument: a hand-listed
table of names, one entry per locale, each a named list of renderings. By
convention these follow CLDR's wide/abbreviated/narrow, but type can be
anything. vocab_table() wraps it in the function(type = NULL, locale = NULL) shape vocab requires.
vocab_table(..., default_locale = "en-GB")
... |
Named entries, one per locale (e.g. |
default_locale |
The locale returned when |
For vocab backed by an external i18n source instead of a hand-listed
table, write that function(type, locale) directly instead. Same shape,
no list needed.
A function function(type = NULL, locale = NULL), suitable as
the vocab field of a label_scheme().
label_scheme()
month_vocab <- vocab_table(`en-GB` = list(wide = month.name, abbreviated = month.abb))
month_vocab("abbreviated")
month_vocab(locale = "en-GB")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.