i18n | R Documentation |
Create a new translator object
i18n(resources, ..., options = NULL)
resources |
Path to a json file containing translation
resources. If given in this way, then on-demand translation
loading (via |
... |
Named options passed to |
options |
Options object passed to |
Note that the argument list here will change. The only part of this that we consider stable is that the first argument will represent a resource bundle.
path <- system.file("examples/simple.json", package = "traduire")
obj <- traduire::i18n(path)
obj$t("hello", language = "fr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.