Skip to content

Commit d0f044b

Browse files
committed
Add Japanese translations and improve docs
1 parent cd7e145 commit d0f044b

File tree

26 files changed

+302
-74
lines changed

26 files changed

+302
-74
lines changed

docs/ts-graphviz/03-guides/01-rendering-graphs-to-images.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Ensure that [Graphviz](https://graphviz.org/download/) is installed on your syst
2626
### Converting DOT to an Image Stream
2727

2828
```typescript
29-
import { toStream } from '@ts-graphviz/adapter';
29+
import { toStream } from 'ts-graphviz/adapter';
3030

3131
const dot = `
3232
digraph example {
@@ -46,7 +46,7 @@ await stream.pipeTo(Deno.stdout.writable);
4646
### Writing DOT to an Image File
4747

4848
```typescript
49-
import { toFile } from '@ts-graphviz/adapter';
49+
import { toFile } from 'ts-graphviz/adapter';
5050

5151
const dot = `
5252
digraph example {
@@ -63,7 +63,7 @@ await toFile(dot, './result.svg', { format: 'svg' });
6363
- **Output Formats**: Specify the desired output format (e.g., `svg`, `png`) through the options.
6464
- **Runtime Compatibility**: Designed to work seamlessly in both Node.js and Deno environments.
6565

66-
## When to Use `@ts-graphviz/adapter`
66+
## When to Use `ts-graphviz/adapter` module
6767

6868
- When you need to render your graphs into image files for visualization.
6969
- If you want to generate images dynamically within your application.

docs/ts-graphviz/11-advanced-topics/01-design-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ description: Design principles of ts-graphviz.
3131

3232
1. **Multi-Paradigm Support**
3333

34-
The library accommodates various programming paradigms, including Object-Oriented Programming, Declarative Programming, and Functional Programming. Users can choose the style that best suits their needs, making the library versatile and adaptable.
34+
The library accommodates various programming paradigms, including Object-Oriented Programming and Declarative Programming. Users can choose the style that best suits their needs, making the library versatile and adaptable.

docs/ts-graphviz/11-advanced-topics/04-supported-environments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Supported environments for ts-graphviz.
3+
draft: true
34
---
45
# Supported Environments
56

docs/ts-graphviz/11-advanced-topics/05-security-policies.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ description: Security policies for ts-graphviz.
55

66
## Purpose and Importance
77

8-
In today's software development landscape, **Open Source Software (OSS)** plays an indispensable role in building applications. According to the **Open Source Security Foundation (OpenSSF)**, **70% to 90%** of modern applications consist of OSS components, and the complexity of their dependencies is increasing daily.
8+
In today's software development landscape, **Open Source Software (OSS)** plays an indispensable role in building applications. According to the **Open Source Security Foundation (OpenSSF)**, **70% to 90%** of modern applications consist of OSS components[^1], and the complexity of their dependencies is increasing daily.
9+
10+
[^1]: Behlendorf, B. (2022, May 11). *Brian Behlendorf Testifies to Congress on Open Source Software Security* (original in English). The Linux Foundation. Retrieved from [https://www.linuxfoundation.org/blog/blog/lf/brian-behlendorf-testifies-open-source-software-security](https://www.linuxfoundation.org/blog/blog/lf/brian-behlendorf-testifies-open-source-software-security)
911

1012
### The Impact and Responsibility of ts-graphviz
1113

docs/ts-graphviz/99-migration-guides/v1-to-v2/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ If you only need specific functionality and wish to minimize dependencies, you c
7979
```json
8080
{
8181
"dependencies": {
82-
"@ts-graphviz/adapter": "^2.0.0"
82+
"@ts-graphviz/ast": "^2.0.0"
8383
}
8484
}
8585
```
8686

8787
And import:
8888

8989
```typescript
90-
import { toFile } from '@ts-graphviz/adapter';
90+
import { parse } from '@ts-graphviz/ast';
9191
```
9292

9393
### 5. Migrate Type System Extensions
Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,70 @@
11
{
22
"version.label": {
3-
"message": "Next",
4-
"description": "The label for version current"
3+
"message": "",
4+
"description": "現在のバージョンのラベル"
55
},
66
"sidebar.tutorialSidebar.category.ts-graphviz Library": {
77
"message": "ts-graphviz ライブラリ",
8-
"description": "The label for category ts-graphviz Library in sidebar tutorialSidebar"
8+
"description": "サイドバー tutorialSidebar 内のカテゴリ「ts-graphviz ライブラリ」のラベル"
99
},
1010
"sidebar.tutorialSidebar.category.ts-graphviz Library.link.generated-index.description": {
1111
"message": "ts-graphviz ライブラリの概要と使い方。",
12-
"description": "The generated-index page description for category ts-graphviz Library in sidebar tutorialSidebar"
12+
"description": "サイドバー tutorialSidebar 内のカテゴリ「ts-graphviz ライブラリ」の generated-index ページの説明"
1313
},
1414
"sidebar.tutorialSidebar.category.Getting Started": {
1515
"message": "クイックスタート",
16-
"description": "The label for category Getting Started in sidebar tutorialSidebar"
16+
"description": "サイドバー tutorialSidebar 内のカテゴリ「クイックスタート」のラベル"
1717
},
1818
"sidebar.tutorialSidebar.category.Getting Started.link.generated-index.description": {
1919
"message": "ts-graphviz の最も重要なコンセプトを5分で学びましょう。",
20-
"description": "The generated-index page description for category Getting Started in sidebar tutorialSidebar"
20+
"description": "サイドバー tutorialSidebar 内のカテゴリ「クイックスタート」の generated-index ページの説明"
2121
},
2222
"sidebar.tutorialSidebar.category.Practical Tutorials": {
2323
"message": "実践的なチュートリアル",
24-
"description": "The label for category Practical Tutorials in sidebar tutorialSidebar"
24+
"description": "サイドバー tutorialSidebar 内のカテゴリ「実践的なチュートリアル」のラベル"
2525
},
2626
"sidebar.tutorialSidebar.category.Practical Tutorials.link.generated-index.description": {
2727
"message": "ts-graphviz を実際のシナリオで適用するためのステップバイステップのチュートリアル。",
28-
"description": "The generated-index page description for category Practical Tutorials in sidebar tutorialSidebar"
28+
"description": "サイドバー tutorialSidebar 内のカテゴリ「実践的なチュートリアル」の generated-index ページの説明"
2929
},
3030
"sidebar.tutorialSidebar.category.Intermediate Topics": {
3131
"message": "中級トピック",
32-
"description": "The label for category Intermediate Topics in sidebar tutorialSidebar"
32+
"description": "サイドバー tutorialSidebar 内のカテゴリ「中級トピック」のラベル"
3333
},
3434
"sidebar.tutorialSidebar.category.Intermediate Topics.link.generated-index.description": {
3535
"message": "ts-graphviz の内部動作を理解するための中級トピック。",
36-
"description": "The generated-index page description for category Intermediate Topics in sidebar tutorialSidebar"
36+
"description": "サイドバー tutorialSidebar 内のカテゴリ「中級トピック」の generated-index ページの説明"
3737
},
3838
"sidebar.tutorialSidebar.category.Advanced Usage": {
3939
"message": "高度な使い方",
40-
"description": "The label for category Advanced Usage in sidebar tutorialSidebar"
40+
"description": "サイドバー tutorialSidebar 内のカテゴリ「高度な使い方」のラベル"
4141
},
4242
"sidebar.tutorialSidebar.category.Advanced Usage.link.generated-index.description": {
4343
"message": "ts-graphviz の内部動作を理解するための高度なトピック。",
44-
"description": "The generated-index page description for category Advanced Usage in sidebar tutorialSidebar"
44+
"description": "サイドバー tutorialSidebar 内のカテゴリ「高度な使い方」の generated-index ページの説明"
4545
},
4646
"sidebar.tutorialSidebar.category.Migration Guides": {
4747
"message": "マイグレーションガイド",
48-
"description": "The label for category Migration Guides in sidebar tutorialSidebar"
48+
"description": "サイドバー tutorialSidebar 内のカテゴリ「マイグレーションガイド」のラベル"
4949
},
5050
"sidebar.tutorialSidebar.category.Migration Guides.link.generated-index.description": {
5151
"message": "このマイグレーション・ガイドは、ts-graphvizのバージョンをマイグレーションする際に役立ちます。 変更点の概要、その理由、コードを更新するためのステップ・バイ・ステップの手順が記載されています。",
52-
"description": "The generated-index page description for category Migration Guides in sidebar tutorialSidebar"
52+
"description": "サイドバー tutorialSidebar 内のカテゴリ「マイグレーションガイド」の generated-index ページの説明"
53+
},
54+
"sidebar.tutorialSidebar.category.Guides": {
55+
"message": "ガイド",
56+
"description": "サイドバー tutorialSidebar 内のカテゴリ「ガイド」のラベル"
57+
},
58+
"sidebar.tutorialSidebar.category.Guides.link.generated-index.description": {
59+
"message": "ts-graphvizを理解するためのガイドです。",
60+
"description": "サイドバー tutorialSidebar 内のカテゴリ「ガイド」の generated-index ページの説明"
61+
},
62+
"sidebar.tutorialSidebar.category.Advanced Topics": {
63+
"message": "高度なトピック",
64+
"description": "サイドバー tutorialSidebar 内のカテゴリ「高度なトピック」のラベル"
65+
},
66+
"sidebar.tutorialSidebar.category.Advanced Topics.link.generated-index.description": {
67+
"message": "ts-graphvizの内部動作を理解するための高度なトピック。",
68+
"description": "サイドバー tutorialSidebar 内のカテゴリ「高度なトピック」の generated-index ページの説明"
5369
}
5470
}

0 commit comments

Comments
 (0)