Skip to content

Commit a92fdfb

Browse files
authored
Merge pull request #80 from scrapbox-jp/copilot/fix-7d349bc2-4095-46d0-a7f2-c3928ac867c6
Translate all Japanese comments to English
2 parents 042894b + 28e5f05 commit a92fdfb

File tree

24 files changed

+162
-162
lines changed

24 files changed

+162
-162
lines changed

api/commits/project/pageId.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,47 +68,47 @@ export type Change =
6868
| CharsCountChange
6969
| PinChange;
7070

71-
/** 既存の行を書き換える変更 */
71+
/** change that rewrites an existing line */
7272
export interface UpdateChange {
73-
/** 書き換える行のID */
73+
/** ID of the line to rewrite */
7474
_update: LineId;
7575

76-
/** 行の変更内容 */
76+
/** content changes of the line */
7777
lines: ChangeLine;
7878
}
7979

80-
/** ページ中のリンクが変更されると発生する */
80+
/** occurs when links in a page are changed */
8181
export interface LinksChange {
82-
/** 新しいリンク */
82+
/** new links */
8383
links: string[];
8484

85-
/** 新しいリンク */
85+
/** new links */
8686
linksLc: StringLc[];
8787
}
8888

89-
/** ページ中のproject linksが変更されると発生する */
89+
/** occurs when project links in a page are changed */
9090
export interface ProjectLinksChange {
91-
/** 新しいリンク */
91+
/** new links */
9292
projectLinks: string[];
9393

94-
/** 新しいリンク */
94+
/** new links */
9595
projectLinksLc: StringLc[];
9696
}
9797

98-
/** ページ中のiconsが変更されると発生する */
98+
/** occurs when icons in a page are changed */
9999
export interface IconsChange {
100-
/** 新しいicons */
100+
/** new icons */
101101
icons: string[];
102102

103-
/** 新しいicons */
103+
/** new icons */
104104
iconsLc: StringLc[];
105105
}
106106

107-
/** ページのタイトルが変更されると発生する */
107+
/** occurs when the title of a page is changed */
108108
export interface TitleChange {
109-
/** 新しいタイトル */
109+
/** new title */
110110
title: string;
111111

112-
/** 新しいタイトル */
112+
/** new title */
113113
titleLc: StringLc;
114114
}

api/page-data/export/project.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { BaseLine, UnixTime } from "../../../base.ts";
22
import type { Page, UserInfo } from "../../pages/project/title.ts";
33

4-
/** exportしたときのページデータ */
4+
/** page data when exported */
55
export interface ExportedPage<hasMetadata extends true | false = false>
66
extends Pick<Page, "title" | "updated" | "created" | "id" | "views"> {
7-
/** ページ本文
7+
/** page content
88
*
9-
* `hasMetadata === true`のときは行のmetadataが入る
10-
* それ以外の場合は行のテキストが入る
9+
* when `hasMetadata === true`, line metadata is included
10+
* otherwise, line text is included
1111
*/
1212
lines: hasMetadata extends true ? Omit<BaseLine, "id">[] : string[];
1313
}
@@ -20,7 +20,7 @@ export interface ExportedData<hasMetadata extends true | false = false> {
2020
/** project's display name */
2121
displayName: string;
2222

23-
/** このデータを生成した日時 (UNIX時刻) */
23+
/** date and time when this data was generated (UNIX time) */
2424
exported: UnixTime;
2525

2626
/** project members */

api/page-data/import/project.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface ImportedData<hasMetadata extends true | false = false> {
66
pages: hasMetadata extends true ? ImportedPage[] : ImportedLightPage[];
77
}
88

9-
/** メタデータ無しインポート用ページデータ */
9+
/** import page data without metadata */
1010
export interface ImportedLightPage {
1111
/** page's title
1212
*
@@ -20,18 +20,18 @@ export interface ImportedLightPage {
2020
*/
2121
lines: string[];
2222
}
23-
/** インポート用メタデータ付き行データ */
23+
/** import line data with metadata */
2424
export interface ImportedLine {
2525
/** line text */
2626
text: string;
2727

28-
/** 行の最終更新日時 (UNIX時刻) */
28+
/** line last update date and time (UNIX time) */
2929
updated?: UnixTime;
3030

31-
/** 行の最終作成日時 (UNIX時刻) */
31+
/** line last creation date and time (UNIX time) */
3232
created?: UnixTime;
3333
}
34-
/** メタデータ付きインポート用ページデータ */
34+
/** import page data with metadata */
3535
export interface ImportedPage {
3636
/** page's title
3737
*

api/page-snapshots/project/pageId/timestampId.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export interface PageWithSnapshot extends BasePage {
1515

1616
/** a page snapshot */
1717
export interface Snapshot {
18-
/** snapshotを撮ったときのページタイトル */
18+
/** page title when the snapshot was taken */
1919
title: string;
2020

21-
/** snapshotの作成日時 */
21+
/** snapshot creation date and time */
2222
created: UnixTime;
2323

24-
/** snapshotしたページ本文 */
24+
/** page content that was snapshotted */
2525
lines: BaseLine[];
2626
}

api/pages/project.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ import type { PageId, UnixTime, UserId } from "../../base.ts";
22

33
/** the response type of https://scrpabox.io/api/pages/:projectname */
44
export interface PageList {
5-
/** data取得先のproject名 */
5+
/** project name from which data was retrieved */
66
projectName: string;
77

8-
/** parameterに渡したskipと同じ */
8+
/** same as skip passed in parameter */
99
skip: number;
1010

11-
/** parameterに渡したlimitと同じ */
11+
/** same as limit passed in parameter */
1212
limit: number;
1313

14-
/** projectの全ページ数 (中身のないページを除く) */
14+
/** total number of pages in the project (excluding pages with no content) */
1515
count: number;
1616

17-
/** 取得できたページ情報 */
17+
/** page information that could be retrieved */
1818
pages: PageSummary[];
1919
}
2020

api/pages/project/search/query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface SearchResult {
55
/** 検索したprojectの名前 */
66
projectName: string;
77

8-
/** 検索文字列 */
8+
/** search string */
99
searchQuery: string;
1010

1111
/** 検索語句 */
@@ -17,7 +17,7 @@ export interface SearchResult {
1717
/** 検索件数 */
1818
count: number;
1919

20-
/** 検索文字列と完全一致するタイトルが見つかったら`true` */
20+
/** `true` if a title with exact match to the search string is found */
2121
existsExactTitleMatch: boolean;
2222

2323
field: "title" | "helpfeels" | "lines";

api/pages/project/search/watch-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { SearchQuery } from "./query.ts";
33

44
/** the response type of /api/projects/search/query and /api/projects/search/watch-list */
55
export interface ProjectSearchResult {
6-
/** 検索文字列 */
6+
/** search string */
77
searchQuery: string;
88

99
/** 検索語句 */

api/pages/project/title.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export interface RelatedPages {
190190
/** external links */
191191
projectLinks1hop: ProjectRelatedPage[];
192192

193-
/** このページを参照しているページorアイコンがあればtrue */
193+
/** true if there are pages or icons that reference this page */
194194
hasBackLinksOrIcons: boolean;
195195

196196
/** 2 hop searchのquery */
@@ -210,7 +210,7 @@ export interface InfoboxResult {
210210
truncated: boolean;
211211
}
212212

213-
/** 関連ページのメタデータ */
213+
/** related page metadata */
214214
export interface RelatedPage extends
215215
Pick<
216216
BasePage,

api/project-backup/project/backupId.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import type { BaseLine, StringLc, UnixTime } from "../../../base.ts";
22
import type { UserForExport } from "../../page-data/export/project.ts";
33
import type { Page } from "../../pages/project/title.ts";
44

5-
/** backupされるページデータ */
5+
/** page data to be backed up */
66
export interface BackupedPage
77
extends Pick<Page, "title" | "updated" | "created" | "id" | "views"> {
8-
/** ページ本文 */
8+
/** page content */
99
lines: Pick<BaseLine, "text" | "created" | "updated" | "userId">[];
1010

11-
/** ページに含まれているリンク*/
11+
/** links contained in the page */
1212
linksLc: StringLc[];
1313
}
1414

@@ -20,7 +20,7 @@ export interface BackupData {
2020
/** project's display name */
2121
displayName: string;
2222

23-
/** このデータを生成した日時 (UNIX時刻) */
23+
/** date and time when this data was generated (UNIX time) */
2424
exported: UnixTime;
2525

2626
/** project members */

base.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/** scrapboxの行のメタデータ */
1+
/** scrapbox line metadata */
22
export interface BaseLine {
33
id: LineId;
44

5-
/** 行のテキスト */
5+
/** text of the line */
66
text: string;
77

8-
/** 一番最後に行を編集した人のid */
8+
/** id of the user who last edited the line */
99
userId: UserId;
1010

11-
/** 行の作成日時 */
11+
/** line creation date and time */
1212
created: UnixTime;
1313

14-
/** 行の最終更新日時 */
14+
/** line last update date and time */
1515
updated: UnixTime;
1616
}
1717

1818
/** basic information about a page */
1919
export interface BasePage {
2020
id: PageId;
2121

22-
/** 最新の編集コミットid */
22+
/** latest edit commit id */
2323
commitId: CommitId;
2424

2525
/** the title of a page */
@@ -37,29 +37,29 @@ export interface BasePage {
3737
*/
3838
descriptions: string[];
3939

40-
/** ピン留めの状態を表す数値
40+
/** numeric value representing pin status
4141
*
42-
* - 0: ピンされてない
43-
* - 0以外: ピンされている
42+
* - 0: not pinned
43+
* - non-zero: pinned
4444
*/
4545
pin: number;
4646

47-
/** ページの作成日時 */
47+
/** page creation date and time */
4848
created: UnixTime;
4949

50-
/** ページの最終更新日時 */
50+
/** page last update date and time */
5151
updated: UnixTime;
5252

53-
/** Date last visitedに使われる最終アクセス日時 */
53+
/** last access date and time used for Date last visited */
5454
accessed: UnixTime;
5555

56-
/** Page historyの最終生成日時 */
56+
/** last generation date and time of page history */
5757
snapshotCreated: UnixTime | null;
5858

59-
/** ページの閲覧回数 */
59+
/** page view count */
6060
views: number;
6161

62-
/** 被リンク数 */
62+
/** number of incoming links */
6363
linked: number;
6464

6565
/** page rank */

0 commit comments

Comments
 (0)