Skip to content

Commit 67b282c

Browse files
committed
feat: en
1 parent 12152df commit 67b282c

File tree

28 files changed

+1541
-165
lines changed

28 files changed

+1541
-165
lines changed

bun.lock

Lines changed: 205 additions & 155 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docusaurus.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const config: Config = {
1818

1919
i18n: {
2020
defaultLocale: "zh-Hant",
21-
locales: ["zh-Hant", "en"],
21+
locales: ["zh-Hant", "en", "ja"],
2222
},
2323

2424
presets: [
@@ -29,6 +29,8 @@ const config: Config = {
2929
sidebarPath: "./sidebars.ts",
3030
editUrl: "https://github.com/ExpTechTW/api-docs/tree/main",
3131
editLocalizedFiles: true,
32+
showLastUpdateAuthor: true,
33+
showLastUpdateTime: true,
3234
},
3335
blog: {
3436
showReadingTime: true,
@@ -62,10 +64,10 @@ const config: Config = {
6264
position: "left",
6365
label: "產品",
6466
},
65-
// {
66-
// type: "localeDropdown",
67-
// position: "right",
68-
// },
67+
{
68+
type: "localeDropdown",
69+
position: "right",
70+
},
6971
{
7072
href: "https://github.com/ExpTechTW/api-Docs",
7173
label: "GitHub",

i18n/en/code.json

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

0 commit comments

Comments
 (0)