diff --git a/core/modules/system/src/Tests/Installer/InstallerLanguageTest.php b/core/modules/system/src/Tests/Installer/InstallerLanguageTest.php
index a025b35..5c035c9 100644
--- a/core/modules/system/src/Tests/Installer/InstallerLanguageTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerLanguageTest.php
@@ -40,4 +40,16 @@ function testInstallerTranslationFiles() {
     }
   }
 
+  /**
+   * Tests for proper caching in non-English languages.
+   */
+  function testInstallerTranslationCache() {
+    require_once 'core/includes/install.inc';
+
+    $info_en = install_profile_info('standard', 'en');
+    $info_nl = install_profile_info('standard', 'nl');
+
+    $this->assertFalse(in_array('locale', $info_en['dependencies']), 'Locale is not set in English language.');
+    $this->assertTrue(in_array('locale', $info_nl['dependencies']), 'Locale is set when installing in Dutch.');
+  }
 }
