Files
klz-cables.com/.pnpm-store/v10/files/ef/e9161d2815264ab10e69a01397703668425f40937d1210ff3b813813fb52a80f7ee3f199948040749cc321901f13c0413380644f08f0f8eacc9d517eeaa478
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

13 lines
601 B
Plaintext

export async function applyLocaleFiltering({ clientConfig, config, req }) {
if (!clientConfig.localization || !config.localization || typeof config.localization.filterAvailableLocales !== 'function') {
return;
}
const filteredLocales = (await config.localization.filterAvailableLocales({
locales: config.localization.locales,
req
})).map(({ toString, ...rest })=>rest);
clientConfig.localization.localeCodes = filteredLocales.map(({ code })=>code);
clientConfig.localization.locales = filteredLocales;
}
//# sourceMappingURL=applyLocaleFiltering.js.map