Multilingual support for notifications and system messages #134
Replies: 2 comments 9 replies
-
This is a good idea! I like this architecture, though I might suggest making it an option in The only one that I think will be different is the A quick word about any PRs you might send soon - we're in the process of getting things on CRAN as a v0.4.0, so that will be our immediate priority. You might want to change until we get it there in case we have to change things based on feedback from CRAN. |
Beta Was this translation helpful? Give feedback.
-
This is now supported with PR #138 thanks to @StefanMunnes! Really nice feature addition. This allows system messages and date formats to be specified by a language using the |
Beta Was this translation helpful? Give feedback.
-
Description
For all people who create non-English surveys, such as myself with mainly German surveys, I would find it useful to have a multilingual option for the standard text output.
As far as I can see, this concerns the warning messages for required questions, the final page, survey rating, redirect and the standard values for next and exit survey buttons. There are also validation output for function arguments (e.g.
sd_output(type)
).I'm not talking about error messages in general or the admin page, just what the survey participants might see.
To achieve this, I would have an additional config YAML/JSON or R file that hast all provided translations and the option in the yaml-header in the survey.qmd file to choose the correct language. One could also think about the possibility for the user, to provide an additional config file in their project folder, if the needed language is not available from default.
translations.yml
survey.qmd
If you like this idea, I'm willing to prepare a PR.
Beta Was this translation helpful? Give feedback.
All reactions