From 13fa125aaf499cdebad1262c24f14dea7880b93d Mon Sep 17 00:00:00 2001 From: Yurii Hryhoriev Date: Tue, 13 Jun 2017 10:42:50 +0300 Subject: [PATCH] MAGETWO-57070: [GitHub] Locale\Format throws away country part, results in wrong number format #5073 --- lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php b/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php index bd22385045cd1..fe9ff3f79099e 100644 --- a/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php +++ b/lib/internal/Magento/Framework/Locale/Bundle/DataBundle.php @@ -66,6 +66,9 @@ protected function cleanLocale($locale) if (isset($localeParts['language'])) { $cleanLocaleParts['language'] = $localeParts['language']; } + if (isset($localeParts['region'])) { + $cleanLocaleParts['region'] = $localeParts['region']; + } if (isset($localeParts['script'])) { $cleanLocaleParts['script'] = $localeParts['script']; }