diff --git a/src/translations/day_name.toml b/src/translations/day_name.toml index e6c5457..54080be 100644 --- a/src/translations/day_name.toml +++ b/src/translations/day_name.toml @@ -50,4 +50,13 @@ 4 = "חמישי" 5 = "שישי" 6 = "שבת" -7 = "ראשון" \ No newline at end of file +7 = "ראשון" + +[zh] +1 = "星期一" +2 = "星期二" +3 = "星期三" +4 = "星期四" +5 = "星期五" +6 = "星期六" +7 = "星期天" diff --git a/src/translations/month_name.toml b/src/translations/month_name.toml index ca245d9..ce2fb97 100644 --- a/src/translations/month_name.toml +++ b/src/translations/month_name.toml @@ -80,4 +80,18 @@ 9 = "ספטמבר" 10 = "אוקטובר" 11 = "נובמבר" -12 = "דצמבר" \ No newline at end of file +12 = "דצמבר" + +[zh] +1 = "一月" +2 = "二月" +3 = "三月" +4 = "四月" +5 = "五月" +6 = "六月" +7 = "七月" +8 = "八月" +9 = "九月" +10 = "十月" +11 = "十一月" +12 = "十二月" diff --git a/tests/test_formats.typ b/tests/test_formats.typ index fe66908..1df1ba1 100644 --- a/tests/test_formats.typ +++ b/tests/test_formats.typ @@ -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") \ No newline at end of file +#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 日,星期四") \ No newline at end of file diff --git a/tests/test_translations.typ b/tests/test_translations.typ index b1f06ba..477e979 100644 --- a/tests/test_translations.typ +++ b/tests/test_translations.typ @@ -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) == "一月") \ No newline at end of file