| @@ 50-63 (lines=14) @@ | ||
| 47 | * |
|
| 48 | * @return mixed |
|
| 49 | */ |
|
| 50 | public function handle() |
|
| 51 | { |
|
| 52 | $numTargetLanguages = count($this->targetLanguages); |
|
| 53 | ||
| 54 | $this->line(implode(' ', [ |
|
| 55 | 'Found', |
|
| 56 | $numTargetLanguages, |
|
| 57 | Str::plural('language', $numTargetLanguages), |
|
| 58 | 'to translate', |
|
| 59 | ])); |
|
| 60 | ||
| 61 | $this->translatePhpFiles(); |
|
| 62 | $this->translateJsonFiles(); |
|
| 63 | } |
|
| 64 | private function translatePhpFiles() |
|
| 65 | { |
|
| 66 | $this->line('Translating PHP files'); |
|
| @@ 48-61 (lines=14) @@ | ||
| 45 | * |
|
| 46 | * @return mixed |
|
| 47 | */ |
|
| 48 | public function handle() |
|
| 49 | { |
|
| 50 | $numTargetLanguages = count($this->targetLanguages); |
|
| 51 | ||
| 52 | $this->line(implode(' ', [ |
|
| 53 | 'Found', |
|
| 54 | $numTargetLanguages, |
|
| 55 | Str::plural('language', $numTargetLanguages), |
|
| 56 | 'to translate', |
|
| 57 | ])); |
|
| 58 | ||
| 59 | $this->translatePhpFiles(); |
|
| 60 | $this->translateJsonFiles(); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function translatePhpFiles() |
|
| 64 | { |
|