diff --git a/src/hooks.client.ts b/src/hooks.client.ts deleted file mode 100644 index b23ad59..0000000 --- a/src/hooks.client.ts +++ /dev/null @@ -1 +0,0 @@ -import "@formatjs/intl-durationformat/polyfill"; diff --git a/src/lib/components/InfoBlock.svelte b/src/lib/components/InfoBlock.svelte index 4c21118..7635b91 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 c710337..bcf9e71 100644 --- a/src/lib/util/Dates.ts +++ b/src/lib/util/Dates.ts @@ -1,3 +1,8 @@ +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',