Skip to content

Commit 06ae5ae

Browse files
committed
修复翻译键:添加缺失的platform、originalLink翻译键,修正backToList的使用
1 parent 6435643 commit 06ae5ae

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/components/ChallengeDetailPage/ChallengeActions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ChallengeActions: React.FC<ChallengeActionsProps> = ({ challenge, isMobile
3838
maxWidth: '400px'
3939
}}
4040
>
41-
{t('challenge.detail.backToList')}
41+
{t('challenge.actions.backToList')}
4242
</Button>
4343
</div>
4444
);
@@ -68,7 +68,7 @@ const ChallengeActions: React.FC<ChallengeActionsProps> = ({ challenge, isMobile
6868
)}
6969
</div>
7070
<Link to="/challenges" style={{ color: '#1890ff' }}>
71-
{t('challenge.detail.backToList')}
71+
{t('challenge.actions.backToList')}
7272
</Link>
7373
</div>
7474
);

src/locales/en.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ export default {
147147
relatedChallenges: 'Related Challenges',
148148
technicalTags: 'Technical Tags',
149149
targetWebsite: 'Target Website',
150+
platform: 'Platform',
150151
difficulty: 'Difficulty',
151152
created: 'Created',
152153
updated: 'Updated',
154+
originalLink: 'Original Link',
153155
startChallenge: 'Try It',
154156
startChallengeShort: 'Try',
155157
viewSolution: 'View Solution',
@@ -165,7 +167,9 @@ export default {
165167
correction: 'Correction',
166168
correctionTooltip: 'Think the content could be improved or has errors? Don\'t hesitate to submit a PR on GitHub',
167169
reportIssue: 'Report Issue',
168-
issueTooltip: 'Having a problem? Click to submit a GitHub Issue'
170+
issueTooltip: 'Having a problem? Click to submit a GitHub Issue',
171+
backToList: 'Back to Challenge List',
172+
unspecified: 'Unspecified'
169173
},
170174
actions: {
171175
backToList: 'Back to Challenge List'

src/locales/zh.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ const zhTranslations = {
147147
relatedChallenges: '相关挑战',
148148
technicalTags: '技术标签',
149149
targetWebsite: '目标网站',
150+
platform: '平台',
150151
difficulty: '难度级别',
151152
created: '创建时间',
152153
updated: '更新时间',
154+
originalLink: '原始链接',
153155
startChallenge: '去试试',
154156
startChallengeShort: '试试',
155157
viewSolution: '查看解决方案',
@@ -165,7 +167,9 @@ const zhTranslations = {
165167
correction: '纠错',
166168
correctionTooltip: '感觉内容可以优化甚至有错误?别犹豫点此去GitHub提PR',
167169
reportIssue: '反馈问题',
168-
issueTooltip: '遇到问题?点此提交GitHub Issue'
170+
issueTooltip: '遇到问题?点此提交GitHub Issue',
171+
backToList: '返回挑战列表',
172+
unspecified: '未指定'
169173
},
170174
actions: {
171175
backToList: '返回挑战列表'

0 commit comments

Comments
 (0)