Files
klz-cables.com/.pnpm-store/v10/files/9f/6dfc0a87d49172ec0a83319815281cc4de20e8c98b8ad96176ce773d0cf6d63aa720fe37684797740aedf74f607d584521c21b5d4497157017ea886cdb914d
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

1 line
874 B
Plaintext

{"version":3,"sources":["../../src/utilities/getTranslatedLabel.ts"],"sourcesContent":["import { getTranslation, type I18n } from '@payloadcms/translations'\n\nimport type { LabelFunction, StaticLabel } from '../config/types.js'\n\nexport const getTranslatedLabel = (\n label: LabelFunction | StaticLabel | undefined,\n i18n?: I18n,\n): string | undefined => {\n if (typeof label === 'function') {\n return label({ i18n: i18n!, t: i18n!.t })\n }\n\n if (typeof label === 'object') {\n return getTranslation(label, i18n!)\n }\n\n return label\n}\n"],"names":["getTranslation","getTranslatedLabel","label","i18n","t"],"mappings":"AAAA,SAASA,cAAc,QAAmB,2BAA0B;AAIpE,OAAO,MAAMC,qBAAqB,CAChCC,OACAC;IAEA,IAAI,OAAOD,UAAU,YAAY;QAC/B,OAAOA,MAAM;YAAEC,MAAMA;YAAOC,GAAGD,KAAMC,CAAC;QAAC;IACzC;IAEA,IAAI,OAAOF,UAAU,UAAU;QAC7B,OAAOF,eAAeE,OAAOC;IAC/B;IAEA,OAAOD;AACT,EAAC"}