File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/plugins/translation/src/Console/DownloadLocaleCommand.php
Back
<?php namespace Botble\Translation\Console; use Botble\Translation\Manager; use Illuminate\Console\Command; use Illuminate\Contracts\Console\PromptsForMissingInput; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputArgument; #[AsCommand('cms:translations:download-locale', 'Download translation files from https://github.com/botble/translations')] class DownloadLocaleCommand extends Command implements PromptsForMissingInput { public function handle(Manager $manager): int { $this->components->info('Downloading...'); $result = $manager->downloadRemoteLocale($this->argument('locale')); if ($result['error']) { $this->components->error($result['message']); return self::FAILURE; } $this->components->info($result['message']); return self::SUCCESS; } protected function configure(): void { $this->addArgument('locale', InputArgument::REQUIRED, 'The locale that you want to download'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.75 |
proxy
|
phpinfo
|
Settings