From 5f9f4a153644123c86571cbb0f677058dbeaa51c Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 22 Oct 2015 17:01:21 +1030 Subject: [PATCH] Allow hyphens in referenced key names --- framework/core/src/Locale/YamlFileLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }