@gitbook/react-openapi 1.5.1 → 1.5.2

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/InteractiveSection.js +59 -0
  3. package/dist/Markdown.js +10 -0
  4. package/dist/OpenAPICodeSample.js +219 -0
  5. package/dist/OpenAPICodeSampleInteractive.js +66 -0
  6. package/dist/OpenAPICodeSampleSelector.js +45 -0
  7. package/dist/OpenAPICopyButton.js +39 -0
  8. package/dist/OpenAPIDisclosure.js +30 -0
  9. package/dist/OpenAPIDisclosureGroup.js +75 -0
  10. package/dist/OpenAPIExample.js +41 -0
  11. package/dist/OpenAPIMediaType.js +58 -0
  12. package/dist/OpenAPIOperation.d.ts +15 -0
  13. package/dist/OpenAPIOperation.js +30 -0
  14. package/dist/OpenAPIOperationContext.d.ts +20 -0
  15. package/dist/OpenAPIOperationContext.js +30 -0
  16. package/dist/OpenAPIPath.js +51 -0
  17. package/dist/OpenAPIPrefillContextProvider.d.ts +26 -0
  18. package/dist/OpenAPIPrefillContextProvider.js +25 -0
  19. package/dist/OpenAPIRequestBody.js +28 -0
  20. package/dist/OpenAPIRequestBodyHeaderType.js +23 -0
  21. package/dist/OpenAPIResponse.js +39 -0
  22. package/dist/OpenAPIResponseExample.js +75 -0
  23. package/dist/OpenAPIResponseExampleContent.js +61 -0
  24. package/dist/OpenAPIResponses.js +61 -0
  25. package/dist/OpenAPISchema.js +373 -0
  26. package/dist/OpenAPISchemaName.js +45 -0
  27. package/dist/OpenAPISchemaServer.js +13 -0
  28. package/dist/OpenAPISecurities.js +124 -0
  29. package/dist/OpenAPISelect.js +45 -0
  30. package/dist/OpenAPISpec.js +73 -0
  31. package/dist/OpenAPIWebhook.d.ts +15 -0
  32. package/dist/OpenAPIWebhook.js +28 -0
  33. package/dist/OpenAPIWebhookExample.js +40 -0
  34. package/dist/ScalarApiButton.js +87 -0
  35. package/dist/StaticSection.js +37 -0
  36. package/dist/code-samples.js +275 -0
  37. package/dist/common/OpenAPIColumnSpec.js +23 -0
  38. package/dist/common/OpenAPIOperationDescription.js +18 -0
  39. package/dist/common/OpenAPIStability.js +17 -0
  40. package/dist/common/OpenAPISummary.js +27 -0
  41. package/dist/contentTypeChecks.js +34 -0
  42. package/dist/context.d.ts +71 -0
  43. package/dist/context.js +29 -0
  44. package/dist/decycle.js +41 -0
  45. package/dist/dereference.js +24 -0
  46. package/dist/generateSchemaExample.js +198 -0
  47. package/dist/getDisclosureLabel.js +17 -0
  48. package/dist/getOrCreateStoreByKey.js +22 -0
  49. package/dist/index.d.ts +11 -662
  50. package/dist/index.js +9 -3871
  51. package/dist/json2xml.js +12 -0
  52. package/dist/resolveOpenAPIOperation.d.ts +15 -0
  53. package/dist/resolveOpenAPIOperation.js +102 -0
  54. package/dist/resolveOpenAPIWebhook.d.ts +15 -0
  55. package/dist/resolveOpenAPIWebhook.js +52 -0
  56. package/dist/schemas/OpenAPISchemaItem.js +26 -0
  57. package/dist/schemas/OpenAPISchemas.d.ts +19 -0
  58. package/dist/schemas/OpenAPISchemas.js +57 -0
  59. package/dist/schemas/resolveOpenAPISchemas.d.ts +15 -0
  60. package/dist/schemas/resolveOpenAPISchemas.js +17 -0
  61. package/dist/stringifyOpenAPI.js +14 -0
  62. package/dist/translate.js +43 -0
  63. package/dist/translations/de.js +48 -0
  64. package/dist/translations/en.d.ts +47 -0
  65. package/dist/translations/en.js +48 -0
  66. package/dist/translations/es.js +48 -0
  67. package/dist/translations/fr.js +48 -0
  68. package/dist/translations/index.d.ts +408 -0
  69. package/dist/translations/index.js +31 -0
  70. package/dist/translations/ja.js +48 -0
  71. package/dist/translations/nl.js +48 -0
  72. package/dist/translations/no.js +48 -0
  73. package/dist/translations/pt-br.js +48 -0
  74. package/dist/translations/types.d.ts +7 -0
  75. package/dist/translations/zh.js +48 -0
  76. package/dist/types.d.ts +37 -0
  77. package/dist/util/example.js +84 -0
  78. package/dist/util/server.js +38 -0
  79. package/dist/util/tryit-prefill.js +143 -0
  80. package/dist/utils.js +163 -0
  81. package/package.json +10 -7
@@ -0,0 +1,408 @@
1
+ import { Translation, TranslationKey } from "./types.js";
2
+
3
+ //#region src/translations/index.d.ts
4
+ declare const translations: {
5
+ en: {
6
+ required: string;
7
+ deprecated: string;
8
+ deprecated_and_sunset_on: string;
9
+ stability_experimental: string;
10
+ stability_alpha: string;
11
+ stability_beta: string;
12
+ discriminator: string;
13
+ copy_to_clipboard: string;
14
+ copied: string;
15
+ no_content: string;
16
+ unresolved_reference: string;
17
+ circular_reference: string;
18
+ read_only: string;
19
+ write_only: string;
20
+ optional: string;
21
+ min: string;
22
+ max: string;
23
+ nullable: string;
24
+ body: string;
25
+ payload: string;
26
+ headers: string;
27
+ header: string;
28
+ authorizations: string;
29
+ responses: string;
30
+ response: string;
31
+ path_parameters: string;
32
+ query_parameters: string;
33
+ header_parameters: string;
34
+ attributes: string;
35
+ test_it: string;
36
+ information: string;
37
+ success: string;
38
+ redirect: string;
39
+ error: string;
40
+ show: string;
41
+ hide: string;
42
+ available_items: string;
43
+ required_scopes: string;
44
+ possible_values: string;
45
+ properties: string;
46
+ or: string;
47
+ and: string;
48
+ };
49
+ de: {
50
+ required: string;
51
+ deprecated: string;
52
+ deprecated_and_sunset_on: string;
53
+ stability_experimental: string;
54
+ stability_alpha: string;
55
+ stability_beta: string;
56
+ discriminator: string;
57
+ copy_to_clipboard: string;
58
+ copied: string;
59
+ no_content: string;
60
+ unresolved_reference: string;
61
+ circular_reference: string;
62
+ read_only: string;
63
+ write_only: string;
64
+ optional: string;
65
+ min: string;
66
+ max: string;
67
+ nullable: string;
68
+ body: string;
69
+ payload: string;
70
+ headers: string;
71
+ header: string;
72
+ authorizations: string;
73
+ responses: string;
74
+ response: string;
75
+ path_parameters: string;
76
+ query_parameters: string;
77
+ header_parameters: string;
78
+ attributes: string;
79
+ test_it: string;
80
+ information: string;
81
+ success: string;
82
+ redirect: string;
83
+ error: string;
84
+ show: string;
85
+ hide: string;
86
+ available_items: string;
87
+ required_scopes: string;
88
+ properties: string;
89
+ or: string;
90
+ and: string;
91
+ possible_values: string;
92
+ };
93
+ es: {
94
+ required: string;
95
+ deprecated: string;
96
+ deprecated_and_sunset_on: string;
97
+ stability_experimental: string;
98
+ stability_alpha: string;
99
+ stability_beta: string;
100
+ discriminator: string;
101
+ copy_to_clipboard: string;
102
+ copied: string;
103
+ no_content: string;
104
+ unresolved_reference: string;
105
+ circular_reference: string;
106
+ read_only: string;
107
+ write_only: string;
108
+ optional: string;
109
+ min: string;
110
+ max: string;
111
+ nullable: string;
112
+ body: string;
113
+ payload: string;
114
+ headers: string;
115
+ header: string;
116
+ authorizations: string;
117
+ responses: string;
118
+ response: string;
119
+ path_parameters: string;
120
+ query_parameters: string;
121
+ header_parameters: string;
122
+ attributes: string;
123
+ test_it: string;
124
+ information: string;
125
+ success: string;
126
+ redirect: string;
127
+ error: string;
128
+ show: string;
129
+ hide: string;
130
+ available_items: string;
131
+ required_scopes: string;
132
+ properties: string;
133
+ or: string;
134
+ and: string;
135
+ possible_values: string;
136
+ };
137
+ fr: {
138
+ required: string;
139
+ deprecated: string;
140
+ deprecated_and_sunset_on: string;
141
+ stability_experimental: string;
142
+ stability_alpha: string;
143
+ stability_beta: string;
144
+ discriminator: string;
145
+ copy_to_clipboard: string;
146
+ copied: string;
147
+ no_content: string;
148
+ unresolved_reference: string;
149
+ circular_reference: string;
150
+ read_only: string;
151
+ write_only: string;
152
+ optional: string;
153
+ min: string;
154
+ max: string;
155
+ nullable: string;
156
+ body: string;
157
+ payload: string;
158
+ headers: string;
159
+ header: string;
160
+ authorizations: string;
161
+ responses: string;
162
+ response: string;
163
+ path_parameters: string;
164
+ query_parameters: string;
165
+ header_parameters: string;
166
+ attributes: string;
167
+ test_it: string;
168
+ information: string;
169
+ success: string;
170
+ redirect: string;
171
+ error: string;
172
+ show: string;
173
+ hide: string;
174
+ available_items: string;
175
+ required_scopes: string;
176
+ properties: string;
177
+ or: string;
178
+ and: string;
179
+ possible_values: string;
180
+ };
181
+ ja: {
182
+ required: string;
183
+ deprecated: string;
184
+ deprecated_and_sunset_on: string;
185
+ stability_experimental: string;
186
+ stability_alpha: string;
187
+ stability_beta: string;
188
+ discriminator: string;
189
+ copy_to_clipboard: string;
190
+ copied: string;
191
+ no_content: string;
192
+ unresolved_reference: string;
193
+ circular_reference: string;
194
+ read_only: string;
195
+ write_only: string;
196
+ optional: string;
197
+ min: string;
198
+ max: string;
199
+ nullable: string;
200
+ body: string;
201
+ payload: string;
202
+ headers: string;
203
+ header: string;
204
+ authorizations: string;
205
+ responses: string;
206
+ response: string;
207
+ path_parameters: string;
208
+ query_parameters: string;
209
+ header_parameters: string;
210
+ attributes: string;
211
+ test_it: string;
212
+ information: string;
213
+ success: string;
214
+ redirect: string;
215
+ error: string;
216
+ show: string;
217
+ hide: string;
218
+ available_items: string;
219
+ required_scopes: string;
220
+ properties: string;
221
+ or: string;
222
+ and: string;
223
+ possible_values: string;
224
+ };
225
+ nl: {
226
+ required: string;
227
+ deprecated: string;
228
+ deprecated_and_sunset_on: string;
229
+ stability_experimental: string;
230
+ stability_alpha: string;
231
+ stability_beta: string;
232
+ discriminator: string;
233
+ copy_to_clipboard: string;
234
+ copied: string;
235
+ no_content: string;
236
+ unresolved_reference: string;
237
+ circular_reference: string;
238
+ read_only: string;
239
+ write_only: string;
240
+ optional: string;
241
+ min: string;
242
+ max: string;
243
+ nullable: string;
244
+ body: string;
245
+ payload: string;
246
+ headers: string;
247
+ header: string;
248
+ authorizations: string;
249
+ responses: string;
250
+ response: string;
251
+ path_parameters: string;
252
+ query_parameters: string;
253
+ header_parameters: string;
254
+ attributes: string;
255
+ test_it: string;
256
+ information: string;
257
+ success: string;
258
+ redirect: string;
259
+ error: string;
260
+ show: string;
261
+ hide: string;
262
+ available_items: string;
263
+ required_scopes: string;
264
+ properties: string;
265
+ or: string;
266
+ and: string;
267
+ possible_values: string;
268
+ };
269
+ no: {
270
+ required: string;
271
+ deprecated: string;
272
+ deprecated_and_sunset_on: string;
273
+ stability_experimental: string;
274
+ stability_alpha: string;
275
+ stability_beta: string;
276
+ discriminator: string;
277
+ copy_to_clipboard: string;
278
+ copied: string;
279
+ no_content: string;
280
+ unresolved_reference: string;
281
+ circular_reference: string;
282
+ read_only: string;
283
+ write_only: string;
284
+ optional: string;
285
+ min: string;
286
+ max: string;
287
+ nullable: string;
288
+ body: string;
289
+ payload: string;
290
+ headers: string;
291
+ header: string;
292
+ authorizations: string;
293
+ responses: string;
294
+ response: string;
295
+ path_parameters: string;
296
+ query_parameters: string;
297
+ header_parameters: string;
298
+ attributes: string;
299
+ test_it: string;
300
+ information: string;
301
+ success: string;
302
+ redirect: string;
303
+ error: string;
304
+ show: string;
305
+ hide: string;
306
+ available_items: string;
307
+ required_scopes: string;
308
+ properties: string;
309
+ or: string;
310
+ and: string;
311
+ possible_values: string;
312
+ };
313
+ 'pt-br': {
314
+ required: string;
315
+ deprecated: string;
316
+ deprecated_and_sunset_on: string;
317
+ stability_experimental: string;
318
+ stability_alpha: string;
319
+ stability_beta: string;
320
+ discriminator: string;
321
+ copy_to_clipboard: string;
322
+ copied: string;
323
+ no_content: string;
324
+ unresolved_reference: string;
325
+ circular_reference: string;
326
+ read_only: string;
327
+ write_only: string;
328
+ optional: string;
329
+ min: string;
330
+ max: string;
331
+ nullable: string;
332
+ body: string;
333
+ payload: string;
334
+ headers: string;
335
+ header: string;
336
+ authorizations: string;
337
+ responses: string;
338
+ response: string;
339
+ path_parameters: string;
340
+ query_parameters: string;
341
+ header_parameters: string;
342
+ attributes: string;
343
+ test_it: string;
344
+ information: string;
345
+ success: string;
346
+ redirect: string;
347
+ error: string;
348
+ show: string;
349
+ hide: string;
350
+ available_items: string;
351
+ required_scopes: string;
352
+ properties: string;
353
+ or: string;
354
+ and: string;
355
+ possible_values: string;
356
+ };
357
+ zh: {
358
+ required: string;
359
+ deprecated: string;
360
+ deprecated_and_sunset_on: string;
361
+ stability_experimental: string;
362
+ stability_alpha: string;
363
+ stability_beta: string;
364
+ discriminator: string;
365
+ copy_to_clipboard: string;
366
+ copied: string;
367
+ no_content: string;
368
+ unresolved_reference: string;
369
+ circular_reference: string;
370
+ read_only: string;
371
+ write_only: string;
372
+ optional: string;
373
+ min: string;
374
+ max: string;
375
+ nullable: string;
376
+ body: string;
377
+ payload: string;
378
+ headers: string;
379
+ header: string;
380
+ authorizations: string;
381
+ responses: string;
382
+ response: string;
383
+ path_parameters: string;
384
+ query_parameters: string;
385
+ header_parameters: string;
386
+ attributes: string;
387
+ test_it: string;
388
+ information: string;
389
+ success: string;
390
+ redirect: string;
391
+ error: string;
392
+ show: string;
393
+ hide: string;
394
+ available_items: string;
395
+ required_scopes: string;
396
+ properties: string;
397
+ or: string;
398
+ and: string;
399
+ possible_values: string;
400
+ };
401
+ };
402
+ type TranslationLocale = keyof typeof translations;
403
+ /**
404
+ * Check if the locale is valid.
405
+ */
406
+ declare function checkIsValidLocale(locale: string): locale is TranslationLocale;
407
+ //#endregion
408
+ export { TranslationLocale, checkIsValidLocale };
@@ -0,0 +1,31 @@
1
+ import { de } from "./de.js";
2
+ import { en } from "./en.js";
3
+ import { es } from "./es.js";
4
+ import { fr } from "./fr.js";
5
+ import { ja } from "./ja.js";
6
+ import { nl } from "./nl.js";
7
+ import { no } from "./no.js";
8
+ import { pt_br } from "./pt-br.js";
9
+ import { zh } from "./zh.js";
10
+
11
+ //#region src/translations/index.ts
12
+ const translations = {
13
+ en,
14
+ de,
15
+ es,
16
+ fr,
17
+ ja,
18
+ nl,
19
+ no,
20
+ "pt-br": pt_br,
21
+ zh
22
+ };
23
+ /**
24
+ * Check if the locale is valid.
25
+ */
26
+ function checkIsValidLocale(locale) {
27
+ return Object.prototype.hasOwnProperty.call(translations, locale);
28
+ }
29
+
30
+ //#endregion
31
+ export { checkIsValidLocale, translations };
@@ -0,0 +1,48 @@
1
+ //#region src/translations/ja.ts
2
+ const ja = {
3
+ required: "必須",
4
+ deprecated: "非推奨",
5
+ deprecated_and_sunset_on: "この操作は非推奨であり、${1}に廃止されます。",
6
+ stability_experimental: "実験的",
7
+ stability_alpha: "アルファ",
8
+ stability_beta: "ベータ",
9
+ discriminator: "識別子",
10
+ copy_to_clipboard: "クリップボードにコピー",
11
+ copied: "コピー済み",
12
+ no_content: "コンテンツなし",
13
+ unresolved_reference: "未解決の参照",
14
+ circular_reference: "循環参照",
15
+ read_only: "読み取り専用",
16
+ write_only: "書き込み専用",
17
+ optional: "オプション",
18
+ min: "最小",
19
+ max: "最大",
20
+ nullable: "ヌル許容",
21
+ body: "本文",
22
+ payload: "ペイロード",
23
+ headers: "ヘッダー",
24
+ header: "ヘッダー",
25
+ authorizations: "認可",
26
+ responses: "レスポンス",
27
+ response: "レスポンス",
28
+ path_parameters: "パスパラメータ",
29
+ query_parameters: "クエリパラメータ",
30
+ header_parameters: "ヘッダーパラメータ",
31
+ attributes: "属性",
32
+ test_it: "テストする",
33
+ information: "情報",
34
+ success: "成功",
35
+ redirect: "リダイレクト",
36
+ error: "エラー",
37
+ show: "${1}を表示",
38
+ hide: "${1}を非表示",
39
+ available_items: "利用可能なアイテム",
40
+ required_scopes: "必須スコープ",
41
+ properties: "プロパティ",
42
+ or: "または",
43
+ and: "かつ",
44
+ possible_values: "可能な値"
45
+ };
46
+
47
+ //#endregion
48
+ export { ja };
@@ -0,0 +1,48 @@
1
+ //#region src/translations/nl.ts
2
+ const nl = {
3
+ required: "Vereist",
4
+ deprecated: "Verouderd",
5
+ deprecated_and_sunset_on: "Deze bewerking is verouderd en wordt op ${1} beëindigd.",
6
+ stability_experimental: "Experimenteel",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Bèta",
9
+ discriminator: "Discriminator",
10
+ copy_to_clipboard: "Kopiëren naar klembord",
11
+ copied: "Gekopieerd",
12
+ no_content: "Geen inhoud",
13
+ unresolved_reference: "Onopgeloste verwijzing",
14
+ circular_reference: "Circulaire verwijzing",
15
+ read_only: "Alleen lezen",
16
+ write_only: "Alleen schrijven",
17
+ optional: "Optioneel",
18
+ min: "Min",
19
+ max: "Max",
20
+ nullable: "Null toegestaan",
21
+ body: "Body",
22
+ payload: "Payload",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisaties",
26
+ responses: "Reacties",
27
+ response: "Reactie",
28
+ path_parameters: "Padparameters",
29
+ query_parameters: "Queryparameters",
30
+ header_parameters: "Headerparameters",
31
+ attributes: "Attributen",
32
+ test_it: "Test het",
33
+ information: "Informatie",
34
+ success: "Succes",
35
+ redirect: "Omleiding",
36
+ error: "Fout",
37
+ show: "Toon ${1}",
38
+ hide: "Verberg ${1}",
39
+ available_items: "Beschikbare items",
40
+ required_scopes: "Vereiste scopes",
41
+ properties: "Eigenschappen",
42
+ or: "of",
43
+ and: "en",
44
+ possible_values: "Mogelijke waarden"
45
+ };
46
+
47
+ //#endregion
48
+ export { nl };
@@ -0,0 +1,48 @@
1
+ //#region src/translations/no.ts
2
+ const no = {
3
+ required: "Påkrevd",
4
+ deprecated: "Foreldet",
5
+ deprecated_and_sunset_on: "Denne operasjonen er foreldet og vil bli avviklet den ${1}.",
6
+ stability_experimental: "Eksperimentell",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Diskriminator",
10
+ copy_to_clipboard: "Kopier til utklippstavle",
11
+ copied: "Kopiert",
12
+ no_content: "Ingen innhold",
13
+ unresolved_reference: "Uavklart referanse",
14
+ circular_reference: "Sirkulær referanse",
15
+ read_only: "Skrivebeskyttet",
16
+ write_only: "Kun skriving",
17
+ optional: "Valgfri",
18
+ min: "Min",
19
+ max: "Maks",
20
+ nullable: "Kan være null",
21
+ body: "Brødtekst",
22
+ payload: "Nyttelast",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisasjoner",
26
+ responses: "Responser",
27
+ response: "Respons",
28
+ path_parameters: "Sti-parametere",
29
+ query_parameters: "Forespørselsparametere",
30
+ header_parameters: "Header-parametere",
31
+ attributes: "Attributter",
32
+ test_it: "Test det",
33
+ information: "Informasjon",
34
+ success: "Suksess",
35
+ redirect: "Viderekobling",
36
+ error: "Feil",
37
+ show: "Vis ${1}",
38
+ hide: "Skjul ${1}",
39
+ available_items: "Tilgjengelige elementer",
40
+ required_scopes: "Påkrevde scopes",
41
+ properties: "Egenskaper",
42
+ or: "eller",
43
+ and: "og",
44
+ possible_values: "Mulige verdier"
45
+ };
46
+
47
+ //#endregion
48
+ export { no };
@@ -0,0 +1,48 @@
1
+ //#region src/translations/pt-br.ts
2
+ const pt_br = {
3
+ required: "Obrigatório",
4
+ deprecated: "Obsoleto",
5
+ deprecated_and_sunset_on: "Esta operação está obsoleta e será descontinuada em ${1}.",
6
+ stability_experimental: "Experimental",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Discriminador",
10
+ copy_to_clipboard: "Copiar para a área de transferência",
11
+ copied: "Copiado",
12
+ no_content: "Sem conteúdo",
13
+ unresolved_reference: "Referência não resolvida",
14
+ circular_reference: "Referência circular",
15
+ read_only: "Somente leitura",
16
+ write_only: "Somente escrita",
17
+ optional: "Opcional",
18
+ min: "Mín",
19
+ max: "Máx",
20
+ nullable: "Nulo",
21
+ body: "Corpo",
22
+ payload: "Carga útil",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorizações",
26
+ responses: "Respostas",
27
+ response: "Resposta",
28
+ path_parameters: "Parâmetros de rota",
29
+ query_parameters: "Parâmetros de consulta",
30
+ header_parameters: "Parâmetros de cabeçalho",
31
+ attributes: "Atributos",
32
+ test_it: "Testar",
33
+ information: "Informação",
34
+ success: "Sucesso",
35
+ redirect: "Redirecionamento",
36
+ error: "Erro",
37
+ show: "Mostrar ${1}",
38
+ hide: "Ocultar ${1}",
39
+ available_items: "Itens disponíveis",
40
+ required_scopes: "Scopes obrigatórios",
41
+ properties: "Propriedades",
42
+ or: "ou",
43
+ and: "e",
44
+ possible_values: "Valores possíveis"
45
+ };
46
+
47
+ //#endregion
48
+ export { pt_br };
@@ -0,0 +1,7 @@
1
+ import { en } from "./en.js";
2
+
3
+ //#region src/translations/types.d.ts
4
+ type TranslationKey = keyof typeof en;
5
+ type Translation = { [key in TranslationKey]: string };
6
+ //#endregion
7
+ export { Translation, TranslationKey };
@@ -0,0 +1,48 @@
1
+ //#region src/translations/zh.ts
2
+ const zh = {
3
+ required: "必填",
4
+ deprecated: "已弃用",
5
+ deprecated_and_sunset_on: "此操作已弃用,将于 ${1} 停止使用。",
6
+ stability_experimental: "实验性",
7
+ stability_alpha: "Alpha",
8
+ stability_beta: "Beta",
9
+ discriminator: "判别器",
10
+ copy_to_clipboard: "复制到剪贴板",
11
+ copied: "已复制",
12
+ no_content: "无内容",
13
+ unresolved_reference: "未解析的引用",
14
+ circular_reference: "循环引用",
15
+ read_only: "只读",
16
+ write_only: "只写",
17
+ optional: "可选",
18
+ min: "最小值",
19
+ max: "最大值",
20
+ nullable: "可为 null",
21
+ body: "请求体",
22
+ payload: "有效载荷",
23
+ headers: "头字段",
24
+ header: "头部",
25
+ authorizations: "授权",
26
+ responses: "响应",
27
+ response: "响应",
28
+ path_parameters: "路径参数",
29
+ query_parameters: "查询参数",
30
+ header_parameters: "头参数",
31
+ attributes: "属性",
32
+ test_it: "测试一下",
33
+ information: "信息",
34
+ success: "成功",
35
+ redirect: "重定向",
36
+ error: "错误",
37
+ show: "显示${1}",
38
+ hide: "隐藏${1}",
39
+ available_items: "可用项",
40
+ required_scopes: "必需范围",
41
+ properties: "属性",
42
+ or: "或",
43
+ and: "和",
44
+ possible_values: "可能的值"
45
+ };
46
+
47
+ //#endregion
48
+ export { zh };