Skip to content

Commit 6116252

Browse files
glo85315rudraswamy.c
andauthored
PWA-3243 :PWA Store View Not Functioning for Taiwan Store View with Language Locale 'zh_Hant_TW' (#4273)
Co-authored-by: rudraswamy.c <[email protected]>
1 parent 589039f commit 6116252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/venia-ui/lib/util/formatLocale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export const fromReactIntl = string => {
1515
* @returns {string} A string (e.g. `fr-FR`).
1616
*/
1717
export const toReactIntl = string => {
18-
return string.replace('_', '-');
18+
return string.replace(/_/g, '-');
1919
};

0 commit comments

Comments
 (0)