Skip to content

Commit 03ed173

Browse files
MC-19701: Country code for Taiwan (Province of China)
1 parent c771fb9 commit 03ed173

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/code/Magento/Config/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ Dashboard,Dashboard
118118
"Web Section","Web Section"
119119
"Store Email Addresses Section","Store Email Addresses Section"
120120
"Email to a Friend","Email to a Friend"
121+
"Taiwan","Taiwan, Province of China"

lib/internal/Magento/Framework/Locale/TranslatedLists.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,7 @@ public function getCountryTranslation($value, $locale = null)
207207
$locale = $this->localeResolver->getLocale();
208208
}
209209

210-
$language = \Locale::getPrimaryLanguage($locale);
211210
$translation = (new RegionBundle())->get($locale)['Countries'][$value];
212-
if ($value == 'TW' && $language == 'en') {
213-
$translation .= ", Province of China";
214-
}
215211

216212
return $translation ? (string)__($translation) : $translation;
217213
}

0 commit comments

Comments
 (0)