Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWA-3294 :PLP should displayed on all store view #4287

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
PWA-3294 :dupilcate if condition removed
rudraswamy.c authored and rudraswamy.c committed Jul 1, 2024
commit ac0def17c2e56abb915b786801256e664b4b65d0
5 changes: 1 addition & 4 deletions packages/venia-ui/lib/components/App/localeProvider.js
Original file line number Diff line number Diff line change
@@ -23,15 +23,12 @@ const LocaleProvider = props => {
if (locale === 'zh_Hant_TW') {
locale = 'zh_TW';
}
if (locale === 'zh_Hant_TW') {
locale = 'zh_TW';
}

const language = useMemo(() => {
return data && data.storeConfig.locale
? toReactIntl(locale)
: DEFAULT_LOCALE;
}, [data,locale]);
}, [data, locale]);

/**
* At build time, `__fetchLocaleData__` is injected as a global. Depending on the environment, this global will be