From 8f11dcf1f3dcf3d2f2ba6335fd3b2ef03057eee4 Mon Sep 17 00:00:00 2001
From: Alex <49969959+alexzhang1030@users.noreply.github.com>
Date: Sat, 3 Dec 2022 02:18:16 +0800
Subject: [PATCH] feat(i18n): improve translations (#304)
---
components/help/HelpPreview.vue | 13 +++++--------
locales/en-US.json | 7 +++++++
locales/zh-CN.json | 23 ++++++++++++-----------
3 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/components/help/HelpPreview.vue b/components/help/HelpPreview.vue
index 4272aa09..89f21da8 100644
--- a/components/help/HelpPreview.vue
+++ b/components/help/HelpPreview.vue
@@ -46,19 +46,16 @@ const teams: Team[] = [
- Elk is in Preview!
+ {{ $t('help.title') }}
- Thanks for your interest in trying out Elk, our work-in-progress generic Mastodon client!
+ {{ $t('help.desc_para1') }}
- Expect some bugs and missing features here and there.
- We are working hard on the development and improving it over time.
- And we will soon invite you to join the force once we make it open source soon!
-
-
- Before that, to help boosting out development, you can sponsor our team members with the links below.
+ {{ $t('help.desc_highlight') }}
+ {{ $t('help.desc_para2') }}
+ {{ $t('help.desc_para3') }}
diff --git a/locales/en-US.json b/locales/en-US.json
index b9d45fa8..3c153816 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -59,6 +59,13 @@
"feature_flag": {
"virtual_scroll": "Virtual Scrolling"
},
+ "help": {
+ "desc_highlight": "Expect some bugs and missing features here and there.",
+ "desc_para1": "Thanks for your interest in trying out Elk, our work-in-progress generic Mastodon client!",
+ "desc_para2": "We are working hard on the development and improving it over time. And we will soon invite you to join the force once we make it open source soon!",
+ "desc_para3": "Before that, to help boosting out development, you can sponsor our team members with the links below.",
+ "title": "Elk is in Preview!"
+ },
"menu": {
"block_account": "Block {0}",
"block_domain": "Block domain {0}",
diff --git a/locales/zh-CN.json b/locales/zh-CN.json
index 127112e2..7b0cfe81 100644
--- a/locales/zh-CN.json
+++ b/locales/zh-CN.json
@@ -16,6 +16,8 @@
"mutuals": "互相关注",
"pinned": "置顶的帖文",
"posts_count": "{0} 条帖文",
+ "profile_description": "{0}的个人资料头图",
+ "profile_unavailable": "个人资料不可见",
"unfollow": "取消关注"
},
"action": {
@@ -42,6 +44,8 @@
"common": {
"end_of_list": "列表到底啦",
"error": "错误",
+ "kiloSuffix": "K",
+ "megaSuffix": "M",
"not_found": "无法找到相关内容",
"offline_desc": "您目前已离线,请检查网络连接。"
},
@@ -55,6 +59,13 @@
"feature_flag": {
"virtual_scroll": "虚拟滚动"
},
+ "help": {
+ "desc_highlight": "可能会在某些地方出现一些 bug 或缺失的功能。",
+ "desc_para1": "感谢你有兴趣尝试鹿鸣,一个我们正在积极开发的通用 Mastodon 客户端。",
+ "desc_para2": "我们正在努力开发中,并随着时间的推移不断完善。鹿鸣将很快开源,并邀请您参与进来!",
+ "desc_para3": "在此之前,为了更好的促进我们的开发工作,你可以通过以下链接赞助团队成员。",
+ "title": "预览鹿鸣!"
+ },
"menu": {
"block_account": "拉黑 {0}",
"block_domain": "拉黑域名 {0}",
@@ -141,18 +152,11 @@
"day_past": "现在|昨天|{n}天前",
"hour_future": "现在|1小时后|{n}小时后",
"hour_past": "现在|1小时前|{n}小时前",
- "in": "在",
"just_now": "刚刚",
- "last_month": "上个月",
- "last_week": "上周",
- "last_year": "去年",
"minute_future": "现在|1分钟后|{n}分钟后",
"minute_past": "现在|1分钟前|{n}分钟前",
"month_future": "现在|下个月|{n}个月后",
"month_past": "现在|上个月|{n}个月前",
- "next_month": "下个月",
- "next_week": "下周",
- "next_year": "明年",
"second_future": "刚刚|{n}秒后|{n}秒后",
"second_past": "刚刚|{n}秒前|{n}秒前",
"short_day_future": "{n}天",
@@ -169,13 +173,10 @@
"short_week_past": "{n}周",
"short_year_future": "{n}年",
"short_year_past": "{n}年",
- "tomorrow": "明天",
- "week": "周",
"week_future": "现在|下周|{n}周后",
"week_past": "现在|上周|{n}周前",
"year_future": "现在|明年|{n}年后",
- "year_past": "现在|去年|{n}年前",
- "yesterday": "昨天"
+ "year_past": "现在|去年|{n}年前"
},
"timeline": {
"show_new_items": "展示 {n} 条新帖文"