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

Đang mở
#1,323 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, rust

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
316
Fork
23
Merge trung bình
11 giờ 49 phút
Pull request đã merge (30 ngày)
245

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/q2

Tất cả issue của quarto-dev/q2

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.