init_i18n: Creates new i18n Translator object

View source: R/translator.R

init_i18nR Documentation

Creates new i18n Translator object

Description

Creates new i18n Translator object

Usage

init_i18n(
  translation_csvs_path = NULL,
  translation_json_path = NULL,
  translation_csv_config = NULL,
  automatic = FALSE
)

Arguments

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.

Value

i18n object

Examples

## Not run: 
 i18n <- init_i18n(translation_csvs_path = "../csvdata/")
 i18n <- init_i18n(translation_json_path = "translations.json")

## End(Not run)

shiny.i18n documentation built on Jan. 16, 2023, 5:10 p.m.