Skip to content

Commit e7cdf6c

Browse files
committed
feat(i18n): add placeholder text for workbench area in multiple languages
1 parent d8fe1ae commit e7cdf6c

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

frontend/src/components/ContributionCalendar.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,12 +1124,7 @@ function ContributionCalendar({
11241124
/>
11251125
</aside>
11261126
<aside className="workbench__panel">
1127-
<p className="text-center">
1128-
✨ 该区域正在筹备中!各位大神有哪些脑洞大开的功能想法?快来 issues
1129-
留言,你的创意可能会被实现哦~
1130-
<br />✨ This area is in the works! Do you have any creative function ideas, dear users?
1131-
Leave a comment in the issues—your creativity might be realized!
1132-
</p>
1127+
<p className="text-center">{t('workbench.placeholder')}</p>
11331128
</aside>
11341129
</div>
11351130
{isRemoteModalOpen && (

frontend/src/i18n.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ type TranslationDict = {
9999
legendLess: string;
100100
legendMore: string;
101101
};
102+
workbench: {
103+
placeholder: string;
104+
};
102105
characterSelector: {
103106
title: string;
104107
selectCharacter: string;
@@ -256,6 +259,10 @@ const translations: Record<Language, TranslationDict> = {
256259
legendLess: 'Less',
257260
legendMore: 'More',
258261
},
262+
workbench: {
263+
placeholder:
264+
'✨ This area is under development! Got any wild feature ideas? Drop them in the issues and your creativity might ship~ Tips: Right-click to switch between the brush and eraser. In copy mode, select a pattern, press Ctrl+C to copy it, then Ctrl+V or left-click to paste.',
265+
},
259266
characterSelector: {
260267
title: 'Select Pattern',
261268
selectCharacter: 'Select Character (A-Z, a-z, 0-9)',
@@ -408,6 +415,10 @@ const translations: Record<Language, TranslationDict> = {
408415
legendLess: '较少',
409416
legendMore: '更多',
410417
},
418+
workbench: {
419+
placeholder:
420+
'✨ 该区域正在开发中!大家有哪些脑洞大开的功能想法?快来 issues 留言,你的创意可能会被实现哦~操作说明:右键可以切换画笔和橡皮擦,复制模式下框选好图案后按 ctrl+C 复制图案,ctrl+V 或者左键粘贴图案',
421+
},
411422
characterSelector: {
412423
title: '选择图案',
413424
selectCharacter: '选择字符 (A-Z, a-z, 0-9)',

0 commit comments

Comments
 (0)