I'm using CalendarDatePicker which uses LocalizableJSLink to select appropriate language to display calendar in.
Is it possible to override this choice somehow? Passing custom calendar_lang doesn't work, it still uses value from Accept-Language header.
ATM you can't do that, but you can subclass and define a different
javascript.
What I suggest to do is this.
if calendar_lang is None:
use the LocalizableJSLink (the last link should point to en that we
know is a good existing fall-back)
else:
use a normal JSLink that uses calendar_lang
I think this is the most intuitive way, when you define calendar_lang
you want it to be the calendar lang, no matter what the Accept-Language
is.
Ciao
Michele