Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timoye authored Jul 30, 2024
1 parent eeb5f88 commit 1d75854
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Drivers/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ public function translateLanguage($language){
foreach ($translations as $type => $groups) {
foreach ($groups as $group => $translations) {
foreach ($translations as $key => $value) {
//Value will be empty if it's found in the app source code but not in the source language files
//We fall back to $key in that case
$sourceLanguageValue = in_array($value[$this->sourceLanguage], ["", null]) ? $key : $value[$this->sourceLanguage];
$targetLanguageValue = $value[$language];

Expand Down

0 comments on commit 1d75854

Please sign in to comment.