moment: Spanish: don't add . after short month/day names
A format DD-MMM-YYYY for Spanish will translate in 29-nov.-2013 but in 29-nov-2013 in Windows (and Java).
monthsShort : "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Reactions: 1
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Better Spanish months in special case Fixes #1234. Properly format YYYY-MMM-DD expressions -- no dot in the month name in this case. — committed to ichernev/moment by ichernev 10 years ago
I am seeing this for German locale as well… maybe it’s a good idea to fan out the fix to all locales that has a dot in it’s monthsShort names?
And also it not only applies to -MMM-, the dot also looks weird when using formats like DD.MMM.YYYY (results in 29-nov.-2013) and DD/MMM/YYYY (results in 29/nov./2013) too.
Same in French for all shorten strings… Why are you adding this dot everywhere ? This shouldn’t be hardcoded, this is easy to add a dot in the format string if we want one, but that’s more complicated to get rid of it if we don’t (which is actually the default).