Replies: 2 comments
-
What is the link with Quarto? You question seems to only involve the use of R and locales. FYI, Quarto does not use R for dates, see https://quarto.org/docs/reference/dates.html. |
Beta Was this translation helpful? Give feedback.
-
The internationalization works in Quarto through the ---
title: "dash-test"
format: html
date: today
date-format: "MMM, YYYY"
lang: fr
engine: knitr
---
# Setting the date
Today's date in french is `r format(x = Sys.Date(), format = "%B, %Y")` Quarto does not look at your R locale or the computer locale. default |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using
Date
objects, there are some options that are influenced by the language set on the PC where the command is executed. For example, if one runs this in-line chunk:r format(x = Sys.Date(), format = “%B, %Y”)
, the month name will be defined according to the language of the PC where that chunk (the qmd file) is run.So, is there any way to define the language (in the yaml header maybe) in which a .qmd file should be compiled so that the result is the same (e.g. month names in English) regardless of the language set on the PC where it is executed?
Beta Was this translation helpful? Give feedback.
All reactions