From e4b7b8061a3888704261b62d6c008c3e68b30f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Wed, 14 Dec 2022 16:56:48 +0100 Subject: [PATCH] feat(i18n): update plurals support (#433) --- components/account/AccountPostsFollowers.vue | 38 ++++++++++++++------ composables/i18n.ts | 6 ++-- locales/en-US.json | 6 ++-- 3 files changed, 35 insertions(+), 15 deletions(-) diff --git a/components/account/AccountPostsFollowers.vue b/components/account/AccountPostsFollowers.vue index 48371a81..4d775100 100644 --- a/components/account/AccountPostsFollowers.vue +++ b/components/account/AccountPostsFollowers.vue @@ -6,7 +6,8 @@ const props = defineProps<{ }>() const { formatHumanReadableNumber, formatNumber, forSR } = useHumanReadableNumber() -const statusesCount = $computed(() => formatNumber(props.account.statusesCount)) +const statusesCount = $computed(() => formatHumanReadableNumber(props.account.statusesCount)) +const statusesCountSR = $computed(() => forSR(props.account.statusesCount)) const followingCount = $computed(() => formatHumanReadableNumber(props.account.followingCount)) const followingCountSR = $computed(() => forSR(props.account.followingCount)) const followersCount = $computed(() => formatHumanReadableNumber(props.account.followersCount)) @@ -15,31 +16,48 @@ const followersCountSR = $computed(() => forSR(props.account.followersCount))