i18n | R Documentation |
Translates text into a language determined by the current testing session.
Translation is carried out using a dictionary defined at test creation
(see i18n_dict
).
The function can typically only be used within a call
to new_timeline
, which defines the dictionary
in which to look up i18n
.
Calling i18n
outside this context will typically result in an error.
i18n(x, html = TRUE, sub = character())
x |
Character scalar identifying the term to be translated. |
html |
Boolean; whether or not the translation output should
be parsed as HTML or as plain text (the default is |
sub |
A named character vector or list defining substitutions
to make within the translation output. The text of the translation output
may contain passages such as |
The translated output, typically a character scalar
or a shiny::HTML()
output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.