Skip to content

Commit 41f59a7

Browse files
committed
🌐 增加首页i18n
1 parent 8aacdf0 commit 41f59a7

File tree

8 files changed

+19115
-80
lines changed

8 files changed

+19115
-80
lines changed

docusaurus.config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const config = {
1616
trailingSlash: true,
1717
// GitHub pages deployment config.
1818
// If you aren't using GitHub pages, you don't need these.
19-
organizationName: "facebook", // Usually your GitHub org/user name.
20-
projectName: "docusaurus", // Usually your repo name.
19+
organizationName: "scriptscat", // Usually your GitHub org/user name.
20+
projectName: "scriptcat.org", // Usually your repo name.
2121

2222
plugins: [["@gracefullight/docusaurus-plugin-tailwind", {}]],
2323

@@ -27,6 +27,18 @@ const config = {
2727
i18n: {
2828
defaultLocale: "zh-Hans",
2929
locales: ["zh-Hans", "en"],
30+
localeConfigs: {
31+
"zh-Hans": {
32+
label: "简体中文",
33+
direction: "ltr",
34+
htmlLang: "zh-Hans",
35+
},
36+
en: {
37+
label: "English",
38+
direction: "ltr",
39+
htmlLang: "en",
40+
},
41+
},
3042
},
3143

3244
presets: [
@@ -100,6 +112,10 @@ const config = {
100112
label: "GitHub",
101113
position: "right",
102114
},
115+
{
116+
type: "localeDropdown",
117+
position: "right",
118+
},
103119
],
104120
},
105121
footer: {

i18n/en/code.json

Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
{
2+
"homepage.hero.title": {
3+
"message": "The Ultimate Script Engine for",
4+
"description": "Main title on the homepage hero section"
5+
},
6+
"homepage.hero.title.engine": {
7+
"message": "Enhanced Browser Experience",
8+
"description": "Gradient text in main title"
9+
},
10+
"homepage.hero.subtitle.userScript": {
11+
"message": "user scripts",
12+
"description": "User script highlight"
13+
},
14+
"homepage.hero.subtitle.possibilities": {
15+
"message": ", activating infinite possibilities for your browser!",
16+
"description": "Browser possibilities text"
17+
},
18+
"homepage.hero.subtitle.main": {
19+
"message": "ScriptCat is a powerful open-source browser script engine that lets you easily customize web functionality, eliminate ads, automate tasks, and enhance your browsing experience. Compatible with Tampermonkey and provides more features and optimizations.",
20+
"description": "Main subtitle description on homepage"
21+
},
22+
"homepage.hero.subtitle.highlight": {
23+
"message": "A browser extension for executing",
24+
"description": "Highlighted subtitle on homepage"
25+
},
26+
"homepage.hero.button.browseScripts": {
27+
"message": "Browse Script Library",
28+
"description": "Button text for browsing scripts"
29+
},
30+
"homepage.hero.browser.edge": {
31+
"message": "Add to Edge Browser",
32+
"description": "Button text for Edge browser"
33+
},
34+
"homepage.hero.browser.chrome": {
35+
"message": "Add to Chrome Browser",
36+
"description": "Button text for Chrome browser"
37+
},
38+
"homepage.hero.browser.firefox": {
39+
"message": "Add to Firefox Browser",
40+
"description": "Button text for Firefox browser"
41+
},
42+
"homepage.hero.browser.default": {
43+
"message": "Install Extension to Browser",
44+
"description": "Default button text for browser installation"
45+
},
46+
"homepage.hero.browser.crx": {
47+
"message": "Download Installation Package for Manual Install",
48+
"description": "Button text for manual installation"
49+
},
50+
"homepage.hero.trustBadges.title": {
51+
"message": "Trusted and supported by the tech community",
52+
"description": "Trust badges section title"
53+
},
54+
"homepage.features.title.powerful": {
55+
"message": "Powerful Features, ",
56+
"description": "Features section title part 1"
57+
},
58+
"homepage.features.title.possibilities": {
59+
"message": "Infinite Possibilities",
60+
"description": "Features section title highlight"
61+
},
62+
"homepage.features.subtitle": {
63+
"message": "ScriptCat provides a series of powerful features that allow you to easily extend your browser's capabilities and create your own web experience.",
64+
"description": "Features section subtitle"
65+
},
66+
"homepage.features.tampermonkey.title": {
67+
"message": "Tampermonkey Compatible",
68+
"description": "Feature title: Tampermonkey compatibility"
69+
},
70+
"homepage.features.tampermonkey.description": {
71+
"message": "Fully compatible with Tampermonkey script format, seamlessly migrate existing script libraries with zero cost switching.",
72+
"description": "Feature description: Tampermonkey compatibility"
73+
},
74+
"homepage.features.background.title": {
75+
"message": "Background Scripts",
76+
"description": "Feature title: Background scripts"
77+
},
78+
"homepage.features.background.description": {
79+
"message": "Unlike regular user scripts, allows your scripts to run continuously in the background without needing to open tabs.",
80+
"description": "Feature description: Background scripts"
81+
},
82+
"homepage.features.security.title": {
83+
"message": "Safe and Reliable",
84+
"description": "Feature title: Security"
85+
},
86+
"homepage.features.security.description": {
87+
"message": "Strict permission control system, transparent script behavior, effectively prevents malicious scripts and protects your privacy.",
88+
"description": "Feature description: Security"
89+
},
90+
"homepage.features.editor.title": {
91+
"message": "Built-in Code Editor",
92+
"description": "Feature title: Code editor"
93+
},
94+
"homepage.features.editor.description": {
95+
"message": "Powerful code editor with syntax highlighting, code completion, and error hints to make script writing more efficient.",
96+
"description": "Feature description: Code editor"
97+
},
98+
"homepage.features.api.title": {
99+
"message": "Powerful APIs",
100+
"description": "Feature title: APIs"
101+
},
102+
"homepage.features.api.description": {
103+
"message": "Provides richer API interfaces than GM, supports advanced features like file storage and user configuration, extending script capabilities.",
104+
"description": "Feature description: APIs"
105+
},
106+
"homepage.features.store.title": {
107+
"message": "Script Store",
108+
"description": "Feature title: Script store"
109+
},
110+
"homepage.features.store.description": {
111+
"message": "Features a script store for one-click installation of popular scripts, or publish your works to share with the community, building an active ecosystem.",
112+
"description": "Feature description: Script store"
113+
},
114+
"homepage.comparison.title.why": {
115+
"message": "Why Choose",
116+
"description": "Comparison section title part 1"
117+
},
118+
"homepage.comparison.subtitle": {
119+
"message": "Compared to other script engines, ScriptCat provides more advantages and enhanced features",
120+
"description": "Comparison section subtitle"
121+
},
122+
"homepage.comparison.feature": {
123+
"message": "Feature",
124+
"description": "Comparison table header: Feature"
125+
},
126+
"homepage.comparison.feature.compatibility": {
127+
"message": "Script Compatibility",
128+
"description": "Comparison feature: Script compatibility"
129+
},
130+
"homepage.comparison.feature.background": {
131+
"message": "Background Scripts",
132+
"description": "Comparison feature: Background scripts"
133+
},
134+
"homepage.comparison.feature.opensource": {
135+
"message": "Open Source Free",
136+
"description": "Comparison feature: Open source"
137+
},
138+
"homepage.comparison.feature.sync": {
139+
"message": "Cloud Sync",
140+
"description": "Comparison feature: Cloud sync"
141+
},
142+
"homepage.comparison.feature.api": {
143+
"message": "More APIs",
144+
"description": "Comparison feature: More APIs"
145+
},
146+
"homepage.comparison.feature.community": {
147+
"message": "Community Support",
148+
"description": "Comparison feature: Community support"
149+
},
150+
"homepage.comparison.label.efficient": {
151+
"message": "Efficient",
152+
"description": "Comparison label: Efficient"
153+
},
154+
"homepage.comparison.label.multiplatform": {
155+
"message": "Multi-platform",
156+
"description": "Comparison label: Multi-platform"
157+
},
158+
"homepage.scenario.title.solve": {
159+
"message": "Scripts That Solve",
160+
"description": "Scenario section title part 1"
161+
},
162+
"homepage.scenario.title.problems": {
163+
"message": "Real Problems",
164+
"description": "Scenario section title highlight"
165+
},
166+
"homepage.scenario.title.scripts": {
167+
"message": "",
168+
"description": "Scenario section title part 2"
169+
},
170+
"homepage.scenario.subtitle": {
171+
"message": "See how ScriptCat can transform your browsing experience",
172+
"description": "Scenario section subtitle"
173+
},
174+
"homepage.scenario.video.title": {
175+
"message": "Video Site Enhancement",
176+
"description": "Video scenario title"
177+
},
178+
"homepage.scenario.video.subtitle": {
179+
"message": "Optimize video viewing experience",
180+
"description": "Video scenario subtitle"
181+
},
182+
"homepage.scenario.video.tag": {
183+
"message": "Popular Apps",
184+
"description": "Video scenario tag"
185+
},
186+
"homepage.scenario.video.feature.speed": {
187+
"message": "Video Speed Control",
188+
"description": "Video feature: Speed control"
189+
},
190+
"homepage.scenario.video.feature.download": {
191+
"message": "One-click Video Download",
192+
"description": "Video feature: Download"
193+
},
194+
"homepage.scenario.video.feature.adblock": {
195+
"message": "Auto Skip Ads",
196+
"description": "Video feature: Ad blocking"
197+
},
198+
"homepage.scenario.video.feature.ui": {
199+
"message": "UI Simplification",
200+
"description": "Video feature: UI optimization"
201+
},
202+
"homepage.scenario.video.sites": {
203+
"message": "Supported Sites",
204+
"description": "Video scenario supported sites label"
205+
},
206+
"homepage.scenario.video.getScript": {
207+
"message": "Get Script →",
208+
"description": "Video scenario get script link"
209+
},
210+
"homepage.scenario.shopping.title": {
211+
"message": "Shopping Assistant",
212+
"description": "Shopping scenario title"
213+
},
214+
"homepage.scenario.shopping.subtitle": {
215+
"message": "Make shopping experience easier",
216+
"description": "Shopping scenario subtitle"
217+
},
218+
"homepage.scenario.shopping.tag": {
219+
"message": "Practical Tools",
220+
"description": "Shopping scenario tag"
221+
},
222+
"homepage.scenario.shopping.feature.history": {
223+
"message": "Price History Query",
224+
"description": "Shopping feature: Price history"
225+
},
226+
"homepage.scenario.shopping.feature.coupon": {
227+
"message": "Auto Coupon Search",
228+
"description": "Shopping feature: Coupon search"
229+
},
230+
"homepage.scenario.shopping.feature.compare": {
231+
"message": "Price Comparison",
232+
"description": "Shopping feature: Price comparison"
233+
},
234+
"homepage.scenario.shopping.feature.alert": {
235+
"message": "Price Drop Alert",
236+
"description": "Shopping feature: Price alert"
237+
},
238+
"homepage.download.title.ready": {
239+
"message": "Ready to",
240+
"description": "Download section title part 1"
241+
},
242+
"homepage.download.title.enhance": {
243+
"message": "Enhance Your Browsing Experience",
244+
"description": "Download section title highlight"
245+
},
246+
"homepage.download.title.question": {
247+
"message": "?",
248+
"description": "Download section title part 2"
249+
},
250+
"homepage.download.subtitle": {
251+
"message": "Install ScriptCat now and unlock infinite possibilities for web browsing",
252+
"description": "Download section subtitle"
253+
},
254+
"homepage.download.edge": {
255+
"message": "Edge Extension Store",
256+
"description": "Download button: Edge store"
257+
},
258+
"homepage.download.chrome": {
259+
"message": "Chrome Extension Store",
260+
"description": "Download button: Chrome store"
261+
},
262+
"homepage.download.firefox": {
263+
"message": "Firefox Extension Store",
264+
"description": "Download button: Firefox store"
265+
},
266+
"homepage.download.github": {
267+
"message": "GitHub Download",
268+
"description": "Download button: GitHub"
269+
},
270+
"homepage.download.popup.title": {
271+
"message": "ScriptCat Enabled",
272+
"description": "Extension popup title"
273+
},
274+
"homepage.download.popup.text": {
275+
"message": "3 scripts are running on current page",
276+
"description": "Extension popup text"
277+
},
278+
"homepage.footer.contributors.title": {
279+
"message": "Thanks to all contributors",
280+
"description": "Footer contributors section title"
281+
}
282+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"link.title.Docs": {
3+
"message": "Documentation",
4+
"description": "The title of the footer links column with title=Docs in the footer"
5+
},
6+
"link.item.label.使用指南": {
7+
"message": "User Guide",
8+
"description": "The label of footer link with label=使用指南 linking to /docs/use"
9+
},
10+
"link.item.label.开发指南": {
11+
"message": "Developer Guide",
12+
"description": "The label of footer link with label=开发指南 linking to /docs/dev"
13+
},
14+
"link.title.Community": {
15+
"message": "Community",
16+
"description": "The title of the footer links column with title=Community in the footer"
17+
},
18+
"link.item.label.油猴中文网": {
19+
"message": "Tampermonkey Chinese Forum",
20+
"description": "The label of footer link with label=油猴中文网 linking to https://bbs.tampermonkey.net.cn/"
21+
},
22+
"link.item.label.脚本猫脚本站": {
23+
"message": "ScriptCat Script Store",
24+
"description": "The label of footer link with label=脚本猫脚本站 linking to https://scriptcat.org/"
25+
},
26+
"link.title.More": {
27+
"message": "More",
28+
"description": "The title of the footer links column with title=More in the footer"
29+
},
30+
"copyright": {
31+
"message": "Copyright © {year} ScriptCat, Inc. Built with Docusaurus.",
32+
"description": "The footer copyright"
33+
}
34+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"item.label.使用文档": {
3+
"message": "User Guide",
4+
"description": "The label for the user guide navbar item"
5+
},
6+
"item.label.开发文档": {
7+
"message": "Developer Guide",
8+
"description": "The label for the developer guide navbar item"
9+
},
10+
"item.label.更新日志": {
11+
"message": "Changelog",
12+
"description": "The label for the changelog navbar item"
13+
},
14+
"item.label.脚本开发指南": {
15+
"message": "Script Development Guide",
16+
"description": "The label for the script development guide navbar item"
17+
}
18+
}

0 commit comments

Comments
 (0)