diff --git a/framework/core/src/Locale/YamlFileLoader.php b/framework/core/src/Locale/YamlFileLoader.php index 1022ff4af..9bd1660c4 100644 --- a/framework/core/src/Locale/YamlFileLoader.php +++ b/framework/core/src/Locale/YamlFileLoader.php @@ -33,7 +33,7 @@ class YamlFileLoader extends BaseYamlFileLoader { $translation = $messages->get($id, $domain); - if (preg_match('/^=>\s*([a-z0-9_\.]+)$/i', $translation, $matches)) { + if (preg_match('/^=>\s*([a-z0-9_\-\.]+)$/i', $translation, $matches)) { return $this->getTranslation($messages, $matches[1], $domain); }