diff --git a/core/misc/drupal.js b/core/misc/drupal.js
index 4244ed6..bbb05c0 100644
--- a/core/misc/drupal.js
+++ b/core/misc/drupal.js
@@ -1,7 +1,7 @@
 /**
  * Base framework for Drupal-specific JavaScript, behaviors, and settings.
  */
-window.Drupal = {behaviors: {}, locale: {}};
+window.Drupal = {behaviors: {}, locale: window.drupalTranslations || {}};
 
 // Class indicating that JS is enabled; used for styling purpose.
 document.documentElement.className += ' js';
diff --git a/core/modules/locale/locale.libraries.yml b/core/modules/locale/locale.libraries.yml
index 69efb02..de92ebc 100644
--- a/core/modules/locale/locale.libraries.yml
+++ b/core/modules/locale/locale.libraries.yml
@@ -18,3 +18,12 @@ drupal.locale.datepicker:
     - core/jquery
     - core/drupal
     - core/drupalSettings
+
+translations:
+  # No sensible version can be specified, since the translations may change at
+  # any time.
+  js:
+    # This file does not actually exist; it's a placeholder file that will be
+    # overriden by locale_js_alter(), to use the file that contains the actual
+    # translations, for the language used in the current request.
+    locale.translation.js: {}
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index 0b07f54..82e9615 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -447,14 +447,32 @@ function locale_cache_flush() {
  * Implements hook_js_alter().
  */
 function locale_js_alter(&$javascript, AttachedAssetsInterface $assets) {
+  // @todo remove this in https://www.drupal.org/node/2421323
   $files = array();
   foreach ($javascript as $item) {
     if (isset($item['type']) && $item['type'] == 'file') {
+      // Ignore the JS translation placeholder file.
+      if ($item['data'] === 'core/modules/locale/locale.translation.js') {
+        continue;
+      }
       $files[] = $item['data'];
     }
   }
-  if ($translation_file = locale_js_translate($files)) {
-    $javascript[$translation_file] = drupal_js_defaults($translation_file);
+
+  // Replace the placeholder file with the actual JS translation file.
+  $placeholder_file = 'core/modules/locale/locale.translation.js';
+  if (isset($javascript[$placeholder_file])) {
+    if ($translation_file = locale_js_translate($files)) {
+      $js_translation_asset = &$javascript[$placeholder_file];
+      $js_translation_asset['data'] = $translation_file;
+      // @todo Remove this when https://www.drupal.org/node/1945262 lands.
+      // Decrease the weight so that the translation file is loaded first.
+      $js_translation_asset['weight'] = $javascript['core/misc/drupal.js']['weight'] - 0.001;
+    }
+    else {
+      // If no translation file exists, then remove the placeholder JS asset.
+      unset($javascript[$placeholder_file]);
+    }
   }
 }
 
@@ -537,6 +555,15 @@ function locale_library_info_alter(array &$libraries, $module) {
       'firstDay' => NULL,
     ];
   }
+
+  // When the locale module is enabled, we update the core/drupal library to
+  // have a dependency on the locale/translations library, which provides
+  // window.drupalTranslations, containing the translations for all strings in
+  // JavaScript assets in the current language.
+  // @see locale_js_alter()
+  if ($module === 'core' && isset($libraries['drupal'])) {
+    $libraries['drupal']['dependencies'][] = 'locale/translations';
+  }
 }
 
 /**
@@ -1203,7 +1230,7 @@ function _locale_rebuild_js($langcode = NULL) {
       $data['pluralFormula'] = $locale_plurals[$language->getId()]['formula'];
     }
 
-    $data = 'Drupal.locale = ' . Json::encode($data) . ';';
+    $data = 'window.drupalTranslations = ' . Json::encode($data) . ';';
     $data_hash = Crypt::hashBase64($data);
   }
 
diff --git a/core/modules/locale/locale.translation.js b/core/modules/locale/locale.translation.js
new file mode 100644
index 0000000..6d611a0
--- /dev/null
+++ b/core/modules/locale/locale.translation.js
@@ -0,0 +1 @@
+// This file is a placeholder and dynamically replaced in locale_js_alter().
diff --git a/core/modules/locale/src/Tests/LocaleJavascriptTranslationTest.php b/core/modules/locale/src/Tests/LocaleJavascriptTranslationTest.php
index 6d6917a..e0e17b8 100644
--- a/core/modules/locale/src/Tests/LocaleJavascriptTranslationTest.php
+++ b/core/modules/locale/src/Tests/LocaleJavascriptTranslationTest.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\locale\Tests;
 
+use Drupal\Core\Language\LanguageInterface;
 use Drupal\simpletest\WebTestBase;
 use Drupal\Component\Utility\String;
 
@@ -93,4 +94,68 @@ public function testFileParsing() {
 
     $this->assertEqual(count($source_strings), count($test_strings), 'Found correct number of source strings.');
   }
+
+  /**
+   * Ensure that the translations js is added after its dependencies.
+   */
+  public function testLocaleTranslationJsDependencies() {
+    // User to add and remove language.
+    $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages', 'translate interface'));
+
+    // Add custom language.
+    $this->drupalLogin($admin_user);
+    // Code for the language.
+    $langcode = 'es';
+    // The English name for the language.
+    $name = $this->randomMachineName(16);
+    // The domain prefix.
+    $prefix = $langcode;
+    $edit = array(
+      'predefined_langcode' => 'custom',
+      'langcode' => $langcode,
+      'label' => $name,
+      'direction' => LanguageInterface::DIRECTION_LTR,
+    );
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
+
+    // Set path prefix.
+    $edit = array("prefix[$langcode]" => $prefix);
+    $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
+
+    // This forces locale.admin.js string sources to be imported, which contains
+    // the next translation.
+    $this->drupalGet($prefix . '/admin/config/regional/translate');
+
+    // Translate a string in locale.admin.js to langcode.
+    $strings = \Drupal::service('locale.storage')
+      ->getStrings(array(
+        'source' => 'Show description',
+        'type' => 'javascript',
+        'name' => 'core/modules/locale/locale.admin.js',
+      ));
+    $string = $strings[0];
+
+    // Translate a string.
+    $this->drupalPostForm(NULL, ['string' => 'Show description'], t('Filter'));
+    $edit = ['strings[' . $string->lid . '][translations][0]' => $this->randomString(16)];
+    $this->drupalPostForm(NULL, $edit, t('Save translations'));
+
+    // Loading the Translate page should refresh the translations js and import
+    // the sources.
+    $this->drupalGet($prefix . '/admin/config/regional/translate');
+
+    // We need the generated hash in the js filename.
+    $js_translation_files = \Drupal::state()->get('locale.translation.javascript');
+    $js_filename = $prefix . '_' . $js_translation_files[$prefix] . '.js';
+
+    // Get the src of the script previous to drupal.js which contains the
+    // translations.
+    $xpath = '//script[contains(@src, "drupal.js")]/preceding-sibling::script[contains(@src, "' . $js_filename . '")]/@src';
+    $elements = $this->xpath($xpath);
+    $filename = explode('?', basename(((string)($elements[0]['src']))))[0];
+
+    // If the script was there, translations are included successfully.
+    $this->assertEqual($filename, $js_filename);
+  }
+
 }
