From 9ff93b6839115d2e41f925e89717b8bd74c9b70d Mon Sep 17 00:00:00 2001 From: petrzpav Date: Thu, 14 Nov 2024 08:06:09 +0100 Subject: [PATCH] Do not check validation.custom translations --- src/Support/Translator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Support/Translator.php b/src/Support/Translator.php index 1899c21..0a5da6e 100644 --- a/src/Support/Translator.php +++ b/src/Support/Translator.php @@ -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}";