typedoc 0.25.13 → 0.26.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/lib/application.d.ts +15 -3
- package/dist/lib/application.js +75 -24
- package/dist/lib/cli.js +1 -1
- package/dist/lib/converter/comments/blockLexer.d.ts +1 -1
- package/dist/lib/converter/comments/blockLexer.js +1 -2
- package/dist/lib/converter/comments/declarationReference.js +8 -8
- package/dist/lib/converter/comments/declarationReferenceResolver.d.ts +1 -1
- package/dist/lib/converter/comments/declarationReferenceResolver.js +15 -14
- package/dist/lib/converter/comments/discovery.d.ts +3 -3
- package/dist/lib/converter/comments/discovery.js +21 -19
- package/dist/lib/converter/comments/index.d.ts +1 -1
- package/dist/lib/converter/comments/index.js +35 -16
- package/dist/lib/converter/comments/lineLexer.d.ts +1 -1
- package/dist/lib/converter/comments/lineLexer.js +1 -2
- package/dist/lib/converter/comments/linkResolver.d.ts +2 -2
- package/dist/lib/converter/comments/linkResolver.js +5 -3
- package/dist/lib/converter/comments/parser.d.ts +14 -3
- package/dist/lib/converter/comments/parser.js +147 -39
- package/dist/lib/converter/comments/rawLexer.d.ts +7 -1
- package/dist/lib/converter/comments/rawLexer.js +21 -70
- package/dist/lib/converter/comments/tagName.js +1 -2
- package/dist/lib/converter/context.d.ts +7 -2
- package/dist/lib/converter/context.js +10 -2
- package/dist/lib/converter/convert-expression.js +2 -3
- package/dist/lib/converter/converter.d.ts +9 -4
- package/dist/lib/converter/converter.js +55 -17
- package/dist/lib/converter/factories/index-signature.d.ts +1 -1
- package/dist/lib/converter/factories/index-signature.js +9 -12
- package/dist/lib/converter/factories/signature.d.ts +1 -1
- package/dist/lib/converter/factories/signature.js +14 -15
- package/dist/lib/converter/jsdoc.js +2 -3
- package/dist/lib/converter/plugins/CategoryPlugin.d.ts +3 -3
- package/dist/lib/converter/plugins/CategoryPlugin.js +24 -17
- package/dist/lib/converter/plugins/CommentPlugin.d.ts +3 -1
- package/dist/lib/converter/plugins/CommentPlugin.js +112 -69
- package/dist/lib/converter/plugins/GroupPlugin.d.ts +4 -4
- package/dist/lib/converter/plugins/GroupPlugin.js +52 -18
- package/dist/lib/converter/plugins/ImplementsPlugin.js +4 -3
- package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +1 -1
- package/dist/lib/converter/plugins/InheritDocPlugin.js +5 -6
- package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +2 -2
- package/dist/lib/converter/plugins/PackagePlugin.d.ts +0 -2
- package/dist/lib/converter/plugins/PackagePlugin.js +8 -30
- package/dist/lib/converter/plugins/SourcePlugin.js +2 -2
- package/dist/lib/converter/symbols.js +6 -11
- package/dist/lib/converter/types.d.ts +1 -1
- package/dist/lib/converter/types.js +4 -5
- package/dist/lib/converter/utils/nodes.js +3 -4
- package/dist/lib/converter/utils/reflections.d.ts +1 -1
- package/dist/lib/converter/utils/reflections.js +1 -2
- package/dist/lib/converter/utils/repository.js +4 -4
- package/dist/lib/converter/utils/symbols.js +1 -2
- package/dist/lib/internationalization/index.d.ts +7 -0
- package/dist/lib/internationalization/index.js +11 -0
- package/dist/lib/internationalization/internationalization.d.ts +92 -0
- package/dist/lib/internationalization/internationalization.js +194 -0
- package/dist/lib/internationalization/locales/en.cjs +3 -0
- package/dist/lib/internationalization/locales/en.d.cts +2 -0
- package/dist/lib/internationalization/locales/test.cjs +8 -0
- package/dist/lib/internationalization/locales/test.d.cts +5 -0
- package/dist/lib/internationalization/translatable.d.ts +304 -0
- package/dist/lib/internationalization/translatable.js +329 -0
- package/dist/lib/models/ReflectionCategory.d.ts +2 -2
- package/dist/lib/models/ReflectionGroup.d.ts +2 -2
- package/dist/lib/models/comments/comment.d.ts +17 -3
- package/dist/lib/models/comments/comment.js +377 -298
- package/dist/lib/models/reflections/ReflectionSymbolId.js +2 -2
- package/dist/lib/models/reflections/abstract.d.ts +11 -8
- package/dist/lib/models/reflections/abstract.js +17 -11
- package/dist/lib/models/reflections/container.d.ts +25 -3
- package/dist/lib/models/reflections/container.js +64 -0
- package/dist/lib/models/reflections/declaration.d.ts +3 -15
- package/dist/lib/models/reflections/declaration.js +16 -21
- package/dist/lib/models/reflections/document.d.ts +27 -0
- package/dist/lib/models/reflections/document.js +43 -0
- package/dist/lib/models/reflections/index.d.ts +4 -3
- package/dist/lib/models/reflections/index.js +5 -4
- package/dist/lib/models/reflections/kind.d.ts +14 -1
- package/dist/lib/models/reflections/kind.js +13 -0
- package/dist/lib/models/reflections/parameter.d.ts +1 -1
- package/dist/lib/models/reflections/project.d.ts +2 -2
- package/dist/lib/models/reflections/project.js +8 -7
- package/dist/lib/models/reflections/signature.d.ts +2 -2
- package/dist/lib/models/reflections/type-parameter.d.ts +1 -1
- package/dist/lib/models/reflections/utils.js +1 -2
- package/dist/lib/models/reflections/variant.d.ts +2 -0
- package/dist/lib/models/types.d.ts +4 -4
- package/dist/lib/models/types.js +3 -3
- package/dist/lib/output/events.d.ts +5 -5
- package/dist/lib/output/events.js +2 -1
- package/dist/lib/output/index.d.ts +1 -1
- package/dist/lib/output/index.js +2 -1
- package/dist/lib/output/plugins/AssetsPlugin.js +1 -1
- package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +3 -1
- package/dist/lib/output/plugins/JavascriptIndexPlugin.js +28 -8
- package/dist/lib/output/plugins/SitemapPlugin.d.ts +1 -1
- package/dist/lib/output/plugins/SitemapPlugin.js +17 -27
- package/dist/lib/output/renderer.d.ts +3 -1
- package/dist/lib/output/renderer.js +7 -7
- package/dist/lib/output/themes/MarkedPlugin.d.ts +16 -25
- package/dist/lib/output/themes/MarkedPlugin.js +89 -161
- package/dist/lib/output/themes/default/DefaultTheme.d.ts +16 -4
- package/dist/lib/output/themes/default/DefaultTheme.js +66 -17
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +44 -44
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +6 -13
- package/dist/lib/output/themes/default/layouts/default.js +2 -2
- package/dist/lib/output/themes/default/partials/analytics.js +1 -2
- package/dist/lib/output/themes/default/partials/anchor-icon.js +2 -3
- package/dist/lib/output/themes/default/partials/comment.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/comment.js +3 -4
- package/dist/lib/output/themes/default/partials/footer.js +31 -5
- package/dist/lib/output/themes/default/partials/header.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/header.js +4 -3
- package/dist/lib/output/themes/default/partials/hierarchy.js +3 -4
- package/dist/lib/output/themes/default/partials/icon.js +7 -2
- package/dist/lib/output/themes/default/partials/index.js +4 -4
- package/dist/lib/output/themes/default/partials/member.d.ts +2 -2
- package/dist/lib/output/themes/default/partials/member.declaration.js +2 -3
- package/dist/lib/output/themes/default/partials/member.js +13 -2
- package/dist/lib/output/themes/default/partials/member.reference.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/member.reference.js +9 -6
- package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/member.signature.body.js +4 -4
- package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/member.signature.title.js +1 -2
- package/dist/lib/output/themes/default/partials/member.sources.js +12 -6
- package/dist/lib/output/themes/default/partials/members.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/members.group.js +1 -2
- package/dist/lib/output/themes/default/partials/members.js +1 -2
- package/dist/lib/output/themes/default/partials/navigation.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/navigation.js +19 -17
- package/dist/lib/output/themes/default/partials/parameter.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/parameter.js +15 -15
- package/dist/lib/output/themes/default/partials/reflectionPreview.js +1 -2
- package/dist/lib/output/themes/default/partials/toolbar.js +4 -4
- package/dist/lib/output/themes/default/partials/type.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/type.js +14 -14
- package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +1 -1
- package/dist/lib/output/themes/default/partials/typeParameters.js +2 -3
- package/dist/lib/output/themes/default/templates/document.d.ts +5 -0
- package/dist/lib/output/themes/default/templates/document.js +7 -0
- package/dist/lib/output/themes/default/templates/hierarchy.js +1 -2
- package/dist/lib/output/themes/default/templates/reflection.d.ts +1 -1
- package/dist/lib/output/themes/default/templates/reflection.js +21 -19
- package/dist/lib/output/themes/lib.d.ts +1 -1
- package/dist/lib/output/themes/lib.js +12 -16
- package/dist/lib/serialization/deserializer.d.ts +3 -3
- package/dist/lib/serialization/deserializer.js +7 -5
- package/dist/lib/serialization/schema.d.ts +10 -3
- package/dist/lib/utils/array.js +9 -10
- package/dist/lib/utils/component.d.ts +1 -1
- package/dist/lib/utils/component.js +2 -2
- package/dist/lib/utils/entry-point.d.ts +11 -0
- package/dist/lib/utils/entry-point.js +51 -24
- package/dist/lib/utils/enum.js +6 -7
- package/dist/lib/utils/fs.js +15 -16
- package/dist/lib/utils/general.d.ts +4 -3
- package/dist/lib/utils/general.js +4 -5
- package/dist/lib/utils/highlighter.d.ts +4 -2
- package/dist/lib/utils/highlighter.js +41 -40
- package/dist/lib/utils/html.js +2 -3
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.js +1 -2
- package/dist/lib/utils/jsx.elements.d.ts +13 -1
- package/dist/lib/utils/jsx.js +4 -4
- package/dist/lib/utils/loggers.d.ts +13 -7
- package/dist/lib/utils/loggers.js +13 -10
- package/dist/lib/utils/map.d.ts +1 -1
- package/dist/lib/utils/map.js +1 -1
- package/dist/lib/utils/options/declaration.d.ts +48 -21
- package/dist/lib/utils/options/declaration.js +36 -36
- package/dist/lib/utils/options/help.d.ts +2 -1
- package/dist/lib/utils/options/help.js +10 -10
- package/dist/lib/utils/options/index.d.ts +1 -1
- package/dist/lib/utils/options/index.js +1 -2
- package/dist/lib/utils/options/options.d.ts +5 -34
- package/dist/lib/utils/options/options.js +13 -23
- package/dist/lib/utils/options/readers/arguments.js +3 -5
- package/dist/lib/utils/options/readers/package-json.js +2 -2
- package/dist/lib/utils/options/readers/tsconfig.js +8 -12
- package/dist/lib/utils/options/readers/typedoc.d.ts +1 -1
- package/dist/lib/utils/options/readers/typedoc.js +8 -7
- package/dist/lib/utils/options/sources/typedoc.js +225 -178
- package/dist/lib/utils/options/tsdoc-defaults.d.ts +4 -4
- package/dist/lib/utils/options/tsdoc-defaults.js +27 -20
- package/dist/lib/utils/package-manifest.d.ts +1 -1
- package/dist/lib/utils/package-manifest.js +9 -11
- package/dist/lib/utils/paths.js +4 -5
- package/dist/lib/utils/perf.js +3 -4
- package/dist/lib/utils/plugins.js +4 -5
- package/dist/lib/utils/reflections.d.ts +1 -1
- package/dist/lib/utils/reflections.js +2 -3
- package/dist/lib/utils/set.d.ts +1 -0
- package/dist/lib/utils/set.js +12 -0
- package/dist/lib/utils/sort.d.ts +3 -2
- package/dist/lib/utils/sort.js +37 -6
- package/dist/lib/utils/tsconfig.js +3 -4
- package/dist/lib/utils/tsutils.js +2 -3
- package/dist/lib/utils/validation.js +4 -4
- package/dist/lib/validation/documentation.d.ts +1 -1
- package/dist/lib/validation/documentation.js +9 -4
- package/dist/lib/validation/exports.js +3 -5
- package/dist/lib/validation/links.js +2 -3
- package/package.json +12 -11
- package/static/main.js +4 -4
- package/static/style.css +46 -29
- package/tsdoc.json +22 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Internationalization = void 0;
|
|
4
|
+
const assert_1 = require("assert");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const translatable_1 = require("./translatable");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
const kind_1 = require("../models/reflections/kind");
|
|
10
|
+
// If we're running in ts-node, then we need the TS source rather than
|
|
11
|
+
// the compiled file.
|
|
12
|
+
const ext = process[Symbol.for("ts-node.register.instance")]
|
|
13
|
+
? "cts"
|
|
14
|
+
: "cjs";
|
|
15
|
+
/**
|
|
16
|
+
* Simple internationalization module which supports placeholders.
|
|
17
|
+
* See {@link TranslatableStrings} for a description of how this module works and how
|
|
18
|
+
* plugins should add translations.
|
|
19
|
+
*/
|
|
20
|
+
class Internationalization {
|
|
21
|
+
/**
|
|
22
|
+
* If constructed without an application, will use the default language.
|
|
23
|
+
* Intended for use in unit tests only.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
constructor(application) {
|
|
27
|
+
this.application = application;
|
|
28
|
+
this.allTranslations = new utils_1.DefaultMap((lang) => {
|
|
29
|
+
// Make sure this isn't abused to load some random file by mistake
|
|
30
|
+
(0, assert_1.ok)(/^[A-Za-z-]+$/.test(lang), "Locale names may only contain letters and dashes");
|
|
31
|
+
try {
|
|
32
|
+
return new Map(
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
34
|
+
Object.entries(require(`./locales/${lang}.${ext}`)));
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return new Map();
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* Proxy object which supports dynamically translating
|
|
42
|
+
* all supported keys. This is generally used rather than the translate
|
|
43
|
+
* method so that renaming a key on the `translatable` object that contains
|
|
44
|
+
* all of the default translations will automatically update usage locations.
|
|
45
|
+
*/
|
|
46
|
+
this.proxy = new Proxy(this, {
|
|
47
|
+
get(internationalization, key) {
|
|
48
|
+
return (...args) => internationalization.translate(key, ...args);
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the translation of the specified key, replacing placeholders
|
|
54
|
+
* with the arguments specified.
|
|
55
|
+
*/
|
|
56
|
+
translate(key, ...args) {
|
|
57
|
+
return (this.allTranslations.get(this.application?.lang ?? "en").get(key) ??
|
|
58
|
+
translatable_1.translatable[key] ??
|
|
59
|
+
key).replace(/\{(\d+)\}/g, (_, index) => {
|
|
60
|
+
return args[+index] ?? "(no placeholder)";
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
kindSingularString(kind) {
|
|
64
|
+
switch (kind) {
|
|
65
|
+
case kind_1.ReflectionKind.Project:
|
|
66
|
+
return this.proxy.kind_project();
|
|
67
|
+
case kind_1.ReflectionKind.Module:
|
|
68
|
+
return this.proxy.kind_module();
|
|
69
|
+
case kind_1.ReflectionKind.Namespace:
|
|
70
|
+
return this.proxy.kind_namespace();
|
|
71
|
+
case kind_1.ReflectionKind.Enum:
|
|
72
|
+
return this.proxy.kind_enum();
|
|
73
|
+
case kind_1.ReflectionKind.EnumMember:
|
|
74
|
+
return this.proxy.kind_enum_member();
|
|
75
|
+
case kind_1.ReflectionKind.Variable:
|
|
76
|
+
return this.proxy.kind_variable();
|
|
77
|
+
case kind_1.ReflectionKind.Function:
|
|
78
|
+
return this.proxy.kind_function();
|
|
79
|
+
case kind_1.ReflectionKind.Class:
|
|
80
|
+
return this.proxy.kind_class();
|
|
81
|
+
case kind_1.ReflectionKind.Interface:
|
|
82
|
+
return this.proxy.kind_interface();
|
|
83
|
+
case kind_1.ReflectionKind.Constructor:
|
|
84
|
+
return this.proxy.kind_constructor();
|
|
85
|
+
case kind_1.ReflectionKind.Property:
|
|
86
|
+
return this.proxy.kind_property();
|
|
87
|
+
case kind_1.ReflectionKind.Method:
|
|
88
|
+
return this.proxy.kind_method();
|
|
89
|
+
case kind_1.ReflectionKind.CallSignature:
|
|
90
|
+
return this.proxy.kind_call_signature();
|
|
91
|
+
case kind_1.ReflectionKind.IndexSignature:
|
|
92
|
+
return this.proxy.kind_index_signature();
|
|
93
|
+
case kind_1.ReflectionKind.ConstructorSignature:
|
|
94
|
+
return this.proxy.kind_constructor_signature();
|
|
95
|
+
case kind_1.ReflectionKind.Parameter:
|
|
96
|
+
return this.proxy.kind_parameter();
|
|
97
|
+
case kind_1.ReflectionKind.TypeLiteral:
|
|
98
|
+
return this.proxy.kind_type_literal();
|
|
99
|
+
case kind_1.ReflectionKind.TypeParameter:
|
|
100
|
+
return this.proxy.kind_type_parameter();
|
|
101
|
+
case kind_1.ReflectionKind.Accessor:
|
|
102
|
+
return this.proxy.kind_accessor();
|
|
103
|
+
case kind_1.ReflectionKind.GetSignature:
|
|
104
|
+
return this.proxy.kind_get_signature();
|
|
105
|
+
case kind_1.ReflectionKind.SetSignature:
|
|
106
|
+
return this.proxy.kind_set_signature();
|
|
107
|
+
case kind_1.ReflectionKind.TypeAlias:
|
|
108
|
+
return this.proxy.kind_type_alias();
|
|
109
|
+
case kind_1.ReflectionKind.Reference:
|
|
110
|
+
return this.proxy.kind_reference();
|
|
111
|
+
case kind_1.ReflectionKind.Document:
|
|
112
|
+
return this.proxy.kind_document();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
kindPluralString(kind) {
|
|
116
|
+
switch (kind) {
|
|
117
|
+
case kind_1.ReflectionKind.Project:
|
|
118
|
+
return this.proxy.kind_plural_project();
|
|
119
|
+
case kind_1.ReflectionKind.Module:
|
|
120
|
+
return this.proxy.kind_plural_module();
|
|
121
|
+
case kind_1.ReflectionKind.Namespace:
|
|
122
|
+
return this.proxy.kind_plural_namespace();
|
|
123
|
+
case kind_1.ReflectionKind.Enum:
|
|
124
|
+
return this.proxy.kind_plural_enum();
|
|
125
|
+
case kind_1.ReflectionKind.EnumMember:
|
|
126
|
+
return this.proxy.kind_plural_enum_member();
|
|
127
|
+
case kind_1.ReflectionKind.Variable:
|
|
128
|
+
return this.proxy.kind_plural_variable();
|
|
129
|
+
case kind_1.ReflectionKind.Function:
|
|
130
|
+
return this.proxy.kind_plural_function();
|
|
131
|
+
case kind_1.ReflectionKind.Class:
|
|
132
|
+
return this.proxy.kind_plural_class();
|
|
133
|
+
case kind_1.ReflectionKind.Interface:
|
|
134
|
+
return this.proxy.kind_plural_interface();
|
|
135
|
+
case kind_1.ReflectionKind.Constructor:
|
|
136
|
+
return this.proxy.kind_plural_constructor();
|
|
137
|
+
case kind_1.ReflectionKind.Property:
|
|
138
|
+
return this.proxy.kind_plural_property();
|
|
139
|
+
case kind_1.ReflectionKind.Method:
|
|
140
|
+
return this.proxy.kind_plural_method();
|
|
141
|
+
case kind_1.ReflectionKind.CallSignature:
|
|
142
|
+
return this.proxy.kind_plural_call_signature();
|
|
143
|
+
case kind_1.ReflectionKind.IndexSignature:
|
|
144
|
+
return this.proxy.kind_plural_index_signature();
|
|
145
|
+
case kind_1.ReflectionKind.ConstructorSignature:
|
|
146
|
+
return this.proxy.kind_plural_constructor_signature();
|
|
147
|
+
case kind_1.ReflectionKind.Parameter:
|
|
148
|
+
return this.proxy.kind_plural_parameter();
|
|
149
|
+
case kind_1.ReflectionKind.TypeLiteral:
|
|
150
|
+
return this.proxy.kind_plural_type_literal();
|
|
151
|
+
case kind_1.ReflectionKind.TypeParameter:
|
|
152
|
+
return this.proxy.kind_plural_type_parameter();
|
|
153
|
+
case kind_1.ReflectionKind.Accessor:
|
|
154
|
+
return this.proxy.kind_plural_accessor();
|
|
155
|
+
case kind_1.ReflectionKind.GetSignature:
|
|
156
|
+
return this.proxy.kind_plural_get_signature();
|
|
157
|
+
case kind_1.ReflectionKind.SetSignature:
|
|
158
|
+
return this.proxy.kind_plural_set_signature();
|
|
159
|
+
case kind_1.ReflectionKind.TypeAlias:
|
|
160
|
+
return this.proxy.kind_plural_type_alias();
|
|
161
|
+
case kind_1.ReflectionKind.Reference:
|
|
162
|
+
return this.proxy.kind_plural_reference();
|
|
163
|
+
case kind_1.ReflectionKind.Document:
|
|
164
|
+
return this.proxy.kind_plural_document();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Add translations for a string which will be displayed to the user.
|
|
169
|
+
*/
|
|
170
|
+
addTranslations(lang, translations, override = false) {
|
|
171
|
+
const target = this.allTranslations.get(lang);
|
|
172
|
+
for (const [key, val] of Object.entries(translations)) {
|
|
173
|
+
if (!target.has(key) || override) {
|
|
174
|
+
target.set(key, val);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Checks if we have any translations in the specified language.
|
|
180
|
+
*/
|
|
181
|
+
hasTranslations(lang) {
|
|
182
|
+
return this.allTranslations.get(lang).size > 0;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Gets a list of all languages with at least one translation.
|
|
186
|
+
*/
|
|
187
|
+
getSupportedLanguages() {
|
|
188
|
+
return (0, utils_1.unique)([
|
|
189
|
+
...(0, fs_1.readdirSync)((0, path_1.join)(__dirname, "locales")).map((x) => x.substring(0, x.indexOf("."))),
|
|
190
|
+
...this.allTranslations.keys(),
|
|
191
|
+
]).sort();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
exports.Internationalization = Internationalization;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This should go away once we have a second language in TypeDoc to use
|
|
3
|
+
// in unit tests. It's here for now so that we have *something* to test with.
|
|
4
|
+
const translatable_1 = require("../translatable");
|
|
5
|
+
module.exports = (0, translatable_1.buildIncompleteTranslation)({
|
|
6
|
+
no_entry_points_to_merge: "no_entry_points_to_merge",
|
|
7
|
+
docs_generated_at_0: "docs_generated_at_0 {0}",
|
|
8
|
+
});
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
export declare function buildTranslation<T extends BuiltinTranslatableStringConstraints>(translations: T): T;
|
|
2
|
+
export declare function buildIncompleteTranslation<T extends Partial<BuiltinTranslatableStringConstraints>>(translations: T): T;
|
|
3
|
+
export declare const translatable: {
|
|
4
|
+
readonly loaded_multiple_times_0: "TypeDoc has been loaded multiple times. This is commonly caused by plugins which have their own installation of TypeDoc. The loaded paths are:\n\t{0}";
|
|
5
|
+
readonly unsupported_ts_version_0: "You are running with an unsupported TypeScript version! If TypeDoc crashes, this is why. TypeDoc supports {0}";
|
|
6
|
+
readonly no_compiler_options_set: "No compiler options set. This likely means that TypeDoc did not find your tsconfig.json. Generated documentation will probably be empty.";
|
|
7
|
+
readonly loaded_plugin_0: "Loaded plugin {0}";
|
|
8
|
+
readonly solution_not_supported_in_watch_mode: "The provided tsconfig file looks like a solution style tsconfig, which is not supported in watch mode.";
|
|
9
|
+
readonly strategy_not_supported_in_watch_mode: "entryPointStrategy must be set to either resolve or expand for watch mode.";
|
|
10
|
+
readonly docs_could_not_be_generated: "Documentation could not be generated due to the errors above.";
|
|
11
|
+
readonly docs_generated_at_0: "Documentation generated at {0}";
|
|
12
|
+
readonly json_written_to_0: "JSON written to {0}";
|
|
13
|
+
readonly no_entry_points_for_packages: "No entry points provided to packages mode, documentation cannot be generated.";
|
|
14
|
+
readonly failed_to_find_packages: "Failed to find any packages, ensure you have provided at least one directory as an entry point containing package.json";
|
|
15
|
+
readonly nested_packages_unsupported_0: "Project at {0} has entryPointStrategy set to packages, but nested packages are not supported.";
|
|
16
|
+
readonly previous_error_occurred_when_reading_options_for_0: "The previous error occurred when reading options for the package at {0}";
|
|
17
|
+
readonly converting_project_at_0: "Converting project at {0}";
|
|
18
|
+
readonly failed_to_convert_packages: "Failed to convert one or more packages, result will not be merged together.";
|
|
19
|
+
readonly merging_converted_projects: "Merging converted projects";
|
|
20
|
+
readonly no_entry_points_to_merge: "No entry points provided to merge.";
|
|
21
|
+
readonly entrypoint_did_not_match_files_0: "The entrypoint glob {0} did not match any files.";
|
|
22
|
+
readonly failed_to_parse_json_0: "Failed to parse file at {0} as json.";
|
|
23
|
+
readonly failed_to_read_0_when_processing_document_tag_in_1: "Failed to read file {0} when processing @document tag for comment in {1}";
|
|
24
|
+
readonly converting_union_as_interface: "Using @interface on a union type will discard properties not present on all branches of the union. TypeDoc's output may not accurately describe your source code.";
|
|
25
|
+
readonly converting_0_as_class_requires_value_declaration: "Converting {0} as a class requires a declaration which represents a non-type value.";
|
|
26
|
+
readonly converting_0_as_class_without_construct_signatures: "{0} is being converted as a class, but does not have any construct signatures";
|
|
27
|
+
readonly symbol_0_has_multiple_declarations_with_comment: "{0} has multiple declarations with a comment. An arbitrary comment will be used.";
|
|
28
|
+
readonly comments_for_0_are_declared_at_1: "The comments for {0} are declared at:\n\t{1}";
|
|
29
|
+
readonly multiple_type_parameters_on_template_tag_unsupported: "TypeDoc does not support multiple type parameters defined in a single @template tag with a comment.";
|
|
30
|
+
readonly failed_to_find_jsdoc_tag_for_name_0: "Failed to find JSDoc tag for {0} after parsing comment, please file a bug report.";
|
|
31
|
+
readonly inline_inheritdoc_should_not_appear_in_block_tag_in_comment_at_0: "An inline @inheritDoc tag should not appear within a block tag as it will not be processed in comment at {0}";
|
|
32
|
+
readonly at_most_one_remarks_tag_expected_in_comment_at_0: "At most one @remarks tag is expected in a comment, ignoring all but the first in comment at {0}";
|
|
33
|
+
readonly at_most_one_returns_tag_expected_in_comment_at_0: "At most one @returns tag is expected in a comment, ignoring all but the first in comment at {0}";
|
|
34
|
+
readonly at_most_one_inheritdoc_tag_expected_in_comment_at_0: "At most one @inheritDoc tag is expected in a comment, ignoring all but the first in comment at {0}";
|
|
35
|
+
readonly content_in_summary_overwritten_by_inheritdoc_in_comment_at_0: "Content in the summary section will be overwritten by the @inheritDoc tag in comment at {0}";
|
|
36
|
+
readonly content_in_remarks_block_overwritten_by_inheritdoc_in_comment_at_0: "Content in the @remarks block will be overwritten by the @inheritDoc tag in comment at {0}";
|
|
37
|
+
readonly example_tag_literal_name: "The first line of an example tag will be taken literally as the example name, and should only contain text.";
|
|
38
|
+
readonly inheritdoc_tag_properly_capitalized: "The @inheritDoc tag should be properly capitalized.";
|
|
39
|
+
readonly treating_unrecognized_tag_0_as_modifier: "Treating unrecognized tag {0} as a modifier tag.";
|
|
40
|
+
readonly unmatched_closing_brace: "Unmatched closing brace.";
|
|
41
|
+
readonly unescaped_open_brace_without_inline_tag: "Encountered an unescaped open brace without an inline tag.";
|
|
42
|
+
readonly unknown_block_tag_0: "Encountered an unknown block tag {0}.";
|
|
43
|
+
readonly unknown_inline_tag_0: "Encountered an unknown inline tag {0}.";
|
|
44
|
+
readonly open_brace_within_inline_tag: "Encountered an open brace within an inline tag, this is likely a mistake.";
|
|
45
|
+
readonly inline_tag_not_closed: "Inline tag is not closed.";
|
|
46
|
+
readonly failed_to_resolve_link_to_0_in_comment_for_1: "Failed to resolve link to \"{0}\" in comment for {1}";
|
|
47
|
+
readonly type_0_defined_in_1_is_referenced_by_2_but_not_included_in_docs: "{0}, defined in {1}, is referenced by {2} but not included in the documentation.";
|
|
48
|
+
readonly reflection_0_kind_1_defined_in_2_does_not_have_any_documentation: "{0} ({1}), defined in {2}, does not have any documentation.";
|
|
49
|
+
readonly invalid_intentionally_not_exported_symbols_0: "The following symbols were marked as intentionally not exported, but were either not referenced in the documentation, or were exported:\n\t{0}";
|
|
50
|
+
readonly not_all_search_category_boosts_used_0: "Not all categories specified in searchCategoryBoosts were used in the documentation. The unused categories were:\n\t{0}";
|
|
51
|
+
readonly not_all_search_group_boosts_used_0: "Not all groups specified in searchGroupBoosts were used in the documentation. The unused groups were:\n\t{0}";
|
|
52
|
+
readonly comment_for_0_includes_categoryDescription_for_1_but_no_child_in_group: "Comment for {0} includes @categoryDescription for \"{1}\", but no child is placed in that category.";
|
|
53
|
+
readonly comment_for_0_includes_groupDescription_for_1_but_no_child_in_group: "Comment for {0} includes @groupDescription for \"{1}\", but no child is placed in that group.";
|
|
54
|
+
readonly label_0_for_1_cannot_be_referenced: "The label \"{0}\" for {1} cannot be referenced with a declaration reference. Labels may only contain A-Z, 0-9, and _, and may not start with a number.";
|
|
55
|
+
readonly modifier_tag_0_is_mutually_exclusive_with_1_in_comment_for_2: "The modifier tag {0} is mutually exclusive with {1} in the comment for {2}.";
|
|
56
|
+
readonly signature_0_has_unused_param_with_name_1: "The signature {0} has an @param with name \"{1}\", which was not used.";
|
|
57
|
+
readonly declaration_reference_in_inheritdoc_for_0_not_fully_parsed: "Declaration reference in @inheritDoc for {0} was not fully parsed and may resolve incorrectly.";
|
|
58
|
+
readonly failed_to_find_0_to_inherit_comment_from_in_1: "Failed to find \"{0}\" to inherit the comment from in the comment for {1}";
|
|
59
|
+
readonly reflection_0_tried_to_copy_comment_from_1_but_source_had_no_comment: "{0} tried to copy a comment from {1} with @inheritDoc, but the source has no associated comment.";
|
|
60
|
+
readonly inheritdoc_circular_inheritance_chain_0: "@inheritDoc specifies a circular inheritance chain: {0}";
|
|
61
|
+
readonly provided_readme_at_0_could_not_be_read: "Provided README path, {0} could not be read.";
|
|
62
|
+
readonly defaulting_project_name: "The --name option was not specified, and no package.json was found. Defaulting project name to \"Documentation\".";
|
|
63
|
+
readonly disable_git_set_but_not_source_link_template: "disableGit is set, but sourceLinkTemplate is not, so source links cannot be produced. Set a sourceLinkTemplate or disableSources to prevent source tracking.";
|
|
64
|
+
readonly disable_git_set_and_git_revision_used: "disableGit is set and sourceLinkTemplate contains {gitRevision}, which will be replaced with an empty string as no revision was provided.";
|
|
65
|
+
readonly git_remote_0_not_valid: "The provided git remote \"{0}\" was not valid. Source links will be broken.";
|
|
66
|
+
readonly custom_css_file_0_does_not_exist: "Custom CSS file at {0} does not exist.";
|
|
67
|
+
readonly unsupported_highlight_language_0_not_highlighted_in_comment_for_1: "Unsupported highlight language {0} will not be highlighted in comment for {1}.";
|
|
68
|
+
readonly yaml_frontmatter_not_an_object: "Expected YAML frontmatter to be an object.";
|
|
69
|
+
readonly could_not_write_0: "Could not write {0}";
|
|
70
|
+
readonly could_not_empty_output_directory_0: "Could not empty the output directory {0}";
|
|
71
|
+
readonly could_not_create_output_directory_0: "Could not create the output directory {0}";
|
|
72
|
+
readonly theme_0_is_not_defined_available_are_1: "The theme '{0}' is not defined. The available themes are: {1}";
|
|
73
|
+
readonly custom_theme_does_not_define_getSlugger: "Custom theme does not define a getSlugger(reflection) method, but tries to render markdown";
|
|
74
|
+
readonly no_entry_points_provided: "No entry points were provided, this is likely a misconfiguration.";
|
|
75
|
+
readonly unable_to_find_any_entry_points: "Unable to find any entry points. See previous warnings.";
|
|
76
|
+
readonly watch_does_not_support_packages_mode: "Watch mode does not support 'packages' style entry points.";
|
|
77
|
+
readonly watch_does_not_support_merge_mode: "Watch mode does not support 'merge' style entry points.";
|
|
78
|
+
readonly entry_point_0_not_in_program: "The entry point {0} is not referenced by the 'files' or 'include' option in your tsconfig.";
|
|
79
|
+
readonly use_expand_or_glob_for_files_in_dir: "If you wanted to include files inside this directory, set --entryPointStrategy to expand or specify a glob.";
|
|
80
|
+
readonly glob_0_did_not_match_any_files: "The glob {0} did not match any files.";
|
|
81
|
+
readonly entry_point_0_did_not_match_any_files_after_exclude: "The glob {0} did not match any files after applying exclude patterns.";
|
|
82
|
+
readonly entry_point_0_did_not_exist: "Provided entry point {0} does not exist.";
|
|
83
|
+
readonly entry_point_0_did_not_match_any_packages: "The entry point glob {0} did not match any directories containing package.json.";
|
|
84
|
+
readonly file_0_not_an_object: "The file {0} is not an object.";
|
|
85
|
+
readonly serialized_project_referenced_0_not_part_of_project: "Serialized project referenced reflection {0}, which was not a part of the project.";
|
|
86
|
+
readonly circular_reference_extends_0: "Circular reference encountered for \"extends\" field of {0}";
|
|
87
|
+
readonly failed_resolve_0_to_file_in_1: "Failed to resolve {0} to a file in {1}";
|
|
88
|
+
readonly option_0_can_only_be_specified_by_config_file: "The '{0}' option can only be specified via a config file.";
|
|
89
|
+
readonly option_0_expected_a_value_but_none_provided: "--{0} expected a value, but none was given as an argument.";
|
|
90
|
+
readonly unknown_option_0_may_have_meant_1: "Unknown option: {0}, you may have meant:\n\t{1}";
|
|
91
|
+
readonly typedoc_key_in_0_ignored: "The 'typedoc' key in {0} was used by the legacy-packages entryPointStrategy and will be ignored.";
|
|
92
|
+
readonly typedoc_options_must_be_object_in_0: "Failed to parse the \"typedocOptions\" field in {0}, ensure it exists and contains an object.";
|
|
93
|
+
readonly tsconfig_file_0_does_not_exist: "The tsconfig file {0} does not exist";
|
|
94
|
+
readonly tsconfig_file_specifies_options_file: "\"typedocOptions\" in tsconfig file specifies an option file to read but the option file has already been read. This is likely a misconfiguration.";
|
|
95
|
+
readonly tsconfig_file_specifies_tsconfig_file: "\"typedocOptions\" in tsconfig file may not specify a tsconfig file to read.";
|
|
96
|
+
readonly tags_0_defined_in_typedoc_json_overwritten_by_tsdoc_json: "The {0} defined in typedoc.json will be overwritten by configuration in tsdoc.json.";
|
|
97
|
+
readonly failed_read_tsdoc_json_0: "Failed to read tsdoc.json file at {0}.";
|
|
98
|
+
readonly invalid_tsdoc_json_0: "The file {0} is not a valid tsdoc.json file.";
|
|
99
|
+
readonly options_file_0_does_not_exist: "The options file {0} does not exist.";
|
|
100
|
+
readonly failed_read_options_file_0: "Failed to parse {0}, ensure it exists and exports an object.";
|
|
101
|
+
readonly invalid_plugin_0_missing_load_function: "Invalid structure in plugin {0}, no load function found.";
|
|
102
|
+
readonly plugin_0_could_not_be_loaded: "The plugin {0} could not be loaded.";
|
|
103
|
+
readonly help_options: "Specify a json option file that should be loaded. If not specified TypeDoc will look for 'typedoc.json' in the current directory.";
|
|
104
|
+
readonly help_tsconfig: "Specify a TypeScript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.";
|
|
105
|
+
readonly help_compilerOptions: "Selectively override the TypeScript compiler options used by TypeDoc.";
|
|
106
|
+
readonly help_lang: "Sets the language to be used in generation and in TypeDoc's messages.";
|
|
107
|
+
readonly help_locales: "Add translations for a specified locale. This option is primarily intended to be used as a stopgap while waiting for official locale support to be added to TypeDoc.";
|
|
108
|
+
readonly help_packageOptions: "Set options which will be set within each package when entryPointStrategy is set to packages.";
|
|
109
|
+
readonly help_entryPoints: "The entry points of your documentation.";
|
|
110
|
+
readonly help_entryPointStrategy: "The strategy to be used to convert entry points into documentation modules.";
|
|
111
|
+
readonly help_alwaysCreateEntryPointModule: "When set, TypeDoc will always create a `Module` for entry points, even if only one is provided.";
|
|
112
|
+
readonly help_projectDocuments: "Documents which should be added as children to the root of the generated documentation. Supports globs to match multiple files.";
|
|
113
|
+
readonly help_exclude: "Define patterns to be excluded when expanding a directory that was specified as an entry point.";
|
|
114
|
+
readonly help_externalPattern: "Define patterns for files that should be considered being external.";
|
|
115
|
+
readonly help_excludeExternals: "Prevent externally resolved symbols from being documented.";
|
|
116
|
+
readonly help_excludeNotDocumented: "Prevent symbols that are not explicitly documented from appearing in the results.";
|
|
117
|
+
readonly help_excludeNotDocumentedKinds: "Specify the type of reflections that can be removed by excludeNotDocumented.";
|
|
118
|
+
readonly help_excludeInternal: "Prevent symbols that are marked with @internal from being documented.";
|
|
119
|
+
readonly help_excludeCategories: "Exclude symbols within this category from the documentation.";
|
|
120
|
+
readonly help_excludePrivate: "Ignore private variables and methods.";
|
|
121
|
+
readonly help_excludeProtected: "Ignore protected variables and methods.";
|
|
122
|
+
readonly help_excludeReferences: "If a symbol is exported multiple times, ignore all but the first export.";
|
|
123
|
+
readonly help_externalSymbolLinkMappings: "Define custom links for symbols not included in the documentation.";
|
|
124
|
+
readonly help_out: "Specify the location the documentation should be written to.";
|
|
125
|
+
readonly help_json: "Specify the location and filename a JSON file describing the project is written to.";
|
|
126
|
+
readonly help_pretty: "Specify whether the output JSON should be formatted with tabs.";
|
|
127
|
+
readonly help_emit: "Specify what TypeDoc should emit, 'docs', 'both', or 'none'.";
|
|
128
|
+
readonly help_theme: "Specify the theme name to render the documentation with";
|
|
129
|
+
readonly help_lightHighlightTheme: "Specify the code highlighting theme in light mode.";
|
|
130
|
+
readonly help_darkHighlightTheme: "Specify the code highlighting theme in dark mode.";
|
|
131
|
+
readonly help_customCss: "Path to a custom CSS file to for the theme to import.";
|
|
132
|
+
readonly help_markdownItOptions: "Specify the options passed to markdown-it, the Markdown parser used by TypeDoc.";
|
|
133
|
+
readonly help_markdownItLoader: "Specify a callback to be called when loading the markdown-it instance. Will be passed the instance of the parser which TypeDoc will use.";
|
|
134
|
+
readonly help_maxTypeConversionDepth: "Set the maximum depth of types to be converted.";
|
|
135
|
+
readonly help_name: "Set the name of the project that will be used in the header of the template.";
|
|
136
|
+
readonly help_includeVersion: "Add the package version to the project name.";
|
|
137
|
+
readonly help_disableSources: "Disable setting the source of a reflection when documenting it.";
|
|
138
|
+
readonly help_sourceLinkTemplate: "Specify a link template to be used when generating source urls. If not set, will be automatically created using the git remote. Supports {path}, {line}, {gitRevision} placeholders.";
|
|
139
|
+
readonly help_gitRevision: "Use specified revision instead of the last revision for linking to GitHub/Bitbucket source files. Has no effect if disableSources is set.";
|
|
140
|
+
readonly help_gitRemote: "Use the specified remote for linking to GitHub/Bitbucket source files. Has no effect if disableGit or disableSources is set.";
|
|
141
|
+
readonly help_disableGit: "Assume that all can be linked to with the sourceLinkTemplate, sourceLinkTemplate must be set if this is enabled. {path} will be rooted at basePath";
|
|
142
|
+
readonly help_basePath: "Specifies the base path to be used when displaying file paths.";
|
|
143
|
+
readonly help_excludeTags: "Remove the listed block/modifier tags from doc comments.";
|
|
144
|
+
readonly help_readme: "Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page and start the documentation on the globals page.";
|
|
145
|
+
readonly help_cname: "Set the CNAME file text, it's useful for custom domains on GitHub Pages.";
|
|
146
|
+
readonly help_sourceLinkExternal: "Specifies that source links should be treated as external links to be opened in a new tab.";
|
|
147
|
+
readonly help_githubPages: "Generate a .nojekyll file to prevent 404 errors in GitHub Pages. Defaults to `true`.";
|
|
148
|
+
readonly help_hostedBaseUrl: "Specify a base URL to be used in generating a sitemap.xml in our output folder and canonical links. If not specified, no sitemap will be generated.";
|
|
149
|
+
readonly help_gaID: "Set the Google Analytics tracking ID and activate tracking code.";
|
|
150
|
+
readonly help_hideGenerator: "Do not print the TypeDoc link at the end of the page.";
|
|
151
|
+
readonly help_customFooterHtml: "Custom footer after the TypeDoc link.";
|
|
152
|
+
readonly help_customFooterHtmlDisableWrapper: "If set, disables the wrapper element for customFooterHtml.";
|
|
153
|
+
readonly help_hideParameterTypesInTitle: "Hides parameter types in signature titles for easier scanning.";
|
|
154
|
+
readonly help_cacheBust: "Include the generation time in links to static assets.";
|
|
155
|
+
readonly help_searchInComments: "If set, the search index will also include comments. This will greatly increase the size of the search index.";
|
|
156
|
+
readonly help_searchInDocuments: "If set, the search index will also include documents. This will greatly increase the size of the search index.";
|
|
157
|
+
readonly help_cleanOutputDir: "If set, TypeDoc will remove the output directory before writing output.";
|
|
158
|
+
readonly help_titleLink: "Set the link the title in the header points to. Defaults to the documentation homepage.";
|
|
159
|
+
readonly help_navigationLinks: "Defines links to be included in the header.";
|
|
160
|
+
readonly help_sidebarLinks: "Defines links to be included in the sidebar.";
|
|
161
|
+
readonly help_navigationLeaves: "Branches of the navigation tree which should not be expanded.";
|
|
162
|
+
readonly help_navigation: "Determines how the navigation sidebar is organized.";
|
|
163
|
+
readonly help_visibilityFilters: "Specify the default visibility for builtin filters and additional filters according to modifier tags.";
|
|
164
|
+
readonly help_searchCategoryBoosts: "Configure search to give a relevance boost to selected categories";
|
|
165
|
+
readonly help_searchGroupBoosts: "Configure search to give a relevance boost to selected kinds (eg \"class\")";
|
|
166
|
+
readonly help_jsDocCompatibility: "Sets compatibility options for comment parsing that increase similarity with JSDoc comments.";
|
|
167
|
+
readonly help_commentStyle: "Determines how TypeDoc searches for comments.";
|
|
168
|
+
readonly help_useTsLinkResolution: "Use TypeScript's link resolution when determining where @link tags point. This only applies to JSDoc style comments.";
|
|
169
|
+
readonly help_preserveLinkText: "If set, @link tags without link text will use the text content as the link. If not set, will use the target reflection name.";
|
|
170
|
+
readonly help_blockTags: "Block tags which TypeDoc should recognize when parsing comments.";
|
|
171
|
+
readonly help_inlineTags: "Inline tags which TypeDoc should recognize when parsing comments.";
|
|
172
|
+
readonly help_modifierTags: "Modifier tags which TypeDoc should recognize when parsing comments.";
|
|
173
|
+
readonly help_categorizeByGroup: "Specify whether categorization will be done at the group level.";
|
|
174
|
+
readonly help_defaultCategory: "Specify the default category for reflections without a category.";
|
|
175
|
+
readonly help_categoryOrder: "Specify the order in which categories appear. * indicates the relative order for categories not in the list.";
|
|
176
|
+
readonly help_groupOrder: "Specify the order in which groups appear. * indicates the relative order for groups not in the list.";
|
|
177
|
+
readonly help_sort: "Specify the sort strategy for documented values.";
|
|
178
|
+
readonly help_sortEntryPoints: "If set, entry points will be subject to the same sorting rules as other reflections.";
|
|
179
|
+
readonly help_kindSortOrder: "Specify the sort order for reflections when 'kind' is specified.";
|
|
180
|
+
readonly help_watch: "Watch files for changes and rebuild docs on change.";
|
|
181
|
+
readonly help_preserveWatchOutput: "If set, TypeDoc will not clear the screen between compilation runs.";
|
|
182
|
+
readonly help_skipErrorChecking: "Do not run TypeScript's type checking before generating docs.";
|
|
183
|
+
readonly help_help: "Print this message.";
|
|
184
|
+
readonly help_version: "Print TypeDoc's version.";
|
|
185
|
+
readonly help_showConfig: "Print the resolved configuration and exit.";
|
|
186
|
+
readonly help_plugin: "Specify the npm plugins that should be loaded. Omit to load all installed plugins.";
|
|
187
|
+
readonly help_logLevel: "Specify what level of logging should be used.";
|
|
188
|
+
readonly help_treatWarningsAsErrors: "If set, all warnings will be treated as errors.";
|
|
189
|
+
readonly help_treatValidationWarningsAsErrors: "If set, warnings emitted during validation will be treated as errors. This option cannot be used to disable treatWarningsAsErrors for validation warnings.";
|
|
190
|
+
readonly help_intentionallyNotExported: "A list of types which should not produce 'referenced but not documented' warnings.";
|
|
191
|
+
readonly help_requiredToBeDocumented: "A list of reflection kinds that must be documented";
|
|
192
|
+
readonly help_validation: "Specify which validation steps TypeDoc should perform on your generated documentation.";
|
|
193
|
+
readonly unknown_option_0_you_may_have_meant_1: "Unknown option '{0}' You may have meant:\n\t{1}";
|
|
194
|
+
readonly option_0_must_be_between_1_and_2: "{0} must be between {1} and {2}";
|
|
195
|
+
readonly option_0_must_be_equal_to_or_greater_than_1: "{0} must be equal to or greater than {1}";
|
|
196
|
+
readonly option_0_must_be_less_than_or_equal_to_1: "{0} must be less than or equal to {1}";
|
|
197
|
+
readonly option_0_must_be_one_of_1: "{0} must be one of {1}";
|
|
198
|
+
readonly flag_0_is_not_valid_for_1_expected_2: "The flag '{0}' is not valid for {1}, expected one of {2}";
|
|
199
|
+
readonly expected_object_with_flag_values_for_0: "Expected an object with flag values for {0} or true/false";
|
|
200
|
+
readonly flag_values_for_0_must_be_booleans: "Flag values for {0} must be a boolean.";
|
|
201
|
+
readonly locales_must_be_an_object: "The 'locales' option must be set to an object which resembles: { en: { theme_implements: \"Implements\" }}";
|
|
202
|
+
readonly exclude_not_documented_specified_0_valid_values_are_1: "excludeNotDocumentedKinds may only specify known values, and invalid values were provided ({0}). The valid kinds are:\n{1}";
|
|
203
|
+
readonly external_symbol_link_mappings_must_be_object: "externalSymbolLinkMappings must be a Record<package name, Record<symbol name, link>>";
|
|
204
|
+
readonly highlight_theme_0_must_be_one_of_1: "{0} must be one of the following: {1}";
|
|
205
|
+
readonly hostedBaseUrl_must_start_with_http: "hostedBaseUrl must start with http:// or https://";
|
|
206
|
+
readonly option_0_must_be_an_object: "The '{0}' option must be a non-array object.";
|
|
207
|
+
readonly option_0_must_be_a_function: "The '{0}' option must be a function.";
|
|
208
|
+
readonly option_0_must_be_object_with_urls: "{0} must be an object with string labels as keys and URL values.";
|
|
209
|
+
readonly visibility_filters_only_include_0: "visibilityFilters can only include the following non-@ keys: {0}";
|
|
210
|
+
readonly visibility_filters_must_be_booleans: "All values of visibilityFilters must be booleans.";
|
|
211
|
+
readonly option_0_values_must_be_numbers: "All values of {0} must be numbers";
|
|
212
|
+
readonly option_0_values_must_be_array_of_tags: "{0} must be an array of valid tag names.";
|
|
213
|
+
readonly option_0_specified_1_but_only_2_is_valid: "{0} may only specify known values, and invalid values were provided ({0}). The valid sort strategies are:\n{1}";
|
|
214
|
+
readonly kind_project: "Project";
|
|
215
|
+
readonly kind_module: "Module";
|
|
216
|
+
readonly kind_namespace: "Namespace";
|
|
217
|
+
readonly kind_enum: "Enumeration";
|
|
218
|
+
readonly kind_enum_member: "Enumeration Member";
|
|
219
|
+
readonly kind_variable: "Variable";
|
|
220
|
+
readonly kind_function: "Function";
|
|
221
|
+
readonly kind_class: "Class";
|
|
222
|
+
readonly kind_interface: "Interface";
|
|
223
|
+
readonly kind_constructor: "Constructor";
|
|
224
|
+
readonly kind_property: "Property";
|
|
225
|
+
readonly kind_method: "Method";
|
|
226
|
+
readonly kind_call_signature: "Call Signature";
|
|
227
|
+
readonly kind_index_signature: "Index Signature";
|
|
228
|
+
readonly kind_constructor_signature: "Constructor Signature";
|
|
229
|
+
readonly kind_parameter: "Parameter";
|
|
230
|
+
readonly kind_type_literal: "Type Literal";
|
|
231
|
+
readonly kind_type_parameter: "Type Parameter";
|
|
232
|
+
readonly kind_accessor: "Accessor";
|
|
233
|
+
readonly kind_get_signature: "Get Signature";
|
|
234
|
+
readonly kind_set_signature: "Set Signature";
|
|
235
|
+
readonly kind_type_alias: "Type Alias";
|
|
236
|
+
readonly kind_reference: "Reference";
|
|
237
|
+
readonly kind_document: "Document";
|
|
238
|
+
readonly kind_plural_project: "Projects";
|
|
239
|
+
readonly kind_plural_module: "Modules";
|
|
240
|
+
readonly kind_plural_namespace: "Namespaces";
|
|
241
|
+
readonly kind_plural_enum: "Enumerations";
|
|
242
|
+
readonly kind_plural_enum_member: "Enumeration Members";
|
|
243
|
+
readonly kind_plural_variable: "Variables";
|
|
244
|
+
readonly kind_plural_function: "Functions";
|
|
245
|
+
readonly kind_plural_class: "Classes";
|
|
246
|
+
readonly kind_plural_interface: "Interfaces";
|
|
247
|
+
readonly kind_plural_constructor: "Constructors";
|
|
248
|
+
readonly kind_plural_property: "Properties";
|
|
249
|
+
readonly kind_plural_method: "Methods";
|
|
250
|
+
readonly kind_plural_call_signature: "Call Signatures";
|
|
251
|
+
readonly kind_plural_index_signature: "Index Signatures";
|
|
252
|
+
readonly kind_plural_constructor_signature: "Constructor Signatures";
|
|
253
|
+
readonly kind_plural_parameter: "Parameters";
|
|
254
|
+
readonly kind_plural_type_literal: "Type Literals";
|
|
255
|
+
readonly kind_plural_type_parameter: "Type Parameters";
|
|
256
|
+
readonly kind_plural_accessor: "Accessors";
|
|
257
|
+
readonly kind_plural_get_signature: "Get Signatures";
|
|
258
|
+
readonly kind_plural_set_signature: "Set Signatures";
|
|
259
|
+
readonly kind_plural_type_alias: "Type Aliases";
|
|
260
|
+
readonly kind_plural_reference: "References";
|
|
261
|
+
readonly kind_plural_document: "Documents";
|
|
262
|
+
readonly theme_implements: "Implements";
|
|
263
|
+
readonly theme_indexable: "Indexable";
|
|
264
|
+
readonly theme_type_declaration: "Type declaration";
|
|
265
|
+
readonly theme_index: "Index";
|
|
266
|
+
readonly theme_hierarchy: "Hierarchy";
|
|
267
|
+
readonly theme_hierarchy_view_full: "view full";
|
|
268
|
+
readonly theme_implemented_by: "Implemented by";
|
|
269
|
+
readonly theme_defined_in: "Defined in";
|
|
270
|
+
readonly theme_implementation_of: "Implementation of";
|
|
271
|
+
readonly theme_inherited_from: "Inherited from";
|
|
272
|
+
readonly theme_overrides: "Overrides";
|
|
273
|
+
readonly theme_returns: "Returns";
|
|
274
|
+
readonly theme_re_exports: "Re-exports";
|
|
275
|
+
readonly theme_renames_and_re_exports: "Renames and re-exports";
|
|
276
|
+
readonly theme_generated_using_typedoc: "Generated using TypeDoc";
|
|
277
|
+
readonly theme_preparing_search_index: "Preparing search index...";
|
|
278
|
+
readonly theme_search_index_not_available: "The search index is not available";
|
|
279
|
+
readonly theme_settings: "Settings";
|
|
280
|
+
readonly theme_member_visibility: "Member Visibility";
|
|
281
|
+
readonly theme_theme: "Theme";
|
|
282
|
+
readonly theme_os: "OS";
|
|
283
|
+
readonly theme_light: "Light";
|
|
284
|
+
readonly theme_dark: "Dark";
|
|
285
|
+
readonly theme_on_this_page: "On This Page";
|
|
286
|
+
readonly theme_search: "Search";
|
|
287
|
+
readonly theme_menu: "Menu";
|
|
288
|
+
readonly theme_permalink: "Permalink";
|
|
289
|
+
};
|
|
290
|
+
export type BuiltinTranslatableStringArgs = {
|
|
291
|
+
[K in keyof typeof translatable]: BuildTranslationArguments<(typeof translatable)[K]>;
|
|
292
|
+
};
|
|
293
|
+
type BuildTranslationArguments<T extends string, Acc extends any[] = []> = T extends `${string}{${bigint}}${infer R}` ? BuildTranslationArguments<R, [...Acc, string]> : Acc;
|
|
294
|
+
export type BuiltinTranslatableStringConstraints = {
|
|
295
|
+
[K in keyof BuiltinTranslatableStringArgs]: TranslationConstraint[BuiltinTranslatableStringArgs[K]["length"]];
|
|
296
|
+
};
|
|
297
|
+
type BuildConstraint<T extends number, Acc extends string = "", U extends number = T> = [T] extends [never] ? `${Acc}${string}` : T extends T ? BuildConstraint<Exclude<U, T>, `${Acc}${string}{${T}}`> : never;
|
|
298
|
+
type TranslationConstraint = [
|
|
299
|
+
string,
|
|
300
|
+
BuildConstraint<0>,
|
|
301
|
+
BuildConstraint<0 | 1>,
|
|
302
|
+
BuildConstraint<0 | 1 | 2>
|
|
303
|
+
];
|
|
304
|
+
export {};
|