create_translation_file: Create translation file

Description Usage Arguments

View source: R/preproc.R

Description

Auxiliary shiny.i18n function that searches for all key expressions (eg. surrounded by i18n$t() tag in the script).

Usage

1
create_translation_file(path, type = "json", handle = "i18n", output = NULL)

Arguments

path

character with path of the file that needs to be inspected for key translations

type

type of the example output file with translations, either "json" or "csv"

handle

name of Translator object within script from path

output

if NULL (default) the output will be saved with a default file name ("translation.json" for JSON and "translate_lang.csv" for CSV)


shiny.i18n documentation built on Oct. 23, 2020, 6:18 p.m.