Skip to content

Commit 55632bd

Browse files
authored
Merge pull request #2776 from XeroAlpha/i18n-zh-update
Update Chinese translations
2 parents 7bf2ef8 + 2b9ee59 commit 55632bd

File tree

1 file changed

+55
-12
lines changed
  • src/lib/internationalization/locales

1 file changed

+55
-12
lines changed

src/lib/internationalization/locales/zh.cts

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export = localeUtils.buildIncompleteTranslation({
2020
"对于监视模式,entryPointStrategy 必须设置为 resolve 或 expand",
2121
found_0_errors_and_1_warnings: "发现 {0} 个错误和 {1} 个警告",
2222

23-
// output_0_could_not_be_generated
24-
// output_0_generated_at_1
23+
output_0_could_not_be_generated: "由于以上错误无法生成 {0} 输出",
24+
output_0_generated_at_1: "已生成 {0} 输出,位于 {1}",
2525

2626
no_entry_points_for_packages: "没有为包模式提供入口点,无法生成文档",
2727
failed_to_find_packages:
@@ -107,6 +107,8 @@ export = localeUtils.buildIncompleteTranslation({
107107
"{0} ({1}),在 {2} 中定义,没有任何文档",
108108
invalid_intentionally_not_exported_symbols_0:
109109
"以下符号被标记为有意不导出,但未在文档中引用,或已被导出:\n{0}",
110+
reflection_0_has_unused_mergeModuleWith_tag:
111+
"{0} 中存在无法解析的 @mergeModuleWith 标签",
110112

111113
not_all_search_category_boosts_used_0:
112114
"文档中并未使用 searchCategoryBoosts 中指定的所有类别。未使用的类别包括:\n{0}",
@@ -137,6 +139,13 @@ export = localeUtils.buildIncompleteTranslation({
137139
disable_git_set_and_git_revision_used:
138140
"disableGit 已设置,并且 sourceLinkTemplate 包含 {gitRevision},由于未提供修订,因此将替换为空字符串",
139141
git_remote_0_not_valid: "提供的 git 远程“{0}”无效。源链接将失效",
142+
reflection_0_tried_to_merge_into_child_1:
143+
"反射 {0} 尝试使用 @mergeModuleWith 合并到其子项之一:{1}",
144+
145+
include_0_in_1_specified_2_resolved_to_3_does_not_exist:
146+
"{1} 的注释中 {0} 标签指定了包含 “{2}”,解析为 “{3}”,该文件并不存在或并非文件。",
147+
include_0_in_1_specified_2_circular_include_3:
148+
"{1} 的注释中 {0} 标签指定了包含 “{2}”,导致了循环包含:\n\t{3}",
140149

141150
custom_css_file_0_does_not_exist: "{0} 处的自定义 CSS 文件不存在",
142151
custom_js_file_0_does_not_exist: "{0} 处的自定义 JavaScript 文件不存在",
@@ -150,13 +159,17 @@ export = localeUtils.buildIncompleteTranslation({
150159
could_not_empty_output_directory_0: "无法清空输出目录 {0}",
151160
could_not_create_output_directory_0: "无法创建输出目录 {0}",
152161
theme_0_is_not_defined_available_are_1: "主题“{0}”未定义。可用主题为:{1}",
162+
reflection_0_links_to_1_but_anchor_does_not_exist_try_2:
163+
"{0} 链接至 {1},但对应锚点不存在。你是否是指:\n\t{2}",
153164

154165
no_entry_points_provided: "没有提供入口点,这可能是配置错误",
155166
unable_to_find_any_entry_points: "无法找到任何入口点。请参阅先前的警告",
156167
watch_does_not_support_packages_mode: "监视模式不支持“包”样式的入口点",
157168
watch_does_not_support_merge_mode: "监视模式不支持“合并”样式的入口点",
158169
entry_point_0_not_in_program:
159170
"入口点 {0} 未被 tsconfig 中的“files”或“include”选项引用",
171+
failed_to_resolve_0_to_ts_path:
172+
"无法将 package.json 中的入口点 {0} 解析至 TypeScript 源文件",
160173
use_expand_or_glob_for_files_in_dir:
161174
"如果要包含此目录中的文件,请设置 --entryPointStrategy 以展开或指定 glob",
162175
glob_0_did_not_match_any_files: "glob {0} 与任何文件均不匹配",
@@ -231,15 +244,17 @@ export = localeUtils.buildIncompleteTranslation({
231244
help_excludeReferences:
232245
"如果一个符号被导出多次,则忽略除第一次导出之外的所有导出",
233246
help_externalSymbolLinkMappings: "为文档中未包含的符号定义自定义链接",
234-
// help_out
235-
// help_html
247+
help_out:
248+
"指定默认类型输出的文档写入的位置。插件可能会改变默认的输出类型。",
249+
help_html: "指定 HTML 文档写入的位置",
236250
help_json: "指定描述项目的 JSON 文件写入的位置和文件名",
237251
help_pretty: "指定输出 JSON 是否应使用制表符进行格式化",
238252
help_emit: "指定 TypeDoc 应发出的内容,“docs”、“both”或“none”",
239253
help_theme: "指定用于呈现文档的主题名称",
240254
help_lightHighlightTheme: "指定浅色模式下的代码高亮主题",
241255
help_darkHighlightTheme: "指定暗黑模式下的代码高亮主题",
242256
help_highlightLanguages: "指定渲染时将加载哪些语言来高亮代码",
257+
help_typePrintWidth: "渲染类型时触发自动换行的代码宽度",
243258
help_customCss: "要导入主题的自定义 CSS 文件的路径",
244259
help_customJs: "要导入的自定义 JS 文件的路径",
245260
help_markdownItOptions:
@@ -260,10 +275,11 @@ export = localeUtils.buildIncompleteTranslation({
260275
"假设所有内容都可以通过 sourceLinkTemplate 进行链接,如果启用此功能,则必须设置 sourceLinkTemplate。{path} 将以 basePath 为根",
261276
help_basePath: "指定显示文件路径时使用的基本路径",
262277
help_excludeTags: "从文档注释中删除列出的块级/修饰符标签",
263-
// help_notRenderedTags
278+
help_notRenderedTags: "保留在文档注释中但在创建输出时不渲染的标签",
264279
help_readme:
265280
"应显示在索引页上的自述文件路径。传递“none”以禁用索引页并在全局页上启动文档",
266281
help_cname: "设置 CNAME 文件文本,这对于 GitHub Pages 上的自定义域很有用",
282+
help_favicon: "作为站点图标包含的 favicon.ico 或 favicon.svg 的路径",
267283
help_sourceLinkExternal:
268284
"指定哪些源代码链接应被视为外部链接,并在新选项卡中打开",
269285
help_markdownLinkExternal:
@@ -278,7 +294,6 @@ export = localeUtils.buildIncompleteTranslation({
278294
help_customFooterHtml: "TypeDoc 链接后的自定义页脚",
279295
help_customFooterHtmlDisableWrapper:
280296
"如果设置,则禁用 customFooterHtml 的包装元素",
281-
// help_hideTypesInSignatureTitle
282297
help_cacheBust: "在静态资产链接中包含生成时间",
283298
help_searchInComments:
284299
"如果设置,搜索索引还将包括注释。这将大大增加搜索索引的大小",
@@ -289,12 +304,15 @@ export = localeUtils.buildIncompleteTranslation({
289304
help_navigationLinks: "定义要包含在标题中的链接",
290305
help_sidebarLinks: "定义要包含在侧边栏中的链接",
291306
help_navigationLeaves: "导航树中不应扩展的分支",
292-
help_navigation: "确定导航侧边栏的组织方式",
293307
help_headings: "确定标题是否需要被渲染",
308+
help_sluggerConfiguration: "确定渲染的 HTML 中锚点的确定方式",
309+
help_navigation: "确定导航侧边栏的组织方式",
294310
help_visibilityFilters:
295311
"根据修饰符标签指定内置过滤器和附加过滤器的默认可见性",
296312
help_searchCategoryBoosts: "配置搜索以提高所选类别的相关性",
297313
help_searchGroupBoosts: "配置搜索以增强所选种类(例如“类别”)的相关性",
314+
help_useFirstParagraphOfCommentAsSummary:
315+
"如果设置,且没有指定 @summary 标签,TypeDoc 会使用注释的第一行作为在模块/命名空间一览里的概述",
298316
help_jsDocCompatibility:
299317
"设置注释解析的兼容性选项,以增加与 JSDoc 注释的相似度",
300318
help_commentStyle: "确定 TypeDoc 如何搜索注释",
@@ -306,6 +324,8 @@ export = localeUtils.buildIncompleteTranslation({
306324
help_inlineTags: "TypeDoc 在解析注释时应该识别的内联标签",
307325
help_modifierTags: "TypeDoc 在解析注释时应该识别的修饰符标签",
308326
help_categorizeByGroup: "指定是否在组级别进行分类",
327+
help_groupReferencesByType:
328+
"如果设置,引用将按照它们的类型进行分类,而非直接分在“引用”类型中",
309329
help_defaultCategory: "为没有类别的反射指定默认类别",
310330
help_categoryOrder: "指定类别出现的顺序。* 表示不在列表中的类别的相对顺序",
311331
help_groupOrder: "指定组的显示顺序。* 表示不在列表中的组的相对顺序",
@@ -349,6 +369,7 @@ export = localeUtils.buildIncompleteTranslation({
349369
"hostingBaseUrl 必须以 http:// 或 https:// 开头",
350370
useHostedBaseUrlForAbsoluteLinks_requires_hostedBaseUrl:
351371
"useHostedBaseUrlForAbsoluteLinks 选项要求设置 hostingBaseUrl",
372+
favicon_must_be_ico_or_svg: "Favicon 文件必须是一个 .ico 或 .svg 文件",
352373
option_0_must_be_an_object: "“{0}”选项必须是非数组对象",
353374
option_0_must_be_a_function: "‘{0}’ 选项必须是一个函数",
354375
option_0_must_be_object_with_urls:
@@ -361,6 +382,15 @@ export = localeUtils.buildIncompleteTranslation({
361382
option_0_values_must_be_array_of_tags: "{0} 必须是有效标签名称的数组",
362383
option_0_specified_1_but_only_2_is_valid:
363384
"{0} 只能指定已知值,并且提供了无效值 ({1})。有效的排序策略为:\n{2}",
385+
option_outputs_must_be_array:
386+
"“outputs” 选项必须为一个数组,其成员均为 { name: string, path: string, options?: TypeDocOptions }。",
387+
specified_output_0_has_not_been_defined: "指定的输出类型 {0} 未被定义。",
388+
389+
alert_note: "注意",
390+
alert_tip: "提示",
391+
alert_important: "重要",
392+
alert_warning: "警告",
393+
alert_caution: "小心",
364394

365395
kind_project: "项目",
366396
kind_module: "模块",
@@ -412,17 +442,17 @@ export = localeUtils.buildIncompleteTranslation({
412442
kind_plural_reference: "参考",
413443
kind_plural_document: "文档",
414444

415-
flag_protected: "受保护",
416445
flag_private: "私有",
417-
flag_external: "外部",
418-
flag_inherited: "继承",
446+
flag_protected: "受保护",
419447
flag_public: "公开",
420448
flag_static: "静态",
449+
flag_external: "外部",
421450
flag_optional: "可选",
422451
flag_rest: "动态参数",
423452
flag_abstract: "抽象",
424453
flag_const: "常量",
425454
flag_readonly: "只读",
455+
flag_inherited: "继承",
426456

427457
theme_implements: "实现",
428458
theme_indexable: "可索引",
@@ -437,23 +467,28 @@ export = localeUtils.buildIncompleteTranslation({
437467
theme_overrides: "重写了",
438468
theme_returns: "返回",
439469
theme_generated_using_typedoc: "使用 TypeDoc 生成",
470+
theme_class_hierarchy_title: "类继承图表",
471+
440472
theme_preparing_search_index: "正在准备搜索索引...",
441473
theme_search_index_not_available: "搜索索引不可用",
474+
475+
theme_loading: "加载中……",
476+
442477
theme_settings: "显示设置",
443478
theme_member_visibility: "成员可见性",
444479
theme_theme: "配色",
445480
theme_os: "自动",
446481
theme_light: "浅色",
447482
theme_dark: "深色",
448483
theme_on_this_page: "目录",
484+
449485
theme_search: "搜索",
450486
theme_menu: "菜单",
451487
theme_permalink: "永久链接",
488+
452489
theme_copy: "复制",
453490
theme_copied: "已复制!",
454491
theme_normally_hidden: "由于您的过滤器设置,该成员已被隐藏。",
455-
theme_class_hierarchy_title: "类继承图表",
456-
theme_loading: "加载中……",
457492

458493
tag_defaultValue: "默认值",
459494
tag_deprecated: "已被弃用",
@@ -482,6 +517,7 @@ export = localeUtils.buildIncompleteTranslation({
482517
tag_jsx: "JSX",
483518
tag_license: "许可协议",
484519
tag_module: "模块",
520+
tag_mergeModuleWith: "合并模块至",
485521
tag_prop: "属性",
486522
tag_property: "属性",
487523
tag_return: "返回",
@@ -490,11 +526,14 @@ export = localeUtils.buildIncompleteTranslation({
490526
tag_template: "类型参数",
491527
tag_type: "类型",
492528
tag_typedef: "类型定义",
529+
tag_summary: "概述",
493530
tag_link: "链接",
494531
tag_label: "标记",
495532

496533
tag_linkcode: "链接",
497534
tag_linkplain: "链接",
535+
tag_include: "包含",
536+
tag_includeCode: "包含",
498537

499538
tag_alpha: "alpha",
500539
tag_beta: "beta",
@@ -507,20 +546,24 @@ export = localeUtils.buildIncompleteTranslation({
507546
tag_readonly: "只读",
508547
tag_sealed: "无法继承",
509548
tag_virtual: "虚函数",
549+
510550
tag_abstract: "抽象类",
511551
tag_class: "类",
512552
tag_enum: "枚举",
513553
tag_event: "事件",
554+
tag_expand: "展开",
514555
tag_hidden: "隐藏",
515556
tag_hideCategories: "在类别中隐藏",
516557
tag_hideconstructor: "隐藏构造器",
517558
tag_hideGroups: "在分组中隐藏",
518559
tag_ignore: "隐藏",
560+
tag_inline: "内联",
519561
tag_interface: "接口",
520562
tag_namespace: "命名空间",
521563
tag_overload: "重载",
522564
tag_private: "私有成员",
523565
tag_protected: "受保护成员",
524566
tag_showCategories: "在类别中显示",
525567
tag_showGroups: "在分组中显示",
568+
tag_useDeclaredType: "使用声明类型",
526569
});

0 commit comments

Comments
 (0)