Skip to content

Commit

Permalink
v6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
introwit committed Sep 10, 2020
1 parent 9c5589c commit 084a727
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All the notable changes to the Laravel Google Translate package are documented in this file:

## 6.0.1 (10-09-2020)
- Fix https://github.com/JoggApp/laravel-google-translate/issues/13

## 6.0.0 (10-09-2020)
- Added Laravel v8.x support.
- Dropped Laravel v6.x & PHPUnit v8 support.
Expand Down
4 changes: 2 additions & 2 deletions src/GoogleTranslateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function boot()
$expression = explode(',', $expression);

$input = $expression[0];
$languageCode = isset($expression[1]) ? str_replace("'", '', $expression[1]) : $defaultLanguage;
$languageCode = isset($expression[1]) ? $expression[1] : $defaultLanguage;

return "<?php echo GoogleTranslate::justTranslate($input, '$languageCode'); ?>";
return "<?php echo GoogleTranslate::justTranslate($input, $languageCode); ?>";
});
}

Expand Down

0 comments on commit 084a727

Please sign in to comment.