function locale_js_settings_alter locale_js_settings_alter(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_alter(). Generates the values for the altered core/jquery.ui.datepicker library. File
 core/modules/locale/locale.module, line 612 Enables the translation of the user interface to languages other than English.  Code function locale_js_settings_alter(&$settings, AttachedAssetsInterface $assets) {
  if (isset($settings['jquery']['ui']['datepicker'])) {
    $language_interface = \Drupal8b7c:f320:99b9:690f:4595:cd17:293a:c069languageManager()->getCurrentLanguage();
    $settings['jquery']['ui']['datepicker']['isRTL'] = $language_interface->getDirection() == LanguageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069DIRECTION_RTL;
    $settings['jquery']['ui']['datepicker']['firstDay'] = \Drupal8b7c:f320:99b9:690f:4595:cd17:293a:c069onfig('system.date')->get('first_day');
  }
}


    
{'path': 'public/docs/drupal~8/core-modules-locale-locale.module/function/locale_js_settings_alter/8.1.x.html', 'source': 'DevDocs.IO'}