update generate client to remove copy translations

This commit is contained in:
Jérémy Munsch 2021-08-18 08:47:52 +02:00
parent fb9de3325e
commit eef979ec8e

View file

@ -43,7 +43,6 @@ class GenerateCrmClient extends Command
{
$this->copyEnums();
$this->copyExceptions();
$this->copyTranslations();
$this->copyRoutesList();
$this->copyApiConfigInfo();
}
@ -119,18 +118,6 @@ class GenerateCrmClient extends Command
}
}
private function copyTranslations()
{
$this->info('Copy Translations');
$rootTarget = app_path('../' . self::TARGET . '/..');
$source = \resource_path('lang/en/validation.php');
$dest = "$rootTarget/resources/lang/en/validation.php";
if (File::exists($dest)) {
File::delete($dest);
}
File::copy($source, $dest);
}
/**
* Copy Classes to specified folder
*