| dt2_language | R Documentation |
Language helper (either list or JSON url)
dt2_language(options = list(), lang_list = NULL, lang_url = NULL)
options |
Options list. |
lang_list |
Named list of language keys. |
lang_url |
URL to a JSON translation file. |
Updated options.
# Inline translation
opts <- dt2_language(list(), lang_list = list(search = "Buscar:"))
dt2(iris, options = opts)
# Or load a ready-made translation file from the DataTables CDN
opts <- dt2_language(list(),
lang_url = "https://cdn.datatables.net/plug-ins/2.3.3/i18n/pt-BR.json")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.