nicokaiser / hugo-theme-gallery

Gallery Theme for Hugo
https://nicokaiser.github.io/hugo-theme-gallery/
MIT License
305 stars 85 forks source link

feat: Create ja.yaml #66

Closed salixor closed 3 months ago

salixor commented 3 months ago

Adding Japanese support required to change how the "X photos in Y albums" sentence was handled, as Japanese doesn't say it the same way. Let me know if you feel like there's a better way to handle this !

I also took the opportunity to remove lang.FormatNumber as we only ever get integers, and their formatting is language independent.

nicokaiser commented 3 months ago

Thanks for your PR! Could you re-add the lang.formatNumber please? The number formatting is not language independent: it will add a thousands separator, e.g. in German it will show "1.209 Fotos" (instead of "1209 Fotos"), in English it will most probably show "1,209 photos", etc.

The other changes look good!

salixor commented 3 months ago

Oh, indeed ! Thousands separators slipped my mind for some reason. I'm changing this.