Skip to content

Commit fec8442

Browse files
committed
🌐 补充i18n内容
1 parent 276e676 commit fec8442

File tree

5 files changed

+344
-41
lines changed

5 files changed

+344
-41
lines changed

i18n/en/code.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@
235235
"message": "Price Drop Alert",
236236
"description": "Shopping feature: Price alert"
237237
},
238+
"homepage.scenario.sites.more": {
239+
"message": "+More",
240+
"description": "More sites indicator in scenario cards"
241+
},
238242
"homepage.download.title.ready": {
239243
"message": "Ready to",
240244
"description": "Download section title part 1"
@@ -278,5 +282,97 @@
278282
"homepage.footer.contributors.title": {
279283
"message": "Thanks to all contributors",
280284
"description": "Footer contributors section title"
285+
},
286+
"homepage.meta.title": {
287+
"message": "Home",
288+
"description": "Homepage meta title"
289+
},
290+
"homepage.meta.description": {
291+
"message": "ScriptCat, a browser extension that executes user scripts, making everything scriptable and enabling your browser to do more!",
292+
"description": "Homepage meta description"
293+
},
294+
"footer.description": {
295+
"message": "A powerful browser script engine that makes your web experience richer and more colorful.",
296+
"description": "Footer description"
297+
},
298+
"footer.product.title": {
299+
"message": "Product",
300+
"description": "Footer product section title"
301+
},
302+
"footer.product.features": {
303+
"message": "Features",
304+
"description": "Footer product features link"
305+
},
306+
"footer.product.scriptStore": {
307+
"message": "Script Store",
308+
"description": "Footer product script store link"
309+
},
310+
"footer.product.changelog": {
311+
"message": "Changelog",
312+
"description": "Footer product changelog link"
313+
},
314+
"footer.resources.title": {
315+
"message": "Resources",
316+
"description": "Footer resources section title"
317+
},
318+
"footer.resources.devDocs": {
319+
"message": "Developer Docs",
320+
"description": "Footer resources development docs link"
321+
},
322+
"footer.resources.apiReference": {
323+
"message": "API Reference",
324+
"description": "Footer resources API reference link"
325+
},
326+
"footer.resources.examples": {
327+
"message": "Example Scripts",
328+
"description": "Footer resources example scripts link"
329+
},
330+
"footer.resources.faq": {
331+
"message": "FAQ",
332+
"description": "Footer resources FAQ link"
333+
},
334+
"footer.community.title": {
335+
"message": "Community",
336+
"description": "Footer community section title"
337+
},
338+
"footer.community.forum": {
339+
"message": "Forum Discussion",
340+
"description": "Footer community forum link"
341+
},
342+
"footer.community.discord": {
343+
"message": "Discord Channel",
344+
"description": "Footer community Discord link"
345+
},
346+
"footer.community.contributing": {
347+
"message": "Contributing Guide",
348+
"description": "Footer community contributing guide link"
349+
},
350+
"footer.community.issues": {
351+
"message": "Report Issues",
352+
"description": "Footer community report issues link"
353+
},
354+
"footer.community.contact": {
355+
"message": "Contact Team",
356+
"description": "Footer community contact team link"
357+
},
358+
"footer.community.recruiting": {
359+
"message": "Recruiting",
360+
"description": "Footer community recruiting badge"
361+
},
362+
"footer.copyright.allRightsReserved": {
363+
"message": "All rights reserved.",
364+
"description": "Footer copyright all rights reserved text"
365+
},
366+
"footer.copyright.privacy": {
367+
"message": "Privacy Policy",
368+
"description": "Footer copyright privacy policy link"
369+
},
370+
"footer.copyright.terms": {
371+
"message": "Terms of Use",
372+
"description": "Footer copyright terms of use link"
373+
},
374+
"footer.copyright.license": {
375+
"message": "License Agreement",
376+
"description": "Footer copyright license link"
281377
}
282378
}

i18n/zh-Hans/code.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@
235235
"message": "降价提醒",
236236
"description": "购物特性:价格提醒"
237237
},
238+
"homepage.scenario.sites.more": {
239+
"message": "+更多",
240+
"description": "场景卡片中的更多网站指示器"
241+
},
238242
"homepage.download.title.ready": {
239243
"message": "准备好",
240244
"description": "下载区域标题第一部分"
@@ -278,5 +282,97 @@
278282
"homepage.footer.contributors.title": {
279283
"message": "感谢所有贡献者",
280284
"description": "页脚贡献者区域标题"
285+
},
286+
"homepage.meta.title": {
287+
"message": "首页",
288+
"description": "首页元标题"
289+
},
290+
"homepage.meta.description": {
291+
"message": "脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!",
292+
"description": "首页元描述"
293+
},
294+
"footer.description": {
295+
"message": "强大的浏览器脚本引擎,让您的上网体验更加丰富多彩。",
296+
"description": "页脚描述"
297+
},
298+
"footer.product.title": {
299+
"message": "产品",
300+
"description": "页脚产品栏标题"
301+
},
302+
"footer.product.features": {
303+
"message": "特性介绍",
304+
"description": "页脚产品特性链接"
305+
},
306+
"footer.product.scriptStore": {
307+
"message": "脚本商店",
308+
"description": "页脚产品脚本商店链接"
309+
},
310+
"footer.product.changelog": {
311+
"message": "更新日志",
312+
"description": "页脚产品更新日志链接"
313+
},
314+
"footer.resources.title": {
315+
"message": "资源",
316+
"description": "页脚资源栏标题"
317+
},
318+
"footer.resources.devDocs": {
319+
"message": "开发文档",
320+
"description": "页脚资源开发文档链接"
321+
},
322+
"footer.resources.apiReference": {
323+
"message": "API 参考",
324+
"description": "页脚资源API参考链接"
325+
},
326+
"footer.resources.examples": {
327+
"message": "示例脚本",
328+
"description": "页脚资源示例脚本链接"
329+
},
330+
"footer.resources.faq": {
331+
"message": "常见问题",
332+
"description": "页脚资源常见问题链接"
333+
},
334+
"footer.community.title": {
335+
"message": "社区",
336+
"description": "页脚社区栏标题"
337+
},
338+
"footer.community.forum": {
339+
"message": "论坛讨论",
340+
"description": "页脚社区论坛链接"
341+
},
342+
"footer.community.discord": {
343+
"message": "Discord 频道",
344+
"description": "页脚社区Discord链接"
345+
},
346+
"footer.community.contributing": {
347+
"message": "贡献指南",
348+
"description": "页脚社区贡献指南链接"
349+
},
350+
"footer.community.issues": {
351+
"message": "报告问题",
352+
"description": "页脚社区报告问题链接"
353+
},
354+
"footer.community.contact": {
355+
"message": "联系团队",
356+
"description": "页脚社区联系团队链接"
357+
},
358+
"footer.community.recruiting": {
359+
"message": "招募中",
360+
"description": "页脚社区招募标签"
361+
},
362+
"footer.copyright.allRightsReserved": {
363+
"message": "保留所有权利。",
364+
"description": "页脚版权所有权利保留文本"
365+
},
366+
"footer.copyright.privacy": {
367+
"message": "隐私政策",
368+
"description": "页脚版权隐私政策链接"
369+
},
370+
"footer.copyright.terms": {
371+
"message": "使用条款",
372+
"description": "页脚版权使用条款链接"
373+
},
374+
"footer.copyright.license": {
375+
"message": "许可协议",
376+
"description": "页脚版权许可协议链接"
281377
}
282378
}

src/components/IconCat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function IconCat() {
22
return (
33
<img
4-
src="/img/logo.png"
4+
src="./img/logo.png"
55
alt=" Icon"
66
style={{
77
width: '2rem',

src/pages/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,10 @@ function ScenarioSection() {
10581058
})
10591059
},
10601060
]}
1061-
sites={["Bilibili", "Youtube", "Netflix", "+更多"]}
1061+
sites={["Bilibili", "Youtube", "Netflix", translate({
1062+
id: 'homepage.scenario.sites.more',
1063+
message: '+更多',
1064+
})]}
10621065
scriptUrl="https://scriptcat.org/search?keyword=视频"
10631066
/>
10641067

@@ -1110,7 +1113,10 @@ function ScenarioSection() {
11101113
})
11111114
},
11121115
]}
1113-
sites={["淘宝", "京东", "亚马逊", "+更多"]}
1116+
sites={["淘宝", "京东", "亚马逊", translate({
1117+
id: 'homepage.scenario.sites.more',
1118+
message: '+更多',
1119+
})]}
11141120
scriptUrl="https://scriptcat.org/search?keyword=购物"
11151121
/>
11161122
</div>
@@ -1357,8 +1363,14 @@ export default function Home(): JSX.Element {
13571363

13581364
return (
13591365
<Layout
1360-
title="首页"
1361-
description="脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!"
1366+
title={translate({
1367+
id: 'homepage.meta.title',
1368+
message: '首页',
1369+
})}
1370+
description={translate({
1371+
id: 'homepage.meta.description',
1372+
message: '脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情!',
1373+
})}
13621374
>
13631375
<div className={styles.homeContainer}>
13641376
<HomepageHeader />

0 commit comments

Comments
 (0)