chore: optimize blog read time intl message

This commit is contained in:
javayhu 2025-04-02 15:21:51 +08:00
parent efcbff8d62
commit 6087d8f4dc
3 changed files with 7 additions and 7 deletions

View File

@ -175,7 +175,7 @@
"author": "Author",
"categories": "Categories",
"tableOfContents": "Table of Contents",
"readTime": " min read",
"readTime": "{minutes} min read",
"all": "All",
"noPostsFound": "No posts found",
"allPosts": "All Posts",
@ -442,8 +442,8 @@
"title": "Upgrade Your Plan",
"description": "Choose a plan that works for you"
},
"trialDays": "{{days}} day trial",
"upgradeToPlan": "Upgrade to {{planName}}",
"trialDays": "{days} day trial",
"upgradeToPlan": "Upgrade to {planName}",
"customPricing": "Custom Pricing",
"contactSales": "Contact Sales",
"billingHistory": {

View File

@ -171,7 +171,7 @@
"author": "作者",
"categories": "分类",
"tableOfContents": "目录",
"readTime": " 分钟阅读",
"readTime": "{minutes} 分钟阅读",
"all": "全部",
"noPostsFound": "没有找到文章",
"allPosts": "全部文章",
@ -439,8 +439,8 @@
"title": "升级您的方案",
"description": "选择适合您的方案"
},
"trialDays": "{{days}} 天试用期",
"upgradeToPlan": "升级到 {{planName}}",
"trialDays": "{days} 天试用期",
"upgradeToPlan": "升级到 {planName}",
"customPricing": "定制价格",
"contactSales": "联系销售",
"billingHistory": {

View File

@ -150,7 +150,7 @@ export default async function BlogPostPage(props: NextPageProps) {
<div className="flex items-center gap-2">
<ClockIcon className="size-4 text-muted-foreground" />
<span className="text-sm text-muted-foreground leading-none my-auto">
{post.estimatedTime}{t('readTime')}
{t('readTime', { minutes: post.estimatedTime })}
</span>
</div>
</div>