File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/routes/package/[...package] Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 6161 <div class =" my-8 flex gap-8" >
6262 <div >
6363 <h1 class =" text-3xl font-semibold text-primary text-shadow-sm md:text-5xl" >
64+ <!-- eslint-disable-next-line svelte/no-at-html-tags -->
6465 {@html data .currentPackage .pkg .name .replace (/ \/ / g , " /<wbr />" )}
6566 </h1 >
6667 <h2 class =" text-xl text-muted-foreground text-shadow-sm/5" >
Original file line number Diff line number Diff line change 7272 const days = Math .floor (hours / 24 );
7373 const months = Math .floor (days / 30 );
7474 const years = Math .floor (months / 12 );
75- const formatter = new Intl .RelativeTimeFormat (locale );
75+ const formatter = new Intl .RelativeTimeFormat (locale , { numeric: " auto " } );
7676
7777 if (years > 0 ) {
7878 return formatter .format (0 - years , " year" );
You can’t perform that action at this time.
0 commit comments