Skip to content

Commit

Permalink
Merge branch 'tmp_i18n' into feat_i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Jul 18, 2024
2 parents 2019c3d + af557c4 commit 2e10149
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 186 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/node_modules
/.pnp
.pnp.js
pnpm-lock.yaml

# testing
/coverage
Expand Down
36 changes: 18 additions & 18 deletions public/locales/en/repository.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"nav": {
"title": "Project Details",
"title": "Repository Details",
"desc": "Shared by",
"desc2": ""
},
Expand All @@ -10,13 +10,13 @@
"score_desc": "HelloGitHub Rating",
"score_user_desc": "{{count}} ratings",
"vite": "Visit",
"voted": "Liked",
"vote": "Like",
"opensource": "License",
"voted": "Voted",
"vote": "Vote",
"opensource": "Free",
"discuss": "Discuss",
"share": "Share",
"collect": "Save",
"copy_desc": "More details at: ",
"collect": "Collect",
"copy_desc": "More details at:",
"copy_success": "Project information copied, go share it!",
"copy_fail": "Copy failed"
},
Expand All @@ -25,7 +25,7 @@
"document": "Documentation",
"download": "Download",
"online": "Demo",
"source": "Source Code"
"source": "Source"
},
"favorite": {
"default": "Default Favorites",
Expand All @@ -37,7 +37,7 @@
"save": "Save"
},
"history": {
"past_day_desc": "Past {{days}} days ",
"past_day_desc": "Past {{days}} days",
"total_desc": "Received {{total}} stars ✨",
"fail_desc": "No star history data available"
},
Expand All @@ -47,11 +47,11 @@
"null": "None",
"star": "Stars",
"chinese": "Chinese",
"language": "Main Language",
"language": "Language",
"activity": "Active",
"contributors": "Contributors",
"org": "Organization",
"version": "Latest Version",
"version": "Latest",
"license": "License",
"expand": "More",
"collapse": "Collapse"
Expand All @@ -60,7 +60,7 @@
"desc_tab": "Description",
"code_tab": "Code",
"volume_label": "Included in:",
"volume": "Issue {{volume}}",
"volume": "Vol.{{volume}}",
"tag_label": "Tags:"
},
"comment": {
Expand All @@ -77,13 +77,13 @@
"reply": "Reply",
"cancel": "Cancel",
"item": {
"featured": "Selected",
"unfeatured": "Not Selected",
"vote": "Like",
"expand": "Expand",
"collapse": "Collapse",
"login": "Please sign in first"
},
"featured": "Featured",
"unfeatured": "Not Featured",
"vote": "Vote",
"expand": "Expand",
"collapse": "Collapse",
"login": "Please log in first"
},
"submit": {
"reply_placeholder": "Reply to: {{nickname}}",
"placeholder": "Write your experience, opinions, usages, or anything special about this project...",
Expand Down
6 changes: 6 additions & 0 deletions public/locales/en/search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "Open Source Project Search Results",
"description": "Find interesting and beginner-friendly open source projects on HelloGitHub",
"bottom_text_nologin": "That's all! Log in to see more content",
"navbar": "Search Results"
}
2 changes: 1 addition & 1 deletion public/locales/zh/repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"vite": "访问",
"voted": "已赞",
"vote": "点赞",
"opensource": "开源协议",
"opensource": "开源",
"discuss": "讨论",
"share": "分享",
"collect": "收藏",
Expand Down
6 changes: 6 additions & 0 deletions public/locales/zh/search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "开源项目搜索结果",
"description": "找有趣、入门级的开源项目就上 HelloGitHub",
"bottom_text_nologin": "到底啦!登录可查看更多内容",
"navbar": "搜索结果"
}
1 change: 1 addition & 0 deletions src/components/dialog/TagModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TFunction } from 'i18next';

Check warning on line 1 in src/components/dialog/TagModal.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

'TFunction' is defined but never used
import { useCallback, useEffect, useRef, useState } from 'react';
import {
IoIosCloseCircleOutline,
Expand Down
Loading

0 comments on commit 2e10149

Please sign in to comment.