diff --git a/src/hooks.client.ts b/src/hooks.client.ts new file mode 100644 index 0000000..b23ad59 --- /dev/null +++ b/src/hooks.client.ts @@ -0,0 +1 @@ +import "@formatjs/intl-durationformat/polyfill"; diff --git a/src/lib/components/InfoBlock.svelte b/src/lib/components/InfoBlock.svelte index 7635b91..4c21118 100644 --- a/src/lib/components/InfoBlock.svelte +++ b/src/lib/components/InfoBlock.svelte @@ -6,7 +6,7 @@ bgStrong="bg-blue-500" bgBleak="bg-blue-50" icon="material-symbols:info" - caption="Обратите внимание" + caption="Примечание" > diff --git a/src/lib/util/Dates.ts b/src/lib/util/Dates.ts index bcf9e71..c710337 100644 --- a/src/lib/util/Dates.ts +++ b/src/lib/util/Dates.ts @@ -1,8 +1,3 @@ -import { shouldPolyfill } from '@formatjs/intl-durationformat/should-polyfill' -if (shouldPolyfill()) { - import('@formatjs/intl-durationformat/polyfill-force'); -} - export const dateFormatShort = new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric',