From cc485b140036c64c1083c0a805a1d1202c0f8ce7 Mon Sep 17 00:00:00 2001 From: youngjuning Date: Wed, 18 Aug 2021 10:17:15 +0800 Subject: [PATCH] feat: translate window and theme (#16) --- README.md | 2 +- theme/partials/index.hbs | 6 +++--- theme/partials/members.group.hbs | 4 ++-- theme/partials/members.hbs | 2 +- theme/templates/reflection.hbs | 2 +- typedoc.json | 5 +---- vscode.d.ts | 7 +++---- 7 files changed, 12 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 342de7e3..847c4276 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-) VS Code API 是一系列你可以在 Visual Studio Code 扩展中调用的 JavaScript API。这个站点列出了扩展开发者可以使用的所有 VS Code API。原网站没有中文翻译且不方便阅读,所以有了该网站。 diff --git a/theme/partials/index.hbs b/theme/partials/index.hbs index 6746cdac..d960a015 100644 --- a/theme/partials/index.hbs +++ b/theme/partials/index.hbs @@ -5,7 +5,7 @@
{{#each categories}}
-

{{title}}

+

{{title}}({{children.length}})

    {{#each children}}
  • {{#if name}}{{{wbr name}}}{{else}}{{{wbr kindString}}}{{/if}}
  • @@ -26,7 +26,7 @@
    {{#if categories}} {{#each categories}} -

    {{#if title}}{{title}} {{/if}}{{../title}}

    +

    {{#if title}}{{title}} {{/if}}{{../title}}({{children.length}})

    {{/each}} {{else}} -

    {{title}}

    +

    {{title}}({{children.length}})

      {{#each children}}
    • {{#if name}}{{{wbr name}}}{{else}}{{{wbr kindString}}}{{/if}}
    • diff --git a/theme/partials/members.group.hbs b/theme/partials/members.group.hbs index 18b82d6c..0dca0308 100644 --- a/theme/partials/members.group.hbs +++ b/theme/partials/members.group.hbs @@ -1,7 +1,7 @@ {{#if categories}} {{#each categories}}
      -

      {{#if title}}{{title}} {{/if}}{{../title}}

      +

      {{#if title}}{{title}} {{/if}}{{../title}}({{children.length}})

      {{#each children}} {{#unless hasOwnDocument}} {{> member}} @@ -11,7 +11,7 @@ {{/each}} {{else}}
      -

      {{title}}

      +

      {{title}}({{children.length}})

      {{#each children}} {{#unless hasOwnDocument}} {{> member}} diff --git a/theme/partials/members.hbs b/theme/partials/members.hbs index 5b415231..ca6c02b6 100644 --- a/theme/partials/members.hbs +++ b/theme/partials/members.hbs @@ -2,7 +2,7 @@ {{#each categories}} {{#unless allChildrenHaveOwnDocument}}
      -

      {{title}}

      +

      {{title}}({{children.length}})

      {{#each children}} {{#unless hasOwnDocument}} {{> member}} diff --git a/theme/templates/reflection.hbs b/theme/templates/reflection.hbs index 78aa0660..a676235b 100644 --- a/theme/templates/reflection.hbs +++ b/theme/templates/reflection.hbs @@ -15,7 +15,7 @@ {{#if model.typeHierarchy}}
      -

      Hierarchy

      +

      层级

      {{#with model.typeHierarchy}}{{> hierarchy}}{{/with}}
      {{/if}} diff --git a/typedoc.json b/typedoc.json index f6324aa2..fc6dc209 100644 --- a/typedoc.json +++ b/typedoc.json @@ -4,8 +4,5 @@ "theme": "./theme", "out": "docs", "readme": "./README.md", - "sort": ["source-order"], - "excludePrivate": true, - "excludeProtected": true, - "excludeInternal": true + "sort": ["source-order"] } \ No newline at end of file diff --git a/vscode.d.ts b/vscode.d.ts index d787eb4e..218ae37b 100644 --- a/vscode.d.ts +++ b/vscode.d.ts @@ -8442,7 +8442,7 @@ export interface UriHandler { } /** - * 用于处理编辑器当前窗口的命名空间。就是可见和活动的编辑器,以及显示信息、选择和要求用户输入的 UI 元素。 + * 用于处理编辑器当前窗口(window)的命名空间。就是可见和活动的编辑器以及显示信息、选择和要求用户输入的 UI 元素。 * @maintainer {@link https://github.com/youngjuning @youngjuning} */ export namespace window { @@ -8458,9 +8458,8 @@ export namespace window { export let visibleTextEditors: TextEditor[]; /** - * An {@link Event} which fires when the {@link window.activeTextEditor active editor} - * has changed. *Note* that the event also fires when the active editor changes - * to `undefined`. + * 当 {@link window.activeTextEditor 活动编辑器} 发生变化时,一个 {@link Event} 会被触发。 + * *注意*,当活动编辑器改变时,该事件也会发生。变成 `undefined` 时,事件也会触发。 */ export const onDidChangeActiveTextEditor: Event;