The problem is that the mobiscroll object is for v4, not for v5. You will need to save a reference for the mobiscroll object as well, when loading the v5 version:
hmm… That makes sense, but unfortunately I made the changes you suggested and it’s still rendering the calendar in English, no matter what locale I pass in.
Just some feedback on this new locale setting, and perhaps you can help me transition from 4 to 5 in this regard. In V4 you had an option called “lang” and I could pass in a standard IETF-standardized language tag such as ‘en-US’ or ‘en-CA’, and so I built my system around this standard having the users select in their preferences their own locale and saving that standard IETF language tag for each user.
Now you’ve changed your scheduler to no longer accept these tags but instead a proprietary mobiscroll object, which makes my tags virtually useless.
I’m guessing, other than writing a giant switch statement and rendering my javascript from the server, there’s no easy way to do this conversion?
In v5 we moved to locale objects instead of strings, so that the packages can be tree shakeable.
There’s still a way to use the strings, like in v4. We provide a mobiscroll.locale object, which has the locale strings as keys and the locale object as value. Can be used like this: