Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Problem with handling polish locale #80

Closed
marcinkunert opened this issue Nov 17, 2016 · 3 comments
Closed

Problem with handling polish locale #80

marcinkunert opened this issue Nov 17, 2016 · 3 comments

Comments

@marcinkunert
Copy link

Steps to reproduce:

  1. Include Moment.js
  2. Include moment/locale/pl.js - Moment.js will automagically use this locale now.
  3. Problem occurs:
Cannot read property '10' of undefined
    at getMonthYearToDisplay (multipleDatePicker.js:177)
    at Scope.scope.generate (multipleDatePicker.js:438)
    at multipleDatePicker.js:243
    at Scope.$digest (angular.js:17524)
    at Scope.$apply (angular.js:17790)
    at angular.js:19621
    at completeOutstandingRequest (angular.js:5964)
    at angular.js:6243

I've tried printing current date:

moment().format('MMMM Do YYYY, h:mm:ss a')

worked without any problems and displayed the date in polish.

@mgohin
Copy link
Contributor

mgohin commented Nov 17, 2016

Found it, strange for polish there is no _months on the localData.
But it doesn't matter, I should have done it better since day 1.
Pushing new release in 2min ;)

@mgohin
Copy link
Contributor

mgohin commented Nov 17, 2016

Available in 2.1.1, let me know if it's ok ;)

@marcinkunert
Copy link
Author

Works like a charm, thanks for the quick release!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants