Skip to content

Commit 9406dcc

Browse files
committed
docs: add en doc
1 parent 3e91c19 commit 9406dcc

File tree

22 files changed

+1363
-3
lines changed

22 files changed

+1363
-3
lines changed

docs/docusaurus.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const config: Config = {
2828
// may want to replace "en" with "zh-Hans".
2929
i18n: {
3030
defaultLocale: 'zh',
31-
locales: ['zh'],
31+
locales: ['en', 'zh'],
3232
},
3333

3434
presets: [
@@ -88,6 +88,10 @@ const config: Config = {
8888
},
8989
{ to: '/blog', label: '博客', position: 'left' },
9090
{ href: 'https://blog.gaoredu.com', label: 'Demo演示', position: 'left' },
91+
{
92+
type: 'localeDropdown',
93+
position: 'right',
94+
},
9195
{
9296
href: 'https://github.com/fecommunity/reactpress',
9397
label: 'GitHub',

docs/i18n/en/code.json

Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
{
2+
"theme.ErrorPageContent.title": {
3+
"message": "This page crashed.",
4+
"description": "The title of the fallback page when the page crashed"
5+
},
6+
"theme.BackToTopButton.buttonAriaLabel": {
7+
"message": "Scroll back to top",
8+
"description": "The ARIA label for the back to top button"
9+
},
10+
"theme.blog.archive.title": {
11+
"message": "Archive",
12+
"description": "The page & hero title of the blog archive page"
13+
},
14+
"theme.blog.archive.description": {
15+
"message": "Archive",
16+
"description": "The page & hero description of the blog archive page"
17+
},
18+
"theme.blog.paginator.navAriaLabel": {
19+
"message": "Blog list page navigation",
20+
"description": "The ARIA label for the blog pagination"
21+
},
22+
"theme.blog.paginator.newerEntries": {
23+
"message": "Newer entries",
24+
"description": "The label used to navigate to the newer blog posts page (previous page)"
25+
},
26+
"theme.blog.paginator.olderEntries": {
27+
"message": "Older entries",
28+
"description": "The label used to navigate to the older blog posts page (next page)"
29+
},
30+
"theme.blog.post.paginator.navAriaLabel": {
31+
"message": "Blog post page navigation",
32+
"description": "The ARIA label for the blog posts pagination"
33+
},
34+
"theme.blog.post.paginator.newerPost": {
35+
"message": "Newer post",
36+
"description": "The blog post button label to navigate to the newer/previous post"
37+
},
38+
"theme.blog.post.paginator.olderPost": {
39+
"message": "Older post",
40+
"description": "The blog post button label to navigate to the older/next post"
41+
},
42+
"theme.tags.tagsPageLink": {
43+
"message": "View all tags",
44+
"description": "The label of the link targeting the tag list page"
45+
},
46+
"theme.colorToggle.ariaLabel": {
47+
"message": "Switch between dark and light mode (currently {mode})",
48+
"description": "The ARIA label for the navbar color mode toggle"
49+
},
50+
"theme.colorToggle.ariaLabel.mode.dark": {
51+
"message": "dark mode",
52+
"description": "The name for the dark color mode"
53+
},
54+
"theme.colorToggle.ariaLabel.mode.light": {
55+
"message": "light mode",
56+
"description": "The name for the light color mode"
57+
},
58+
"theme.docs.breadcrumbs.navAriaLabel": {
59+
"message": "Breadcrumbs",
60+
"description": "The ARIA label for the breadcrumbs"
61+
},
62+
"theme.docs.DocCard.categoryDescription.plurals": {
63+
"message": "1 item|{count} items",
64+
"description": "The default description for a category card in the generated index about how many items this category includes"
65+
},
66+
"theme.docs.paginator.navAriaLabel": {
67+
"message": "Docs pages",
68+
"description": "The ARIA label for the docs pagination"
69+
},
70+
"theme.docs.paginator.previous": {
71+
"message": "Previous",
72+
"description": "The label used to navigate to the previous doc"
73+
},
74+
"theme.docs.paginator.next": {
75+
"message": "Next",
76+
"description": "The label used to navigate to the next doc"
77+
},
78+
"theme.docs.tagDocListPageTitle.nDocsTagged": {
79+
"message": "One doc tagged|{count} docs tagged",
80+
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
81+
},
82+
"theme.docs.tagDocListPageTitle": {
83+
"message": "{nDocsTagged} with \"{tagName}\"",
84+
"description": "The title of the page for a docs tag"
85+
},
86+
"theme.docs.versionBadge.label": {
87+
"message": "Version: {versionLabel}"
88+
},
89+
"theme.docs.versions.unreleasedVersionLabel": {
90+
"message": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
91+
"description": "The label used to tell the user that he's browsing an unreleased doc version"
92+
},
93+
"theme.docs.versions.unmaintainedVersionLabel": {
94+
"message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
95+
"description": "The label used to tell the user that he's browsing an unmaintained doc version"
96+
},
97+
"theme.docs.versions.latestVersionSuggestionLabel": {
98+
"message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
99+
"description": "The label used to tell the user to check the latest version"
100+
},
101+
"theme.docs.versions.latestVersionLinkLabel": {
102+
"message": "latest version",
103+
"description": "The label used for the latest version suggestion link label"
104+
},
105+
"theme.common.editThisPage": {
106+
"message": "Edit this page",
107+
"description": "The link label to edit the current page"
108+
},
109+
"theme.common.headingLinkTitle": {
110+
"message": "Direct link to {heading}",
111+
"description": "Title for link to heading"
112+
},
113+
"theme.lastUpdated.atDate": {
114+
"message": " on {date}",
115+
"description": "The words used to describe on which date a page has been last updated"
116+
},
117+
"theme.lastUpdated.byUser": {
118+
"message": " by {user}",
119+
"description": "The words used to describe by who the page has been last updated"
120+
},
121+
"theme.lastUpdated.lastUpdatedAtBy": {
122+
"message": "Last updated{atDate}{byUser}",
123+
"description": "The sentence used to display when a page has been last updated, and by who"
124+
},
125+
"theme.NotFound.title": {
126+
"message": "Page Not Found",
127+
"description": "The title of the 404 page"
128+
},
129+
"theme.navbar.mobileVersionsDropdown.label": {
130+
"message": "Versions",
131+
"description": "The label for the navbar versions dropdown on mobile view"
132+
},
133+
"theme.tags.tagsListLabel": {
134+
"message": "Tags:",
135+
"description": "The label alongside a tag list"
136+
},
137+
"theme.admonition.caution": {
138+
"message": "caution",
139+
"description": "The default label used for the Caution admonition (:::caution)"
140+
},
141+
"theme.admonition.danger": {
142+
"message": "danger",
143+
"description": "The default label used for the Danger admonition (:::danger)"
144+
},
145+
"theme.admonition.info": {
146+
"message": "info",
147+
"description": "The default label used for the Info admonition (:::info)"
148+
},
149+
"theme.admonition.note": {
150+
"message": "note",
151+
"description": "The default label used for the Note admonition (:::note)"
152+
},
153+
"theme.admonition.tip": {
154+
"message": "tip",
155+
"description": "The default label used for the Tip admonition (:::tip)"
156+
},
157+
"theme.admonition.warning": {
158+
"message": "warning",
159+
"description": "The default label used for the Warning admonition (:::warning)"
160+
},
161+
"theme.AnnouncementBar.closeButtonAriaLabel": {
162+
"message": "Close",
163+
"description": "The ARIA label for close button of announcement bar"
164+
},
165+
"theme.blog.sidebar.navAriaLabel": {
166+
"message": "Blog recent posts navigation",
167+
"description": "The ARIA label for recent posts in the blog sidebar"
168+
},
169+
"theme.CodeBlock.copied": {
170+
"message": "Copied",
171+
"description": "The copied button label on code blocks"
172+
},
173+
"theme.CodeBlock.copyButtonAriaLabel": {
174+
"message": "Copy code to clipboard",
175+
"description": "The ARIA label for copy code blocks button"
176+
},
177+
"theme.CodeBlock.copy": {
178+
"message": "Copy",
179+
"description": "The copy button label on code blocks"
180+
},
181+
"theme.CodeBlock.wordWrapToggle": {
182+
"message": "Toggle word wrap",
183+
"description": "The title attribute for toggle word wrapping button of code block lines"
184+
},
185+
"theme.DocSidebarItem.expandCategoryAriaLabel": {
186+
"message": "Expand sidebar category '{label}'",
187+
"description": "The ARIA label to expand the sidebar category"
188+
},
189+
"theme.DocSidebarItem.collapseCategoryAriaLabel": {
190+
"message": "Collapse sidebar category '{label}'",
191+
"description": "The ARIA label to collapse the sidebar category"
192+
},
193+
"theme.NavBar.navAriaLabel": {
194+
"message": "Main",
195+
"description": "The ARIA label for the main navigation"
196+
},
197+
"theme.NotFound.p1": {
198+
"message": "We could not find what you were looking for.",
199+
"description": "The first paragraph of the 404 page"
200+
},
201+
"theme.NotFound.p2": {
202+
"message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
203+
"description": "The 2nd paragraph of the 404 page"
204+
},
205+
"theme.navbar.mobileLanguageDropdown.label": {
206+
"message": "Languages",
207+
"description": "The label for the mobile language switcher dropdown"
208+
},
209+
"theme.TOCCollapsible.toggleButtonLabel": {
210+
"message": "On this page",
211+
"description": "The label used by the button on the collapsible TOC component"
212+
},
213+
"theme.blog.post.readMore": {
214+
"message": "Read more",
215+
"description": "The label used in blog post item excerpts to link to full blog posts"
216+
},
217+
"theme.blog.post.readMoreLabel": {
218+
"message": "Read more about {title}",
219+
"description": "The ARIA label for the link to full blog posts from excerpts"
220+
},
221+
"theme.blog.post.readingTime.plurals": {
222+
"message": "One min read|{readingTime} min read",
223+
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
224+
},
225+
"theme.docs.breadcrumbs.home": {
226+
"message": "Home page",
227+
"description": "The ARIA label for the home page in the breadcrumbs"
228+
},
229+
"theme.docs.sidebar.collapseButtonTitle": {
230+
"message": "Collapse sidebar",
231+
"description": "The title attribute for collapse button of doc sidebar"
232+
},
233+
"theme.docs.sidebar.collapseButtonAriaLabel": {
234+
"message": "Collapse sidebar",
235+
"description": "The title attribute for collapse button of doc sidebar"
236+
},
237+
"theme.docs.sidebar.navAriaLabel": {
238+
"message": "Docs sidebar",
239+
"description": "The ARIA label for the sidebar navigation"
240+
},
241+
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
242+
"message": "Close navigation bar",
243+
"description": "The ARIA label for close button of mobile sidebar"
244+
},
245+
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
246+
"message": "← Back to main menu",
247+
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
248+
},
249+
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
250+
"message": "Toggle navigation bar",
251+
"description": "The ARIA label for hamburger menu button of mobile navigation"
252+
},
253+
"theme.docs.sidebar.expandButtonTitle": {
254+
"message": "Expand sidebar",
255+
"description": "The ARIA label and title attribute for expand button of doc sidebar"
256+
},
257+
"theme.docs.sidebar.expandButtonAriaLabel": {
258+
"message": "Expand sidebar",
259+
"description": "The ARIA label and title attribute for expand button of doc sidebar"
260+
},
261+
"theme.blog.post.plurals": {
262+
"message": "One post|{count} posts",
263+
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
264+
},
265+
"theme.blog.tagTitle": {
266+
"message": "{nPosts} tagged with \"{tagName}\"",
267+
"description": "The title of the page for a blog tag"
268+
},
269+
"theme.blog.author.pageTitle": {
270+
"message": "{authorName} - {nPosts}",
271+
"description": "The title of the page for a blog author"
272+
},
273+
"theme.blog.authorsList.pageTitle": {
274+
"message": "Authors",
275+
"description": "The title of the authors page"
276+
},
277+
"theme.blog.authorsList.viewAll": {
278+
"message": "View all authors",
279+
"description": "The label of the link targeting the blog authors page"
280+
},
281+
"theme.blog.author.noPosts": {
282+
"message": "This author has not written any posts yet.",
283+
"description": "The text for authors with 0 blog post"
284+
},
285+
"theme.contentVisibility.unlistedBanner.title": {
286+
"message": "Unlisted page",
287+
"description": "The unlisted content banner title"
288+
},
289+
"theme.contentVisibility.unlistedBanner.message": {
290+
"message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
291+
"description": "The unlisted content banner message"
292+
},
293+
"theme.contentVisibility.draftBanner.title": {
294+
"message": "Draft page",
295+
"description": "The draft content banner title"
296+
},
297+
"theme.contentVisibility.draftBanner.message": {
298+
"message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
299+
"description": "The draft content banner message"
300+
},
301+
"theme.ErrorPageContent.tryAgain": {
302+
"message": "Try again",
303+
"description": "The label of the button to try again rendering when the React error boundary captures an error"
304+
},
305+
"theme.common.skipToMainContent": {
306+
"message": "Skip to main content",
307+
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
308+
},
309+
"theme.tags.tagsPageTitle": {
310+
"message": "Tags",
311+
"description": "The title of the tag list page"
312+
}
313+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fecommunity:
2+
name: reactpress
3+
title: reactpress
4+
url: https://github.com/fecommunity/reactpress
5+
image_url: https://github.com/fecommunity.png

0 commit comments

Comments
 (0)