FEATURE: create directory for translations if not exist
This commit is contained in:
@@ -36,6 +36,10 @@ class Translations extends Command
|
|||||||
$defaultLocalesDir = $dir . '/' . $defaultLocales;
|
$defaultLocalesDir = $dir . '/' . $defaultLocales;
|
||||||
$currentLocalesDir = $dir . '/' . $currentLocales;
|
$currentLocalesDir = $dir . '/' . $currentLocales;
|
||||||
|
|
||||||
|
if (!is_dir($currentLocalesDir)) {
|
||||||
|
File::makeDirectory($currentLocalesDir);
|
||||||
|
}
|
||||||
|
|
||||||
$this->compareTranslationsInDirectory($defaultLocalesDir, $currentLocalesDir);
|
$this->compareTranslationsInDirectory($defaultLocalesDir, $currentLocalesDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user