Skip to content

Commit 043d152

Browse files
Copilottakker99
andcommitted
Translate Japanese comments to English in base.ts, change.ts, and api/commits/project/pageId.ts
Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
1 parent 18f6c70 commit 043d152

File tree

3 files changed

+47
-47
lines changed

3 files changed

+47
-47
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
}

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 */

change.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
import type { BasePage, LineId } from "./base.ts";
22

3-
/** 行を新規作成する変更 */
3+
/** change that creates a new line */
44
export interface InsertChange {
5-
/** このIDが示す行の上に挿入する
5+
/** insert above the line indicated by this ID
66
*
7-
* 末尾に挿入するときは`"_end"`を指定する
7+
* specify `"_end"` when inserting at the end
88
*/
99
_insert: LineId;
1010

11-
/** 挿入する行のデータ */
11+
/** data of the line to insert */
1212
lines: NewLine;
1313
}
1414

1515
export interface NewLine {
16-
/** 新しく挿入する行のID */
16+
/** ID of the newly inserted line */
1717
id: LineId;
1818

19-
/** 行のテキスト */
19+
/** text of the line */
2020
text: string;
2121
}
2222

2323
export interface ChangeLine {
24-
/**変更前の文字列*/
24+
/** string before change */
2525
origText: string;
2626

27-
/**変更後の文字列*/
27+
/** string after change */
2828
text: string;
2929
}
3030

31-
/** 既存の行を削除する変更 */
31+
/** change that deletes an existing line */
3232
export interface DeleteChange {
33-
/** 削除する行のID */
33+
/** ID of the line to delete */
3434
_delete: LineId;
3535

36-
/** 常に `-1` */
36+
/** always `-1` */
3737
lines: -1;
3838
}
3939

40-
/** ページのサムネイル本文が変更されると発生する */
40+
/** occurs when the thumbnail text of a page is changed */
4141
export interface DescriptionsChange {
42-
/** 新しいサムネイル本文 */
42+
/** new thumbnail text */
4343
descriptions: string[];
4444
}
4545

46-
/** ページのサムネイルが変更されると発生する */
46+
/** occurs when the thumbnail of a page is changed */
4747
export interface ImageChange {
48-
/** 新しいサムネイルのURL
48+
/** new thumbnail URL
4949
*
50-
* サムネイルがなくなったときは`null`になる
50+
* becomes `null` when the thumbnail is removed
5151
*/
5252
image: string | null;
5353
}
@@ -87,7 +87,7 @@ export interface CharsCountChange {
8787
charsCount: number;
8888
}
8989

90-
/** ページのピンの状態が変更されると発生する */
90+
/** occurs when the pin status of a page is changed */
9191
export interface PinChange {
9292
pin: BasePage["pin"];
9393
}

0 commit comments

Comments
 (0)