Skip to content

Commit 1741e25

Browse files
Copilottakker99
andcommitted
Translate Japanese comments in layout.ts and node files
Co-authored-by: takker99 <37929109+takker99@users.noreply.github.com>
1 parent 2bdd21c commit 1741e25

File tree

7 files changed

+43
-43
lines changed

7 files changed

+43
-43
lines changed

layout.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/** Scrapboxのページの種類を表す文字列から`"page"`を除いたもの
1+
/** string representing Scrapbox page types excluding `"page"`
22
*
33
* | String | Description |
44
* | ------ | ----------- |
5-
* | list | トップページと全文検索結果ページ |
6-
* | stream | streamページ |
7-
* | error-page | 何らかのエラーが発生したときに遷移するページ |
8-
* | new-project-page | 新規project作成ページ |
9-
* | invitation-page | projectに参加するときに出てくるページ |
10-
* | invitation-page | projectに参加するときに出てくるページ |
11-
* | settings-* | ユーザー設定ページ |
12-
* | project-settings-* | projectの設定ページ |
5+
* | list | top page and full-text search results page |
6+
* | stream | stream page |
7+
* | error-page | page to navigate to when some error occurs |
8+
* | new-project-page | new project creation page |
9+
* | invitation-page | page that appears when joining a project |
10+
* | invitation-page | page that appears when joining a project |
11+
* | settings-* | user settings page |
12+
* | project-settings-* | project settings page |
1313
*/
1414
export type PartialLayout =
1515
| "launch"
@@ -41,5 +41,5 @@ export type PartialLayout =
4141
| "project-settings-upload-page"
4242
| "project-settings-billing-page";
4343

44-
/** Scrapboxのページの種類を表す文字列 */
44+
/** string representing Scrapbox page types */
4545
export type Layout = "page" | PartialLayout;

node/audioLink.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import type { BracketUnit } from "./unit.ts";
22
import type { PlainText } from "./plainText.ts";
33

4-
/** タイトル付き音声 */
4+
/** audio with title */
55
export interface AudioLink {
66
type: "audioLink";
77

8-
/** 構文解析結果 */
8+
/** parsing result */
99
unit: AudioLinkUnit;
1010

11-
/** scrapboxにuploadされたfileのID
11+
/** ID of file uploaded to scrapbox
1212
*
13-
* このpropertyはscrapboxにuploadされた音声ファイルのときのみ生える
13+
* this property only exists for audio files uploaded to scrapbox
1414
*/
1515
fileId?: string;
1616

@@ -19,9 +19,9 @@ export interface AudioLink {
1919
}
2020

2121
export interface AudioLinkUnit extends BracketUnit {
22-
/** 音声のURL */
22+
/** audio URL */
2323
link: string;
2424

25-
/** 音声のタイトル */
25+
/** audio title */
2626
title: string;
2727
}

node/decoration.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { Spotify } from "./spotify.ts";
1919
import type { Anchor } from "./anchor.ts";
2020
import type { GoogleMap } from "./googleMap.ts";
2121

22-
/** 文字装飾記法中に入れられる記法 */
22+
/** notation that can be put in text decoration notation */
2323
export type NodeInDecoration =
2424
| PlainText
2525
| Formula
@@ -41,36 +41,36 @@ export type NodeInDecoration =
4141
| Vimeo
4242
| GoogleMap;
4343

44-
/** 文字装飾記法 */
44+
/** text decoration notation */
4545
export interface Decoration {
4646
type: "deco";
4747

48-
/** 構文解析結果 */
48+
/** parsing result */
4949
unit: DecorationUnit;
5050

51-
/** 中に含まれるNode */
51+
/** node contained inside */
5252
children: NodeInDecoration | NodeInDecoration[];
5353
}
5454

5555
export interface DecorationUnit extends BracketUnit {
56-
/** 文字装飾記号 */
56+
/** text decoration symbol */
5757
deco: string;
5858

59-
/** 強調のレベル
59+
/** emphasis level
6060
*
61-
* `*`が一つ増えるごとに1増える
61+
* increases by 1 for each additional `*`
6262
*
63-
* 一つもないときは`0`になる
63+
* becomes `0` when there are none
6464
*/
6565
strong: number;
6666

67-
/** 斜体記号`/`を含むとき`true` */
67+
/** `true` when contains italic symbol `/` */
6868
italic: boolean;
6969

70-
/** 打ち消し記号`-`を含むとき`true` */
70+
/** `true` when contains strikethrough symbol `-` */
7171
strike: boolean;
7272

73-
/** 下線記号`_`を含むとき`true` */
73+
/** `true` when contains underline symbol `_` */
7474
underline: boolean;
7575

7676
whole: `[${string} ${string}]`;

node/gyazo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import type { BracketUnit, DoubleBracketUnit } from "./unit.ts";
22
import type { PlainText } from "./plainText.ts";
33

4-
/** Gyazoから引っ張ってきた画像の画像記法 */
4+
/** image notation for images pulled from Gyazo */
55
export interface Gyazo {
66
type: "gyazo";
77

8-
/** 構文解析結果 */
8+
/** parsing result */
99
unit: GyazoUnit;
1010

1111
/** the same as `unit.content` */
1212
children: PlainText;
1313
}
1414

15-
/** Gyazoから引っ張ってきた画像の強調画像記法 */
15+
/** strong image notation for images pulled from Gyazo */
1616
export interface StrongGyazo {
1717
type: "strongGyazo";
1818

19-
/** 構文解析結果 */
19+
/** parsing result */
2020
unit: StrongGyazoUnit;
2121

2222
/** the same as `unit.content` */

node/gyazoLink.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import type { BracketUnit, DoubleBracketUnit } from "./unit.ts";
22
import type { PlainText } from "./plainText.ts";
33

4-
/** Gyazoから引っ張ってきた画像のリンク付き画像記法 */
4+
/** linked image notation for images pulled from Gyazo */
55
export interface GyazoLink {
66
type: "gyazoLink";
77

8-
/** 構文解析結果 */
8+
/** parsing result */
99
unit: GyazoLinkUnit;
1010

1111
/** the same as `unit.content` */
1212
children: PlainText;
1313
}
14-
/** Gyazoから引っ張ってきた画像のリンク付き強調画像記法 */
14+
/** linked strong image notation for images pulled from Gyazo */
1515
export interface StrongGyazoLink {
1616
type: "strongGyazoLink";
1717

18-
/** 構文解析結果 */
18+
/** parsing result */
1919
unit: StrongGyazoLinkUnit;
2020

2121
/** the same as `unit.content` */

node/indent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import type { Unit } from "./unit.ts";
22
import type { NodeWithoutIndent } from "./node.ts";
33

4-
/** インデントがある行 */
4+
/** line with indentation */
55
export interface Indent {
66
type: "indent";
77

8-
/** 構文解析結果 */
8+
/** parsing result */
99
unit: IndentUnit;
1010

11-
/** 中に含まれるNodes */
11+
/** nodes contained inside */
1212
children: NodeWithoutIndent | NodeWithoutIndent[];
1313
}
1414

1515
export interface IndentUnit extends Unit {
16-
/** インデントに使われている空白 */
16+
/** whitespace used for indentation */
1717
tag: string;
1818
}

node/unit.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
export interface Unit {
2-
/** 記法を取り除いたテキスト */
2+
/** text with notation removed */
33
content: string;
44

5-
/** 記法を取り除いていない生のテキスト */
5+
/** raw text without notation removed */
66
whole: string;
77
}
88

99
export interface BracketUnit extends Unit {
10-
/** 記法を取り除いていない生のテキスト */
10+
/** raw text without notation removed */
1111
whole: `[${this["content"]}]`;
1212
}
1313

1414
export interface DoubleBracketUnit extends Unit {
15-
/** 記法を取り除いていない生のテキスト */
15+
/** raw text without notation removed */
1616
whole: `[[${this["content"]}]]`;
1717
}

0 commit comments

Comments
 (0)