Compare commits
2 commits
3343e59f16
...
0513ffa71a
| Author | SHA1 | Date | |
|---|---|---|---|
| 0513ffa71a | |||
| 4c04742abc |
3 changed files with 2 additions and 6 deletions
1
src/hooks.client.ts
Normal file
1
src/hooks.client.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
import "@formatjs/intl-durationformat/polyfill";
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
bgStrong="bg-blue-500"
|
||||
bgBleak="bg-blue-50"
|
||||
icon="material-symbols:info"
|
||||
caption="Обратите внимание"
|
||||
caption="Примечание"
|
||||
>
|
||||
<slot />
|
||||
</IconBlock>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue