Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Polish long date format translation with grammatical cases aka stycznia, lutego, marca...

View pl.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# To be added in proper place
pl:
date:
genitive_month_names:
-
- stycznia
- lutego
- marca
- kwietnia
- maja
- czerwca
- lipca
- sierpnia
- września
- października
- listopada
- grudnia
View pl.yml
1 2 3
# Polish long date format translation with grammatical cases
# https://github.com/svenfuchs/rails-i18n/issues/284
Time::DATE_FORMATS[:long_pl] = ->(time) { time.strftime("%e #{I18n.t('date.genitive_month_names')[time.month]} %Y, %H:%M") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.