diff --git a/app/Abstracts/View/Components/Documents/Show.php b/app/Abstracts/View/Components/Documents/Show.php index b104a6ad9..1417c7a6b 100644 --- a/app/Abstracts/View/Components/Documents/Show.php +++ b/app/Abstracts/View/Components/Documents/Show.php @@ -741,9 +741,7 @@ abstract class Show extends Component return $textRecurringType; } - $default_key = config('type.' . static::OBJECT_TYPE . '.' . $type . '.translation.prefix'); - - $translation = $this->getTextFromConfig($type, 'recurring_tye', $default_key); + $translation = config('type.' . static::OBJECT_TYPE . '.' . $type . '.translation.tab_document'); if (! empty($translation)) { return $translation; diff --git a/app/Abstracts/View/Components/Transactions/Show.php b/app/Abstracts/View/Components/Transactions/Show.php index 143d00940..4e2ef5d90 100644 --- a/app/Abstracts/View/Components/Transactions/Show.php +++ b/app/Abstracts/View/Components/Transactions/Show.php @@ -1113,9 +1113,7 @@ abstract class Show extends Component return $textRecurringType; } - $default_key = config('type.transaction.' . $type . '.translation.transactions'); - - $translation = $this->getTextFromConfig($type, 'recurring_type', $default_key); + $translation = config('type.transaction.' . $type . '.translation.transactions'); if (! empty($translation)) { return $translation;