Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/translations/day_name.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@
4 = "חמישי"
5 = "שישי"
6 = "שבת"
7 = "ראשון"
7 = "ראשון"

[zh]
1 = "星期一"
2 = "星期二"
3 = "星期三"
4 = "星期四"
5 = "星期五"
6 = "星期六"
7 = "星期天"
16 changes: 15 additions & 1 deletion src/translations/month_name.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,18 @@
9 = "ספטמבר"
10 = "אוקטובר"
11 = "נובמבר"
12 = "דצמבר"
12 = "דצמבר"

[zh]
1 = "一月"
2 = "二月"
3 = "三月"
4 = "四月"
5 = "五月"
6 = "六月"
7 = "七月"
8 = "八月"
9 = "九月"
10 = "十月"
11 = "十一月"
12 = "十二月"
5 changes: 4 additions & 1 deletion tests/test_formats.typ
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
#assert(custom-date-format(hebrew_date, "day, ה-DD לmonth, YYYY", "he") == "שבת, ה-23 לנובמבר, 2024")

#let hebrew_date = datetime(year: 2024, month: 12, day: 7)
#assert(custom-date-format(hebrew_date, "day, ה-DD לmonth, YYYY", "he") == "שבת, ה-07 לדצמבר, 2024")
#assert(custom-date-format(hebrew_date, "day, ה-DD לmonth, YYYY", "he") == "שבת, ה-07 לדצמבר, 2024")

#let chinese_date = datetime(year: 2024, month: 5, day: 23)
#assert(custom-date-format(chinese_date, "YYYY 年MMMM DD 日,day", "zh") == "2024 年五月 11 日,星期四")
2 changes: 2 additions & 0 deletions tests/test_translations.typ
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
#assert(month-name(1, "pt") == "janeiro")
#assert(day-name(7, "he") == "ראשון")
#assert(month-name(1, "he") == "ינואר")
#assert(day-name(1, "zh", true) == "星期一")
#assert(month-name(1, "zh", true) == "一月")