| i18n_load | R Documentation |
Finds <lang>.json under the installed package's i18n/ folder and,
if not found (during development), falls back to inst/i18n/<lang>.json.
i18n_load(lang = "tr")
lang |
Character scalar language code. Currently |
A named list (key -> string) parsed from the JSON file.
# Always-fast: locate the installed TR dictionary (empty string if not installed)
system.file("shinyapp", "i18n", "tr.json", package = "examly")
# Safe example that runs only if the file actually exists
p <- system.file("shinyapp", "i18n", "tr.json", package = "examly")
if (nzchar(p) && file.exists(p)) {
d <- i18n_load("tr")
i18n_t(d, "ui.title", "Baslik")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.