diff --git a/system/src/Grav/Common/Data/Blueprint.php b/system/src/Grav/Common/Data/Blueprint.php index 15cdce65c..4f24620af 100644 --- a/system/src/Grav/Common/Data/Blueprint.php +++ b/system/src/Grav/Common/Data/Blueprint.php @@ -76,7 +76,8 @@ class Blueprint try { $this->validateArray($data, $this->nested); } catch (\RuntimeException $e) { - throw new \RuntimeException(sprintf('Validation failed: %s', $e->getMessage())); + $language = self::getGrav()['language']; + throw new \RuntimeException(sprintf('Validation failed: %s', $language->translate($e->getMessage()))); } }