Skip to content

Commit 45ca16f

Browse files
committed
Replace getUseLocal to getLocal to get the latest local value for the operator
1 parent 02a2936 commit 45ca16f

File tree

1 file changed

+1
-1
lines changed
  • packages/react-sdk-components/src/components/helpers/formatters

1 file changed

+1
-1
lines changed

packages/react-sdk-components/src/components/helpers/formatters/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export function getLocale(locale='') {
22
// use locale if specified
33
if (locale) return locale;
44
// otherwise, use operator locale if it's defined
5-
if (PCore.getEnvironmentInfo().getUseLocale()) return PCore.getEnvironmentInfo().getUseLocale();
5+
if (PCore.getEnvironmentInfo().getLocale()) return PCore.getEnvironmentInfo().getLocale();
66
// fallback
77
return Intl.DateTimeFormat().resolvedOptions().locale;
88
}

0 commit comments

Comments
 (0)