You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Utils/TranslatorManager.php
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,10 @@ private function buildCoreLanguageDirectory(
103
103
$language,
104
104
$directoryRoot
105
105
) {
106
+
$output = newConsoleOutput();
107
+
$input = newArrayInput([]);
108
+
$io = newDrupalStyle($input, $output);
109
+
106
110
$coreLanguageDirectory =
107
111
$directoryRoot .
108
112
sprintf(
@@ -126,6 +130,12 @@ private function buildCoreLanguageDirectory(
126
130
if (!isset($languageDirectory)) {
127
131
if ($language == 'en') {
128
132
thrownew \Exception('No languages found. Make sure you have installed a console language package in a supported directory');
133
+
}else{
134
+
$io->warning(
135
+
sprintf(
136
+
'Language not available please execute this command in order to get the language locally using composer, run composer require drupal/console-'.$language.''
0 commit comments