Skip to content

Commit

Permalink
PWA-3243 :PWA Store View Not Functioning for Taiwan Store View with L…
Browse files Browse the repository at this point in the history
…anguage Locale 'zh_Hant_TW' (#4273)

Co-authored-by: rudraswamy.c <[email protected]>
  • Loading branch information
glo85315 and rudraswamy.c authored Jul 12, 2024
1 parent 589039f commit 6116252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/venia-ui/lib/util/formatLocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '-');
};

0 comments on commit 6116252

Please sign in to comment.