Skip to content

Instantly share code, notes, and snippets.

@ukasiu
Created January 3, 2014 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukasiu/8248216 to your computer and use it in GitHub Desktop.
Save ukasiu/8248216 to your computer and use it in GitHub Desktop.
Polish long date format translation with grammatical cases aka stycznia, lutego, marca...
# 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
# 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