Could be nice to have the calendar in the current drupal site language without the need to manually change the language select list at the bottom.
If needed, we can add an option in the config "Default to the current site language" which will lead to this behavior.
I have tried without success to set the language with JS with the following code
(function ($, Drupal, once) {
Drupal.behaviors.calendar_language = {
attach: function (context, settings) {
once('set-language', '#locale-selector-0', context).forEach(function (element) {
var langCode = drupalSettings.path.currentLanguage;
$('#locale-selector-0').val(langCode).change();
});
}
};
})(jQuery, Drupal, once);
Closed: works as designed
5.1
Code