src/Console/Commands/Publish/Translations.php
public function handle()
    {
        // Gather arguments...
        $publish = $this->option('y') ?: false;
        $force = $this->option('force') ?: false;

        if (! $publish) {
            $publish = $this->confirm('Publish Canvas core translation files?');
        }

        // Publish translations...
        if ($publish) {
            $exitCode = Artisan::call('vendor:publish', [
                '--provider' => 'Canvas\CanvasServiceProvider',
                '--tag' => 'translations',
                '--force' => $force,
            ]);
            $this->line('<info>✔</info> Success! Canvas core translation files have been published.'.PHP_EOL);
        }
    }
public function handle()
    {
        // Gather arguments...
        $publish = $this->option('y') ?: false;
        $force = $this->option('force') ?: false;

        if (! $publish) {
            $publish = $this->confirm('Publish Canvas core translation files?');
        }

        // Publish translations...
        if ($publish) {
            $exitCode = Artisan::call('vendor:publish', [
                '--provider' => 'Canvas\CanvasServiceProvider',
                '--tag' => 'translations',
                '--force' => $force,
            ]);
            $this->line('<info>✔</info> Success! Canvas core translation files have been published.'.PHP_EOL);
        }
    }
Execute the console command.

@return mixed