| i18n_t | R Documentation |
Returns the value for key from a dictionary produced by i18n_load().
If the key is missing, returns default when provided, otherwise the key itself.
i18n_t(dict, key, default = NULL)
dict |
Named list produced by |
key |
Character scalar; lookup key. |
default |
Optional fallback value if the key is not present. |
Character scalar.
# A quick, fully automatic check:
p <- system.file("shinyapp", "i18n", "en.json", package = "examly")
if (nzchar(p) && file.exists(p)) {
d <- i18n_load("en")
i18n_t(d, "buttons.download", "Download")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.