diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 140f4e70..4b493bc7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -141,6 +141,7 @@ This is the full list of entries that will be available for number formatting in - `account.followers_count`: `{0}` for formatted number and `{n}` for raw number - **{0} should be use** - `account.following_count`: `{0}` for formatted number and `{n}` for raw number - **{0} should be use** - `account.posts_count`: `{0}` for formatted number and `{n}` for raw number - **{0} should be use** +- `compose.drafts`: `{v}` for formatted number and `{n}` for raw number - **{v} should be use** - `notification.followed_you_count`: `{followers}` for formatted number and `{n}` for raw number - **{followers} should be use** - `status.poll.count`: `{0}` for formatted number and `{n}` for raw number - **{0} should be use** - `time_ago_options.*`: `{0}` for formatted number and `{n}` for raw number - **{0} should be use**: since numbers will be always small, we can also use `{n}` diff --git a/components/publish/PublishWidgetFull.client.vue b/components/publish/PublishWidgetFull.client.vue index 4019a5cf..78c10e17 100644 --- a/components/publish/PublishWidgetFull.client.vue +++ b/components/publish/PublishWidgetFull.client.vue @@ -2,6 +2,8 @@ import { formatTimeAgo } from '@vueuse/core' const route = useRoute() +const { formatNumber } = useHumanReadableNumber() +const timeAgoOptions = useTimeAgoOptions() let draftKey = $ref('home') @@ -25,7 +27,7 @@ onMounted(() => {