Skip to content

Commit c0e6916

Browse files
committed
Render strings by Laravel when they are not using the LanguageCenter format
1 parent 60afe5e commit c0e6916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function get($data, array $replace = [], $locale = null, $fallback = true
7777
// Ignore items that are not in the correct format, example: "__('Not found')".
7878
// Correct format for that would be "__('errors.not_found')".
7979
if (strpos($key, '.') === false) {
80-
return $data;
80+
return parent::get(is_string($data) ? $data : $key, $replace, $locale, $fallback);
8181
}
8282

8383
if (!isset($string)) {

0 commit comments

Comments
 (0)