Compare commits

...

2 commits

Author SHA1 Message Date
0513ffa71a InfoBlock -> Примечание
All checks were successful
/ build (push) Successful in 3m37s
/ deploy (push) Successful in 1m19s
2025-11-26 12:36:53 +03:00
4c04742abc Экстренная попытка исправить Polyfill для Intl.DurationFormat 2025-11-26 12:36:43 +03:00
3 changed files with 2 additions and 6 deletions

1
src/hooks.client.ts Normal file
View file

@ -0,0 +1 @@
import "@formatjs/intl-durationformat/polyfill";

View file

@ -6,7 +6,7 @@
bgStrong="bg-blue-500"
bgBleak="bg-blue-50"
icon="material-symbols:info"
caption="Обратите внимание"
caption="Примечание"
>
<slot />
</IconBlock>

View file

@ -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',