diff --git a/core/modules/locale/locale.admin.js b/core/modules/locale/locale.admin.js
index 2063246..2be2518 100644
--- a/core/modules/locale/locale.admin.js
+++ b/core/modules/locale/locale.admin.js
@@ -16,7 +16,7 @@ Drupal.behaviors.localeTranslateDirty = {
         $marker.fadeIn('slow');
       });
       // Highlight changed row.
-      $form.on('change.localeTranslateDirty', 'tr', function (e) {
+      $form.on('change.localeTranslateDirty', 'tr', function () {
         var
           $row = $(this),
           $rowToMark = $row.once('localemark'),
@@ -46,7 +46,6 @@ Drupal.behaviors.localeTranslateDirty = {
 Drupal.behaviors.hideUpdateInformation = {
   attach: function (context, settings) {
     var $table = $('#locale-translation-status-form').once('expand-updates');
-    var effect = settings.hideUpdates;
     if ($table.length) {
       var $tbodies = $table.find('tbody');
 
diff --git a/core/modules/locale/locale.bulk.js b/core/modules/locale/locale.bulk.js
index 02cee5e..6886c8e 100644
--- a/core/modules/locale/locale.bulk.js
+++ b/core/modules/locale/locale.bulk.js
@@ -8,11 +8,11 @@
  * This only works if the file name ends with "LANGCODE.po".
  */
 Drupal.behaviors.importLanguageCodeSelector = {
-  attach: function (context, settings) {
+  attach: function () {
     var $form = $('#locale-translate-import-form').once('autodetect-lang');
     if ($form.length) {
       var $langcode = $form.find('.langcode-input');
-      var $file = $form.find('.file-import-input')
+      $form.find('.file-import-input')
         .on('change', function () {
           var matches = $(this).val().match(/\.([\-\w]+)\.po/);
           if (matches && $langcode.find('option[value="' + matches[1] + '"]').length) {
diff --git a/core/modules/locale/locale.datepicker.js b/core/modules/locale/locale.datepicker.js
index 55edf37..db9e233 100644
--- a/core/modules/locale/locale.datepicker.js
+++ b/core/modules/locale/locale.datepicker.js
@@ -3,7 +3,7 @@
  * Datepicker JavaScript for the Locale module.
  */
 
-(function ($) {
+(function ($, drupalSettings) {
 
 "use strict";
 
@@ -11,7 +11,7 @@
  * Attaches language support to the jQuery UI datepicker component.
  */
 Drupal.behaviors.localeDatepicker = {
-  attach: function(context, settings) {
+  attach: function() {
     // This code accesses Drupal.settings and localized strings via Drupal.t().
     // So this code should run after these are initialized. By placing it in an
     // attach behavior this is assured.
@@ -78,9 +78,9 @@ Drupal.behaviors.localeDatepicker = {
       dateFormat: Drupal.t('mm/dd/yy'),
       firstDay: 0,
       isRTL: 0
-    }, Drupal.settings.jquery.ui.datepicker);
+    }, drupalSettings.jquery.ui.datepicker);
     $.datepicker.setDefaults($.datepicker.regional['drupal-locale']);
   }
 };
 
-})(jQuery);
+})(jQuery, drupalSettings);
