From 401021a8d2370a2c09e3ecd5b9d387afe02d0a04 Mon Sep 17 00:00:00 2001 From: "rudraswamy.c" Date: Fri, 31 May 2024 09:58:49 +0530 Subject: [PATCH] PWA-3243 :PWA Store View Not Functioning for Taiwan Store View with Language Locale 'zh_Hant_TW' --- packages/venia-ui/lib/util/formatLocale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/venia-ui/lib/util/formatLocale.js b/packages/venia-ui/lib/util/formatLocale.js index b10550af3b..3539c67361 100644 --- a/packages/venia-ui/lib/util/formatLocale.js +++ b/packages/venia-ui/lib/util/formatLocale.js @@ -15,5 +15,5 @@ export const fromReactIntl = string => { * @returns {string} A string (e.g. `fr-FR`). */ export const toReactIntl = string => { - return string.replace('_', '-'); + return string.replace(/_/g, '-'); };