Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Date filter (still) shows incorrect month names for Slavic languages #13999
As a follow up of this issue:
Languages like Polish and Croatian have different versions of months names depending on the context.
The Angular's localization files now have both versions present ("MONTH" and "STANDALONEMONTH"). But the date filter doesn't seems to be always using the right ones, actually it still only seems to use the "MONTH" version at all times
For example if you use "MMMM" to just get the month's name it should show the version from "STANDALONEMONTH".
Would it be possible to at least make the plain "MMMM" one behave correctly? Because if it does then AngularUI's datepicker will work correctly too. Thanks.
Or introduce a new code, like five M's ('MMMMM') or something for the standalone version so people can choose themselves what version should be used.
I'm on 1.4.9 by the way.
I couldn't find it properly documented anywhere, but the Closure Library (which we get our locale data from), seem to be using
I think it's reasonable to use
referenced this issue
Feb 11, 2016
Using 'LLLL' sounds good, I'm looking forward for a PR or update.
'LLL' for short standalone month doesn't seem really necessary because it's the last part of the month's names that is different so the short versions are the same anyway. Maybe there is an exception somewhere, but at least not in Polish or Croatian.