-
Notifications
You must be signed in to change notification settings - Fork 130
i18n: tsconfig-reference top-level options to zh #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for the PR! This section of the codebase is owned by @Kingwl - if they write a comment saying "LGTM" then it will be merged. |
Translation of include.mddisplay: "Include" oneline: "The path to the file to be compiled or the list of matchers."Indicates the file name or file matcher that the program contains. {
"include": ["src/**/*", "tests/**/*"]
} Included files:
If the matcher does not contain file extensions only, files with specific extensions are supported. Supported by default Translation of files.mddisplay: "Files" oneline: "An array, each of which is the path to the included files required for the project. and
|
Co-authored-by: Xavi Lee <[email protected]>
Co-authored-by: Xavi Lee <[email protected]>
TSConfig 文件象征着,它所在的目录是一个 TypeScript 项目或者 JavaScript 项目的根目录。 | ||
TSConfig 文件可以是 `tsconfig.json` 或 `jsconfig.json`,它们的配置相同。 | ||
|
||
此页涵盖了 TSConfig 文件中可用的所有不同选项。同时没有按照线性叙述来构建,而是分为了5个主要部分: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此页涵盖了 TSConfig 文件中可用的所有不同选项。同时没有按照线性叙述来构建,而是分为了5个主要部分: | |
此页涵盖了 TSConfig 文件中可用的所有不同选项。同时没有按照线性叙述来构建,而是分为了 5 个主要部分: |
|
||
此页涵盖了 TSConfig 文件中可用的所有不同选项。本页从每个选项的概述开始,到 JSON 文件的根属性,然后是`compilerOptions`(大部分选项),最后是 `watchOptions`。 | ||
TSConfig 文件象征着,它所在的目录是一个 TypeScript 项目或者 JavaScript 项目的根目录。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TSConfig 文件象征着,它所在的目录是一个 TypeScript 项目或者 JavaScript 项目的根目录。 | |
TSConfig 文件所在的目录是一个 TypeScript 项目或者 JavaScript 项目的根目录。 |
在解析 [`include`](#include) 选项时,需要跳过的文件名称或文件匹配器的列表。 | ||
|
||
**Important**: `exclude` _仅仅_ 改变 [`include`](#include) 选项包含的文件。 | ||
`exclude` 指定的文件可能仍然是你代码的一部分,由于 被 `import` 引入到你的代码中,或者被 `types` 包含,或者使用 `/// <reference` 引入,或者包含在 [`files`](#files) 中。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`exclude` 指定的文件可能仍然是你代码的一部分,由于 被 `import` 引入到你的代码中,或者被 `types` 包含,或者使用 `/// <reference` 引入,或者包含在 [`files`](#files) 中。 | |
`exclude` 指定的文件可能仍然是你代码的一部分,由于被 `import` 引入到你的代码中,或者被 `types` 包含,或者使用 `/// <reference` 引入,或者包含在 [`files`](#files) 中。 |
**Important**: `exclude` _仅仅_ 改变 [`include`](#include) 选项包含的文件。 | ||
`exclude` 指定的文件可能仍然是你代码的一部分,由于 被 `import` 引入到你的代码中,或者被 `types` 包含,或者使用 `/// <reference` 引入,或者包含在 [`files`](#files) 中。 | ||
|
||
它不是一种 **阻止** 文件被包含在代码库中的机制-它只是改变 [`include`](#include) 配置项查找的内容。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
它不是一种 **阻止** 文件被包含在代码库中的机制-它只是改变 [`include`](#include) 配置项查找的内容。 | |
它不是一种 **阻止** 文件被包含在代码库中的机制——它只是改变 [`include`](#include) 配置项查找的内容。 |
--- | ||
|
||
`extends` 的值是要继承的配置文件的路径。 | ||
路径可以使用 POSIX 风格(Linux MacOS) 或者 Windows 风格(路径中的 `\` 需要转义)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
路径可以使用 POSIX 风格(Linux MacOS) 或者 Windows 风格(路径中的 `\` 需要转义)。 | |
路径可以使用 POSIX 风格(Linux MacOS)或者 Windows 风格(路径中的 `\` 需要转义)。 |
`extends` 的值是要继承的配置文件的路径。 | ||
路径可以使用 POSIX 风格(Linux MacOS) 或者 Windows 风格(路径中的 `\` 需要转义)。 | ||
|
||
TSConfig 中的配置会覆盖继承的配置。 相对路径计算是以其所在配置文件为基准,不受继承影响。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TSConfig 中的配置会覆盖继承的配置。 相对路径计算是以其所在配置文件为基准,不受继承影响。 | |
TSConfig 中的配置会覆盖继承的配置。相对路径计算是以其所在配置文件为基准,不受继承影响。 |
|
||
TSConfig 中的配置会覆盖继承的配置。 相对路径计算是以其所在配置文件为基准,不受继承影响。 | ||
|
||
注意: [`files`](#files),[`include`](#include) 和 `exclude` 会覆盖继承的配置,配置文件不允许循环继承。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意: [`files`](#files),[`include`](#include) 和 `exclude` 会覆盖继承的配置,配置文件不允许循环继承。 | |
注意: [`files`](#files)、[`include`](#include) 和 `exclude` 会覆盖继承的配置,配置文件不允许循环继承。 |
|
||
[`references`](#references) 是唯一不被继承的顶级配置项。 | ||
|
||
##### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
##### Example | |
##### 示例 |
@@ -0,0 +1,26 @@ | |||
--- | |||
display: "Files" | |||
oneline: "一个数组,每一项是项目所需包含文件的路径。和 [`include`](#include) 不同的是, files 不支持路径匹配。" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oneline: "一个数组,每一项是项目所需包含文件的路径。和 [`include`](#include) 不同的是, files 不支持路径匹配。" | |
oneline: "一个数组,每一项是项目所需包含文件的路径。和 [`include`](#include) 不同的是,files 不支持路径匹配。" |
- `?` 匹配任何一个字符 (不包含目录分割符) | ||
- `**/` 匹配任何深度的目录 | ||
|
||
如果匹配器不包含文件拓展名只,支持特定拓展名的文件。默认支持 `.ts`, `.tsx`和 `.d.ts`,如果开启了 [`allowJs`](#allowJs),额外支持 `.js` 和 `.jsx`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果匹配器不包含文件拓展名只,支持特定拓展名的文件。默认支持 `.ts`, `.tsx`和 `.d.ts`,如果开启了 [`allowJs`](#allowJs),额外支持 `.js` 和 `.jsx`。 | |
如果匹配器不包含文件拓展名只,支持特定拓展名的文件。默认支持 `.ts`、`.tsx` 和 `.d.ts`,如果开启了 [`allowJs`](#allowJs),额外支持 `.js` 和 `.jsx`。 |
No description provided.