init_i18n | R Documentation |
Creates new i18n Translator object
init_i18n(
translation_csvs_path = NULL,
translation_json_path = NULL,
translation_csv_config = NULL,
automatic = FALSE
)
translation_csvs_path |
character with path to folder containing csv translation files. See more in Details. |
translation_json_path |
character with path to JSON translation file. See more in Details. |
translation_csv_config |
character with path to configuration file for csv option. |
automatic |
logical flag, indicating if i18n should use an automatic translation API. |
i18n object
## Not run:
i18n <- init_i18n(translation_csvs_path = "../csvdata/")
i18n <- init_i18n(translation_json_path = "translations.json")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.