Skip to content

Commit

Permalink
Do not translate any comment fields with full auto-translate
Browse files Browse the repository at this point in the history
  • Loading branch information
amcsi committed Feb 15, 2024
1 parent 2fa37f2 commit 9dd5336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoTranslateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function (
$japaneseCard->replicate()->setAttribute('locale', $locale);

// Iterate the auto-translatable fields.
foreach (self::AUTO_TRANSLATE_FIELDS as $key) {
foreach (['basic_abilities', 'ability_description', 'ability_cost'] as $key) {
try {
$englishCard[$key] = $autoTranslator->autoTranslate($japaneseCard->$key);
} catch (\LogicException $e) {
Expand Down

0 comments on commit 9dd5336

Please sign in to comment.