diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index fb18fe3..3297bdf 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1746,8 +1746,9 @@
 
     // Set up a batch to import translations for drupal core. Translation import
     // for contrib modules happens in install_import_translations_remaining.
+    $locale_module_exists = \Drupal::moduleHandler()->moduleExists('locale');
     foreach ($languages as $language) {
-      if (locale_translation_use_remote_source()) {
+      if ($locale_module_exists && locale_translation_use_remote_source()) {
         $operations[] = array('locale_translation_batch_fetch_download', array('drupal', $language->getId()));
       }
       $operations[] = array('locale_translation_batch_fetch_import', array('drupal', $language->getId(), array()));
