diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 6bdc5aa..a95cbaf 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -492,7 +492,7 @@ function locale_js_alter(&$javascript, AttachedAssetsInterface $assets) { 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') { + if ($item['data'] === 'core/modules/locale/js/locale.translation.js') { continue; } $files[] = $item['data']; diff --git a/core/modules/locale/src/Tests/LocaleLibraryAlterTest.php b/core/modules/locale/src/Tests/LocaleLibraryAlterTest.php index 682af83..4f2b62d 100644 --- a/core/modules/locale/src/Tests/LocaleLibraryAlterTest.php +++ b/core/modules/locale/src/Tests/LocaleLibraryAlterTest.php @@ -34,6 +34,6 @@ public function testLibraryAlter() { $assets = new AttachedAssets(); $assets->setLibraries(['core/jquery.ui.datepicker']); $js_assets = $this->container->get('asset.resolver')->getJsAssets($assets, FALSE)[1]; - $this->assertTrue(array_key_exists('core/modules/locale/locale.datepicker.js', $js_assets), 'locale.datepicker.js added to scripts.'); + $this->assertTrue(array_key_exists('core/modules/locale/js/locale.datepicker.js', $js_assets), 'locale.datepicker.js added to scripts.'); } } diff --git a/core/modules/system/tests/modules/twig_theme_test/twig_theme_test.js b/core/modules/system/tests/modules/twig_theme_test/js/twig_theme_test.js similarity index 100% rename from core/modules/system/tests/modules/twig_theme_test/twig_theme_test.js rename to core/modules/system/tests/modules/twig_theme_test/js/twig_theme_test.js