Skip to content

Commit

Permalink
Add ES to DeepL translations; DeepL translate ES/HU periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
amcsi committed May 22, 2024
1 parent 4c8f1f0 commit 5d7c204
Show file tree
Hide file tree
Showing 7 changed files with 2,856 additions and 339 deletions.
3 changes: 2 additions & 1 deletion app/Console/Commands/ImportAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function handle()
}

$this->call(AutoTranslateCommand::COMMAND);
$this->call(DeeplTranslateCommand::COMMAND);
$this->call(DeeplTranslateCommand::COMMAND, ['--locale' => 'es']);
$this->call(DeeplTranslateCommand::COMMAND, ['--locale' => 'hu']);

if ($this->option('images')) {
$this->call(ImageDownloadCommand::COMMAND, ['--new-only' => true]);
Expand Down
3 changes: 2 additions & 1 deletion app/I18n/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ class Locale
{
public const JAPANESE = 'ja';
public const ENGLISH = 'en';
public const SPANISH = 'es';
public const HUNGARIAN = 'hu';

public const ENGLISH_AUTO = 'en-auto';

public const ENGLISH_DEEPL = 'en-deepl';

public const TRANSLATION_LOCALES = [self::ENGLISH, self::HUNGARIAN];
public const TRANSLATION_LOCALES = [self::ENGLISH, self::SPANISH, self::HUNGARIAN];
}
Loading

0 comments on commit 5d7c204

Please sign in to comment.