Skip to content

Commit 3391148

Browse files
committed
Fix translastion key check for non-vendor translations keys
1 parent 3bf100e commit 3391148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/Translatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function isTranslationKey(string $key): bool
105105
}
106106

107107
if (count($parts = explode('::', $key)) === 1) {
108-
return Lang::has($parts[0]);
108+
return Lang::has(Str::before($parts[0], ':'));
109109
}
110110

111111
return Lang::has($parts[0].'::'.Str::before($parts[1], ':'));

0 commit comments

Comments
 (0)