sd_create_translations {surveydown} | R Documentation |
Create a translations template file
Description
This function creates a template translations.yml file in the project root directory that users can customize to modify system messages.
Usage
sd_create_translations(language = "en", path = getwd())
Arguments
language |
Character string specifying the language to use. See
https://shiny.posit.co/r/reference/shiny/1.7.0/dateinput for supported
languages. Also, if |
path |
Character string specifying the directory where the translations.yml file should be created. Defaults to the current working directory. The file should be placed in the root project folder of your surveydown survey. |
Value
Invisible NULL
.
Examples
if (interactive()) {
# Create English template
sd_create_translations()
# Create German template
sd_create_translations(language = "de")
# Create Japanese template
# Will use English messages but Japanese date picker - user can modify
# the messages as desired
sd_create_translations(language = "ja")
}
[Package surveydown version 0.12.6 Index]