Skip to content

Commit

Permalink
Do not check validation.custom translations
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav committed Nov 14, 2024
1 parent c93d47d commit 9ff93b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Support/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ private function checkMissingTranslation($key, $line, $locale = null)
if ($line && $line !== $key) {
return;
}
// do not check $key tarting with validation.custom
if (strpos($key, 'validation.custom') === 0) {
return;
}
$message = $locale
? "Missing or empty translation for locale '{$locale}': {$key}"
: "Missing or empty translation: {$key}";
Expand Down

0 comments on commit 9ff93b6

Please sign in to comment.