Currently, lessons in another language than English use English for the code chunk output.
You can see an example in the https://github.com/swcarpentry/r-novice-gapminder-es lesson:
https://github.com/swcarpentry/r-novice-gapminder-es/blob/e4735e1d6e735a222d24b6a4fb9cc776fda096f0/06-data-subsetting.md?plain=1#L220-L222
Yet, in this situation, R is able to return the error message in Spanish, provided the LANGUAGE env var is set to es:
withr::with_language(
"es",
letters[-1:3]
)
#> Error in letters[-1:3]: solamente 0's pueden ser mezclados con subscritos negativos
Created on 2025-03-27 with reprex v2.1.1
Should sandpaper by default pick up the lang config setting and use it for the code chunk output?
I guess it mostly depends on which language users are expected to use in their system or IDE.
I'm not completely sure if this is only relevant for the R lessons, or all lessons.
Currently, lessons in another language than English use English for the code chunk output.
You can see an example in the https://github.com/swcarpentry/r-novice-gapminder-es lesson:
https://github.com/swcarpentry/r-novice-gapminder-es/blob/e4735e1d6e735a222d24b6a4fb9cc776fda096f0/06-data-subsetting.md?plain=1#L220-L222
Yet, in this situation, R is able to return the error message in Spanish, provided the
LANGUAGEenv var is set toes:Created on 2025-03-27 with reprex v2.1.1
Should sandpaper by default pick up the
langconfig setting and use it for the code chunk output?I guess it mostly depends on which language users are expected to use in their system or IDE.
I'm not completely sure if this is only relevant for the R lessons, or all lessons.