Skip to content

Commit a81b088

Browse files
committed
translate files into ja
1 parent e3f1df6 commit a81b088

8 files changed

+43
-43
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
display: "disableReferencedProjectLoad"
33
oneline: "Reduce the number of projects loaded automatically by TypeScript."
4+
oneline: "Reduces the number of projects loaded automatically by TypeScript"
45
---
56

6-
In multi-project TypeScript programs, TypeScript will load all of the available projects into memory in order to provide accurate results for editor responses which require a full knowledge graph like 'Find All References'.
7+
複数プロジェクトのTypeScriptプログラムでは、TypeScriptは利用可能なすべてのプロジェクトをメモリに読み込みます。これにより、「すべての参照元を検索」のような完全なナレッジグラフを必要とするエディタのレスポンスに対して正確な結果を提供することができます。
78

8-
If your project is large, you can use the flag `disableReferencedProjectLoad` to disable the automatic loading of all projects. Instead, projects are loaded dynamically as you open files through your editor.
9+
プロジェクトが大規模な場合は、`disableReferencedProjectLoad`フラグを使用してすべてのプロジェクトの自動読み込みを無効にすることができます。代わりに、エディタでファイルを開いたときに動的にプロジェクトが読み込まれます。

docs/tsconfig/ja/options/jsxFragmentFactory.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ display: "jsxFragmentFactory"
33
oneline: "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."
44
---
55

6-
Specify the JSX fragment factory function to use when targeting react JSX emit with `jsxFactory` compiler option is specified, e.g. `Fragment`.
6+
コンパイラオプションに`jsxFactory`が指定されており、React JSXのコンパイルを目的とする場合に使用されるJSXフラグメントファクトリ関数(例: `Fragment`)を指定します。
77

8-
For example with this TSConfig:
8+
例えば、次のTSConfigでは:
99

1010
```json tsconfig
1111
{
@@ -19,7 +19,7 @@ For example with this TSConfig:
1919
}
2020
```
2121

22-
This TSX file:
22+
このTSXファイルは:
2323

2424
```tsx
2525
import { h, Fragment } from "preact";
@@ -31,7 +31,7 @@ const HelloWorld = () => (
3131
);
3232
```
3333

34-
Would look like:
34+
次のようになります:
3535

3636
```tsx twoslash
3737
// @showEmit
@@ -51,9 +51,9 @@ const HelloWorld = () => (
5151
);
5252
```
5353

54-
This option can be used on a per-file basis too similar to [Babel's `/* @jsxFrag h */` directive](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx#fragments).
54+
このオプションは[Babelの`/* @jsxFrag h */`ディレクティブ](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx#fragments)とよく似ており、ファイル単位で使用できます。
5555

56-
For example:
56+
:
5757

5858
```tsx twoslash
5959
/** @jsx h */

docs/tsconfig/ja/options/jsxImportSource.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22
display: "jsxImportSource"
3-
oneline: "Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"
43
---
54

6-
Declares the module specifier to be used for importing the `jsx` and `jsxs` factory functions when using [`jsx`](#jsx) as `"react-jsx"` or `"react-jsxdev"` which were introduced in TypeScript 4.1.
5+
TypeScript 4.1で導入された`"react-jsx"``"react-jsxdev"`[`jsx`](#jsx)に指定する際に`jsx``jsxs`のファクトリ関数をインポートするモジュール指定子を宣言します。
76

8-
With [React 17](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) the library supports a new form of JSX transformation via a separate import.
7+
[React 17](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)では、それぞれのインポートによる新しいJSXの変換がサポートされています。
98

10-
For example with this code:
9+
例えば、このコードで:
1110

1211
```tsx
1312
import React from "react";
@@ -17,7 +16,7 @@ function App() {
1716
}
1817
```
1918

20-
Using this TSConfig:
19+
次のようなTSConfigの場合:
2120

2221
```json tsconfig
2322
{
@@ -29,7 +28,7 @@ Using this TSConfig:
2928
}
3029
```
3130

32-
The emitted JavaScript from TypeScript is:
31+
TypeScriptからコンパイルされるJavaScriptは次のようになります:
3332

3433
```tsx twoslash
3534
// @showEmit
@@ -50,7 +49,7 @@ function App() {
5049
}
5150
```
5251

53-
For example if you wanted to use `"jsxImportSource": "preact"`, you need a tsconfig like:
52+
`"jsxImportSource": "preact"`を使用する場合、tsconfigは次のようになり:
5453

5554
```json tsconfig
5655
{
@@ -64,7 +63,7 @@ For example if you wanted to use `"jsxImportSource": "preact"`, you need a tscon
6463
}
6564
```
6665

67-
Which generates code like:
66+
以下のようなコードが生成されます:
6867

6968
```tsx twoslash
7069
// @showEmit
@@ -80,7 +79,7 @@ export function App() {
8079
}
8180
```
8281

83-
Alternatively, you can use a per-file pragma to set this option, for example:
82+
あるいは、ファイル単位のディレクティブを使ってこのオプションを設定することもできます。例えば:
8483

8584
```tsx
8685
/** @jsxImportSource preact */
@@ -90,6 +89,6 @@ export function App() {
9089
}
9190
```
9291

93-
Would add `preact/jsx-runtime` as an import for the `_jsx` factory.
92+
これにより、`_jsx`ファクトリをインポートする`preact/jsx-runtime`が追加されます。
9493

95-
_Note:_ In order for this to work like you would expect, your `tsx` file must include an `export` or `import` so that it is considered a module.
94+
_注意:_ このオプションを期待通りに動作させるには、`tsx`ファイルに`export`または`import`を含める必要があります。これにより、ファイルはモジュールとみなされます。

docs/tsconfig/ja/options/noUncheckedIndexedAccess.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,51 @@ display: "noUncheckedIndexedAccess"
33
oneline: "Add `undefined` to a type when accessed using an index."
44
---
55

6-
TypeScript has a way to describe objects which have unknown keys but known values on an object, via index signatures.
6+
TypeScriptには、オブジェクトにおいて未知のキーを持ちながらも値が既知であるプロパティをインデックスシグネチャで記述する方法があります。
77

88
```ts twoslash
99
interface EnvironmentVars {
1010
NAME: string;
1111
OS: string;
1212

13-
// Unknown properties are covered by this index signature.
13+
// 未知のプロパティは、次のようなインデックスシグネチャで扱うことができます。
1414
[propName: string]: string;
1515
}
1616

1717
declare const env: EnvironmentVars;
1818

19-
// Declared as existing
19+
// 既存のプロパティとして宣言されています
2020
const sysName = env.NAME;
2121
const os = env.OS;
2222
// ^?
2323

24-
// Not declared, but because of the index
25-
// signature, then it is considered a string
24+
// 宣言されていませんが、インデックス
25+
// シグネチャのおかげで、stringとして扱われます
2626
const nodeEnv = env.NODE_ENV;
2727
// ^?
2828
```
2929

30-
Turning on `noUncheckedIndexedAccess` will add `undefined` to any un-declared field in the type.
30+
`noUncheckedIndexedAccess`をオンにすると、型の未定義のフィールドに`undefined`が追加されます。
3131

3232
```ts twoslash
3333
interface EnvironmentVars {
3434
NAME: string;
3535
OS: string;
3636

37-
// Unknown properties are covered by this index signature.
37+
// 未知のプロパティは、次のようなインデックスシグネチャで扱うことができます。
3838
[propName: string]: string;
3939
}
4040
// @noUncheckedIndexedAccess
4141
// ---cut---
4242
declare const env: EnvironmentVars;
4343

44-
// Declared as existing
44+
// 既存のプロパティとして宣言されています
4545
const sysName = env.NAME;
4646
const os = env.OS;
4747
// ^?
4848

49-
// Not declared, but because of the index
50-
// signature, then it is considered a string
49+
// 宣言されていませんが、インデックス
50+
// シグネチャのおかげで、stringとして扱われます
5151
const nodeEnv = env.NODE_ENV;
5252
// ^?
5353
```

docs/tsconfig/ja/options/watchDirectory.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ display: "watchDirectory"
33
oneline: "Specify how directories are watched on systems that lack recursive file-watching functionality."
44
---
55

6-
The strategy for how entire directory trees are watched under systems that lack recursive file-watching functionality.
6+
再帰的なファイル監視機能を持たないシステムで、ディレクトリツリー全体を監視する方法を指定します。
77

8-
- `fixedPollingInterval`: Check every directory for changes several times a second at a fixed interval.
9-
- `dynamicPriorityPolling`: Use a dynamic queue where less-frequently modified directories will be checked less often.
10-
- `useFsEvents` (the default): Attempt to use the operating system/file system's native events for directory changes.
8+
- `fixedPollingInterval`: すべてのディレクトリの変更を一定間隔で毎秒数回チェックします。
9+
- `dynamicPriorityPolling`: 変更頻度の低いディレクトリがチェックされる頻度が低くなるような動的なキューを使用します。
10+
- `useFsEvents` (デフォルト): ディレクトリの変更に対するオペレーティングシステム/ファイルシステムのネイティブイベントの使用を試みます。

docs/tsconfig/ja/options/watchFile.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ display: "watchFile"
33
oneline: "Specify how the TypeScript watch mode works."
44
---
55

6-
The strategy for how individual files are watched.
6+
個々のファイルを監視する方法を指定します。
77

8-
- `fixedPollingInterval`: Check every file for changes several times a second at a fixed interval.
9-
- `priorityPollingInterval`: Check every file for changes several times a second, but use heuristics to check certain types of files less frequently than others.
10-
- `dynamicPriorityPolling`: Use a dynamic queue where less-frequently modified files will be checked less often.
11-
- `useFsEvents` (the default): Attempt to use the operating system/file system's native events for file changes.
12-
- `useFsEventsOnParentDirectory`: Attempt to use the operating system/file system's native events to listen for changes on a file's parent directory
8+
- `fixedPollingInterval`: すべてのファイルの変更を一定間隔で毎秒数回チェックします。
9+
- `priorityPollingInterval`: すべてのファイルの変更を毎秒数回チェックしますが、ヒューリスティックスを使用して他のファイルよりも少ない頻度で特定のタイプのファイルをチェックします。
10+
- `dynamicPriorityPolling`: 変更頻度の低いファイルがチェックされる頻度が低くなるような動的なキューを使用します。
11+
- `useFsEvents` (デフォルト): オペレーティングシステム/ファイルシステムのネイティブイベントの使用をファイルの変更に試みます。
12+
- `useFsEventsOnParentDirectory`: ファイルの親ディレクトリの変更を監視するためにオペレーティングシステム/ファイルシステムのネイティブイベントを使用を試みます。
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### Compiler Options
1+
### コンパイラオプション
22

3-
These options make up the bulk of TypeScript's configuration and it covers how the language should work.
3+
これらのオプションはTypeScriptの設定の大部分を占めており、TypeScriptがどのように動作すべきかを扱います。
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### Root Fields
1+
### ルートフィールド
22

3-
Starting up are the root options in the TSConfig - these options relate to how your TypeScript or JavaScript project is set up.
3+
まずは、TSConfigのルートオプションです - これらのオプションはTypeScriptやJavaScriptプロジェクトの設定方法に関連したものです。

0 commit comments

Comments
 (0)