Fix language detection in datepicker

When a full locale is set in project (fr_FR) the default option language is incorrect as it should be 'fr' instead of 'fr_FR' for jquery translation