Skip to content

Commit

Permalink
feat: tagList i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Jul 12, 2024
1 parent a101357 commit bc601c7
Show file tree
Hide file tree
Showing 16 changed files with 297 additions and 240 deletions.
17 changes: 10 additions & 7 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"login": "Sign In"
},
"advert": {
"desc": "Server will expire in",
"desc2": "WeChat Sponsorship",
"next": "Short of this target by",
"next2": "Short of next target by",
"desc": "Server expire in",
"desc2": "Buy me a coffee",
"next": "Need to gold",
"next2": "Next target by",
"day": "D",
"year": "Y"
},
"site_stats": {
"user": "Total Users",
"repo": "Projects",
"title": "About Us",
"user": "#Users",
"repo": "#Projects",
"title": "About",
"desc": "HelloGitHub is a platform to discover and share interesting, beginner-friendly open source projects.\nWe aim to help everyone find joy in programming, easily solve technical challenges,\nexplore amazing open-source tools, and naturally embark on their open-source journey."
},
"recommend": {
Expand All @@ -45,5 +45,8 @@
"server_sponsor2": "",
"cdn_sponsor": "Cloud service is sponsored by",
"cdn_sponsor2": ""
},
"collect": {
"title": "New"
}
}
10 changes: 6 additions & 4 deletions public/locales/en/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
},
"tag_side": {
"title": "Hot Tags",
"manage": "Preference",
"all_tags_label": "All"
"manage": "Preference"
},
"tag_modal": {
"default_tag": "All",
"tips": "Tips: Click the tag on the left to 'Select', drag the selected tags on the right to 'Sort'",
"selected": "Selected: ",
"fetch_fail_msg": "Failed to fetch tags",
"add": "Add Tag",
"save": "Save",
"save_success_msg": "Save successful!",
"save_fail_msg": "Save failed!",
"max_tag_msg": "You can only select up to {{maxTotal}} tags!"
"max_tag_msg": "You can only select up to {{maxTotal}} tags!",
"编程语言": "Programming",
"技术栈": "Technology",
"应用类型": "Application",
"其它": "Other"
}
}
190 changes: 95 additions & 95 deletions public/locales/en/repository.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
{
"nav": {
"title": "Project Details",
"desc": "Shared by",
"desc2": ""
"nav": {
"title": "Project Details",
"desc": "Shared by",
"desc2": ""
},
"info": {
"claimed": "Claimed",
"unclaim": "Unclaimed",
"score_desc": "HelloGitHub Rating",
"score_user_desc": "{{count}} ratings",
"vite": "Visit",
"voted": "Liked",
"vote": "Like",
"opensource": "Open Source",
"discuss": "Discuss",
"share": "Share",
"collect": "Collect",
"copy_desc": "More details at:",
"copy_success": "Project information copied successfully, share it now!",
"copy_fail": "Copy failed"
},
"url": {
"home": "Website",
"document": "Documentation",
"download": "Download",
"online": "Demo",
"source": "Source Code"
},
"favorite": {
"default": "Default Favorites",
"cancel": "Unfavorite",
"success": "Added to Favorites",
"fail": "Failed to add to Favorites",
"title": "Select Favorites",
"desc": "You can find favorited projects in 'My Homepage'",
"save": "Save"
},
"history": {
"past_day_desc": "Past {{days}} days",
"total_desc": "Received {{total}} stars ✨",
"fail_desc": "No star history data available"
},
"more": {
"yes": "Yes",
"no": "No",
"null": "None",
"star": "Stars",
"chinese": "Chinese",
"language": "Main Language",
"activity": "Active",
"contributors": "Contributors",
"org": "Organization",
"version": "Latest Version",
"license": "License",
"expand": "More",
"collapse": "Collapse"
},
"content": {
"desc_tab": "Description",
"code_tab": "Code",
"volume_label": "Included in:",
"volume": "Issue {{volume}}",
"tag_label": "Tags:"
},
"comment": {
"title": "Comments",
"sort_hot": "Hot",
"sort_new": "Newest",
"total": "{{total}} selected comments",
"more_reply": "View all {{total}} replies",
"load_more": "Load more...",
"no_comment": "No selected comments yet",
"used": "Used",
"unused": "Not Used",
"score": "Rating:",
"reply": "Reply",
"cancel": "Cancel",
"item": {
"featured": "Featured",
"unfeatured": "Not Featured",
"vote": "Like",
"expand": "Expand",
"collapse": "Collapse",
"login": "Please log in first"
},
"info": {
"claimed": "Claimed",
"unclaim": "Unclaimed",
"score_desc": "HelloGitHub Rating",
"score_user_desc": "{{count}} ratings",
"vite": "Visit",
"voted": "Liked",
"vote": "Like",
"opensource": "Open Source",
"discuss": "Discuss",
"share": "Share",
"collect": "Collect",
"copy_desc": "More details at:",
"copy_success": "Project information copied successfully, share it now!",
"copy_fail": "Copy failed"
},
"url": {
"home": "Website",
"document": "Documentation",
"download": "Download",
"online": "Demo",
"source": "Source Code"
},
"favorite": {
"default": "Default Favorites",
"cancel": "Unfavorite",
"success": "Added to Favorites",
"fail": "Failed to add to Favorites",
"title": "Select Favorites",
"desc": "You can find favorited projects in 'My Homepage'",
"save": "Save"
},
"history": {
"past_day_desc": "Past {{days}} days",
"total_desc": "Received {{total}} stars ✨",
"fail_desc": "No star history data available"
},
"more": {
"yes": "Yes",
"no": "No",
"null": "None",
"star": "Stars",
"chinese": "Chinese",
"language": "Main Language",
"activity": "Active",
"contributors": "Contributors",
"org": "Organization",
"version": "Latest Version",
"license": "License",
"expand": "More",
"collapse": "Collapse"
},
"content": {
"desc_tab": "Description",
"code_tab": "Code",
"volume_label": "Included in:",
"volume": "Issue {{volume}}",
"tag_label": "Tags:"
},
"comment": {
"title": "Comments",
"sort_hot": "Hot",
"sort_new": "Newest",
"total": "{{total}} selected comments",
"more_reply": "View all {{total}} replies",
"load_more": "Load more...",
"no_comment": "No selected comments yet",
"used": "Used",
"unused": "Not Used",
"score": "Rating:",
"reply": "Reply",
"cancel": "Cancel",
"item": {
"featured": "Featured",
"unfeatured": "Not Featured",
"vote": "Like",
"expand": "Expand",
"collapse": "Collapse",
"login": "Please log in first"
},
"submit": {
"reply_placeholder": "Replying to: {{nickname}}",
"placeholder": "Write your comment: share your experience, pros/cons, use cases, or any surprising aspects of this open-source project...",
"save": "Submit",
"success": "Posted successfully! Will be displayed after approval",
"fail": "Submission failed",
"err1": "Comment content cannot be empty",
"err2": "Comment content must be at least 5 characters",
"err3": "Comment content cannot exceed 500 characters",
"err4": "Please provide a rating"
}
"submit": {
"reply_placeholder": "Replying to: {{nickname}}",
"placeholder": "Write your comment: share your experience, pros/cons, use cases, or any surprising aspects of this open-source project...",
"save": "Submit",
"success": "Posted successfully! Will be displayed after approval",
"fail": "Submission failed",
"err1": "Comment content cannot be empty",
"err2": "Comment content must be at least 5 characters",
"err3": "Comment content cannot exceed 500 characters",
"err4": "Please provide a rating"
}
}
}
5 changes: 4 additions & 1 deletion public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"footer": {
"feedback": "问题反馈",
"business":"商务合作",
"business": "商务合作",
"contact": "联系我们",
"agreement": "用户协议",
"source": "社区源码",
Expand All @@ -45,5 +45,8 @@
"server_sponsor2": "提供",
"cdn_sponsor": "专业的",
"cdn_sponsor2": "提供云存储服务"
},
"collect": {
"title": "新建收藏夹"
}
}
10 changes: 6 additions & 4 deletions public/locales/zh/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
},
"tag_side": {
"title": "热门标签",
"manage": "管理标签",
"all_tags_label": "综合"
"manage": "管理标签"
},
"tag_modal": {
"default_tag": "综合",
"tips": "操作提示:点击左侧标签为「选择」,拖拽右侧已选标签可「排序」",
"selected": "已选:",
"fetch_fail_msg": "获取标签失败",
"add": "添加标签",
"save": "保存",
"save_success_msg": "保存成功!",
"save_fail_msg": "保存失败!",
"max_tag_msg": "最多只能选择 {{maxTotal}} 个标签!"
"max_tag_msg": "最多只能选择 {{maxTotal}} 个标签!",
"编程语言": "编程语言",
"技术栈": "技术栈",
"应用类型": "应用类型",
"其它": "其它"
}
}
Loading

0 comments on commit bc601c7

Please sign in to comment.