i18n | R Documentation |
Similar to echo
, this function should help you to write
your JavaScript portions in R. Depending on the provided values for its arguments,
will return one of i18n()
, i18nc()
, i18np()
, or i18ncp()
.
i18n(msgid, ..., context = NULL, plural = NULL, newline = "")
msgid |
Either a character string, the message to be translated (if applicable,
its singular form),
or an object of class |
... |
Either character string which will be pasted unquoted to be used in conjunctions with placeholders in msgid, or XiMpLe.node objects of which the JavaScript variable name will be used. |
context |
Character string, optional context information for this string. |
plural |
Character string for plural form of |
newline |
Character string,
can be set to e.g. |
An object of class rk.JS.i18n
.
i18n("Select data") i18n("Comparing a single pair", "n_pairs", plural="Comparing %1 distinct pairs") echo(i18n(noquote("A string I'll quote, later")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.