We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf100e commit 3391148Copy full SHA for 3391148
src/Concerns/Translatable.php
@@ -105,7 +105,7 @@ public function isTranslationKey(string $key): bool
105
}
106
107
if (count($parts = explode('::', $key)) === 1) {
108
- return Lang::has($parts[0]);
+ return Lang::has(Str::before($parts[0], ':'));
109
110
111
return Lang::has($parts[0].'::'.Str::before($parts[1], ':'));
0 commit comments