View source: R/translate_qsf.R
translate.qsf | R Documentation |
Read-in iatgen generated QSF file and translated it to a target language specified by user either from the list of available languages included in tr.iatgen package or using the custom supplied translation file.
translate.qsf(file, lang, lang_file = NULL, src_lang = "en", dst_file = NULL)
file |
qsf file |
lang |
Target language (abbreviation). |
lang_file |
CSV file containing custom translation. |
src_lang |
Source language – "en" for english is the only supported one. |
dst_file |
save the translated file as. If NULL temporary file will be created. |
Translated file path/location (class: character)
# example code
my_qsf_file <- system.file("examples/iat-flowins.qsf", package = "tr.iatgen")
translate.qsf(file = my_qsf_file, lang = "pt-pt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.