Feature request: localized date formatting (month names follow `lang`)

Abierto
#1,323 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
html, rust

Línea de trabajo

Start with the Dates guide's note that named date styles render in English, and with how lang and date-format reach the title-page date in the Rust source. The issue proposes reusing the month names in the CSL locale files q2 already bundles, so check whether those files are loaded at render time. Done means date: 2024-03-15 with lang: nl renders "15 maart 2024" for "D MMMM YYYY", and MMM gives the Dutch short forms. The source of the month names is still an open design question.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Tested with q2 0.47.0.

With lang: nl, date: 2024-03-15 renders as "March 15, 2024" in HTML, and date-format: "D MMMM YYYY" gives "15 March 2024". Quarto 1 gives "15 maart 2024". The Dates guide says named styles render in English for now and that localization is planned. I couldn't find an issue tracking it, so this is one.

For non-English reports, the date on the title page is the most visible generated text. The CSL locales q2 already ships for citations contain month names for each language (month-01 … month-12, plus short forms), which might be a source for MMMM and MMM.

Lenguaje dominante
Rust
Estrellas
316
Forks
23
Merge medio
11 h 49 min
PR fusionados (30 d)
245

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quarto-dev/q2

Todos los issues de quarto-dev/q2

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.