-
Notifications
You must be signed in to change notification settings - Fork 196
Adjust language plural rules #263
base: master
Are you sure you want to change the base?
Conversation
8ad6fc2
to
c9ac4e5
Compare
layouts/_default/date/date.nl.html
Outdated
@@ -0,0 +1,3 @@ | |||
{{- $month_names := slice "Januari" "Februari" "Maart" "April" "Mei" "Juni" "Juli" "Augustus" "September" "Oktober" "November" "December" -}} | |||
{{- $month := sub .Date.Month 1 -}} | |||
{{ .Date.Day }} {{ index $month_names $month }} {{ .Date.Year }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to myself: missing EOL
I can add Chinese translations to month names. That's easy: cardinal number 🔢 + month 🌙. Lemme try this now. |
I was originally going to add them but didn't know if that was meaningful for Korean, Japanese, or Chinese since its just |
I'll focus on my native language, and leave the Korean & Japanese part coz I've never learnt them. As a Chinese l10n, I recommend using Arabic digits
These three Chinese characters are the same in 🇹🇼 Traditional Chin. and 🇨🇳 Simplified Chin. [TL;DR] It's okay to put
Unluckily, Hugo doesn't provide switch statements. Apart from lacking time to search for the right Hugo syntax for that, maintenance would be a challenge. I found both
The three groups of Arabic digits From my experience, French month names begin with a small letter. A relevant Hugo page gives an example:
|
Description
Using https://www.unicode.org/cldr/cldr-aux/charts/28/supplemental/language_plural_rules.html to update i18n for all languages.
Motivation and Context
Closes #233
Closes #225
Screenshots (if appropriate):
Checklist:
theme.toml
, as applicable.