@gitbook/react-openapi 1.1.9 → 1.2.0
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/CHANGELOG.md +27 -0
- package/dist/InteractiveSection.d.ts +4 -0
- package/dist/InteractiveSection.jsx +14 -13
- package/dist/OpenAPICodeSample.d.ts +3 -2
- package/dist/OpenAPICodeSample.jsx +8 -12
- package/dist/OpenAPICodeSampleInteractive.d.ts +3 -0
- package/dist/OpenAPICodeSampleInteractive.jsx +37 -49
- package/dist/OpenAPICodeSampleSelector.d.ts +14 -0
- package/dist/OpenAPICodeSampleSelector.jsx +44 -0
- package/dist/OpenAPICopyButton.d.ts +2 -0
- package/dist/OpenAPICopyButton.jsx +5 -2
- package/dist/OpenAPIDisclosure.d.ts +4 -3
- package/dist/OpenAPIDisclosure.jsx +8 -11
- package/dist/OpenAPIDisclosureGroup.d.ts +7 -3
- package/dist/OpenAPIDisclosureGroup.jsx +18 -18
- package/dist/OpenAPIExample.d.ts +16 -0
- package/dist/OpenAPIExample.jsx +36 -0
- package/dist/OpenAPIMediaType.d.ts +21 -0
- package/dist/OpenAPIMediaType.jsx +61 -0
- package/dist/OpenAPIOperation.d.ts +3 -2
- package/dist/OpenAPIOperation.jsx +9 -72
- package/dist/OpenAPIOperationDescription.d.ts +9 -0
- package/dist/OpenAPIOperationDescription.jsx +22 -0
- package/dist/OpenAPIOperationStability.d.ts +9 -0
- package/dist/OpenAPIOperationStability.jsx +27 -0
- package/dist/OpenAPIPath.d.ts +12 -2
- package/dist/OpenAPIPath.jsx +10 -4
- package/dist/OpenAPIRequestBody.d.ts +3 -1
- package/dist/OpenAPIRequestBody.jsx +4 -3
- package/dist/OpenAPIResponse.d.ts +1 -1
- package/dist/OpenAPIResponse.jsx +1 -1
- package/dist/OpenAPIResponseExample.d.ts +4 -3
- package/dist/OpenAPIResponseExample.jsx +24 -154
- package/dist/OpenAPIResponseExampleContent.d.ts +19 -0
- package/dist/OpenAPIResponseExampleContent.jsx +57 -0
- package/dist/OpenAPIResponses.d.ts +1 -1
- package/dist/OpenAPIResponses.jsx +49 -36
- package/dist/OpenAPISchema.d.ts +1 -1
- package/dist/OpenAPISchema.jsx +121 -20
- package/dist/OpenAPISchemaName.d.ts +2 -0
- package/dist/OpenAPISchemaName.jsx +21 -17
- package/dist/OpenAPISchemaServer.d.ts +1 -1
- package/dist/OpenAPISecurities.d.ts +2 -1
- package/dist/OpenAPISecurities.jsx +11 -10
- package/dist/OpenAPISelect.d.ts +22 -0
- package/dist/OpenAPISelect.jsx +43 -0
- package/dist/OpenAPISpec.d.ts +3 -2
- package/dist/OpenAPISpec.jsx +11 -9
- package/dist/OpenAPITabs.jsx +9 -9
- package/dist/OpenAPIWebhook.d.ts +10 -0
- package/dist/OpenAPIWebhook.jsx +23 -0
- package/dist/OpenAPIWebhookExample.d.ts +6 -0
- package/dist/OpenAPIWebhookExample.jsx +41 -0
- package/dist/ScalarApiButton.d.ts +2 -0
- package/dist/ScalarApiButton.jsx +4 -3
- package/dist/StaticSection.d.ts +4 -1
- package/dist/StaticSection.jsx +13 -4
- package/dist/code-samples.js +57 -39
- package/dist/common/OpenAPIColumnSpec.d.ts +6 -0
- package/dist/common/OpenAPIColumnSpec.jsx +20 -0
- package/dist/common/OpenAPIOperationDescription.d.ts +6 -0
- package/dist/common/OpenAPIOperationDescription.jsx +19 -0
- package/dist/common/OpenAPIStability.d.ts +4 -0
- package/dist/common/OpenAPIStability.jsx +15 -0
- package/dist/common/OpenAPISummary.d.ts +6 -0
- package/dist/common/OpenAPISummary.jsx +30 -0
- package/dist/context.d.ts +75 -0
- package/dist/context.js +43 -0
- package/dist/generateSchemaExample.js +4 -0
- package/dist/getOrCreateStoreByKey.d.ts +10 -0
- package/dist/getOrCreateStoreByKey.js +19 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -0
- package/dist/resolveOpenAPIOperation.js +10 -5
- package/dist/resolveOpenAPIWebhook.d.ts +11 -0
- package/dist/resolveOpenAPIWebhook.js +127 -0
- package/dist/schemas/OpenAPISchemas.d.ts +5 -6
- package/dist/schemas/OpenAPISchemas.jsx +52 -49
- package/dist/schemas/resolveOpenAPISchemas.d.ts +4 -3
- package/dist/schemas/resolveOpenAPISchemas.js +0 -1
- package/dist/stringifyOpenAPI.d.ts +1 -1
- package/dist/stringifyOpenAPI.js +6 -3
- package/dist/translate.d.ts +10 -0
- package/dist/translate.jsx +75 -0
- package/dist/translations/de.d.ts +37 -0
- package/dist/translations/de.js +37 -0
- package/dist/translations/en.d.ts +37 -0
- package/dist/translations/en.js +37 -0
- package/dist/translations/es.d.ts +37 -0
- package/dist/translations/es.js +37 -0
- package/dist/translations/fr.d.ts +37 -0
- package/dist/translations/fr.js +37 -0
- package/dist/translations/index.d.ts +341 -0
- package/dist/translations/index.js +27 -0
- package/dist/translations/ja.d.ts +37 -0
- package/dist/translations/ja.js +37 -0
- package/dist/translations/nl.d.ts +37 -0
- package/dist/translations/nl.js +37 -0
- package/dist/translations/no.d.ts +37 -0
- package/dist/translations/no.js +37 -0
- package/dist/translations/pt-br.d.ts +37 -0
- package/dist/translations/pt-br.js +37 -0
- package/dist/translations/types.d.ts +5 -0
- package/dist/translations/types.js +1 -0
- package/dist/translations/zh.d.ts +37 -0
- package/dist/translations/zh.js +37 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types.d.ts +12 -48
- package/dist/util/example.d.ts +35 -0
- package/dist/util/example.jsx +103 -0
- package/dist/utils.d.ts +18 -0
- package/dist/utils.js +57 -0
- package/package.json +3 -3
- package/src/InteractiveSection.tsx +22 -18
- package/src/OpenAPICodeSample.tsx +26 -15
- package/src/OpenAPICodeSampleInteractive.tsx +67 -70
- package/src/OpenAPICodeSampleSelector.tsx +94 -0
- package/src/OpenAPICopyButton.tsx +7 -2
- package/src/OpenAPIDisclosure.tsx +20 -22
- package/src/OpenAPIDisclosureGroup.tsx +40 -22
- package/src/OpenAPIExample.tsx +55 -0
- package/src/OpenAPIMediaType.tsx +139 -0
- package/src/OpenAPIOperation.tsx +11 -104
- package/src/OpenAPIOperationDescription.tsx +34 -0
- package/src/OpenAPIOperationStability.tsx +39 -0
- package/src/OpenAPIPath.tsx +26 -6
- package/src/OpenAPIRequestBody.tsx +9 -4
- package/src/OpenAPIResponse.tsx +2 -2
- package/src/OpenAPIResponseExample.tsx +41 -215
- package/src/OpenAPIResponseExampleContent.tsx +123 -0
- package/src/OpenAPIResponses.tsx +83 -62
- package/src/OpenAPISchema.test.ts +80 -0
- package/src/OpenAPISchema.tsx +149 -25
- package/src/OpenAPISchemaName.tsx +28 -19
- package/src/OpenAPISchemaServer.tsx +1 -1
- package/src/OpenAPISecurities.tsx +46 -12
- package/src/OpenAPISelect.tsx +96 -0
- package/src/OpenAPISpec.tsx +21 -10
- package/src/OpenAPITabs.tsx +9 -9
- package/src/OpenAPIWebhook.tsx +33 -0
- package/src/OpenAPIWebhookExample.tsx +60 -0
- package/src/ScalarApiButton.tsx +6 -6
- package/src/StaticSection.tsx +37 -5
- package/src/code-samples.test.ts +3 -1
- package/src/code-samples.ts +67 -54
- package/src/common/OpenAPIColumnSpec.tsx +31 -0
- package/src/common/OpenAPIOperationDescription.tsx +31 -0
- package/src/common/OpenAPIStability.tsx +23 -0
- package/src/common/OpenAPISummary.tsx +45 -0
- package/src/context.ts +99 -0
- package/src/generateSchemaExample.test.ts +1020 -0
- package/src/generateSchemaExample.ts +5 -0
- package/src/getOrCreateStoreByKey.ts +33 -0
- package/src/index.ts +5 -1
- package/src/resolveOpenAPIOperation.ts +14 -3
- package/src/resolveOpenAPIWebhook.ts +99 -0
- package/src/schemas/OpenAPISchemas.tsx +76 -71
- package/src/schemas/resolveOpenAPISchemas.ts +4 -5
- package/src/stringifyOpenAPI.ts +11 -3
- package/src/translate.tsx +80 -0
- package/src/translations/de.ts +37 -0
- package/src/translations/en.ts +37 -0
- package/src/translations/es.ts +37 -0
- package/src/translations/fr.ts +37 -0
- package/src/translations/index.ts +33 -0
- package/src/translations/ja.ts +37 -0
- package/src/translations/nl.ts +37 -0
- package/src/translations/no.ts +37 -0
- package/src/translations/pt-br.ts +37 -0
- package/src/translations/types.ts +7 -0
- package/src/translations/zh.ts +37 -0
- package/src/types.ts +11 -46
- package/src/util/example.tsx +129 -0
- package/src/utils.ts +67 -0
- package/dist/useSyncedTabsGlobalState.d.ts +0 -10
- package/dist/useSyncedTabsGlobalState.js +0 -20
- package/src/useSyncedTabsGlobalState.ts +0 -35
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const en: {
|
|
2
|
+
required: string;
|
|
3
|
+
deprecated: string;
|
|
4
|
+
deprecated_and_sunset_on: string;
|
|
5
|
+
stability_experimental: string;
|
|
6
|
+
stability_alpha: string;
|
|
7
|
+
stability_beta: string;
|
|
8
|
+
copy_to_clipboard: string;
|
|
9
|
+
copied: string;
|
|
10
|
+
no_content: string;
|
|
11
|
+
unresolved_reference: string;
|
|
12
|
+
circular_reference: string;
|
|
13
|
+
read_only: string;
|
|
14
|
+
write_only: string;
|
|
15
|
+
optional: string;
|
|
16
|
+
min: string;
|
|
17
|
+
max: string;
|
|
18
|
+
nullable: string;
|
|
19
|
+
body: string;
|
|
20
|
+
payload: string;
|
|
21
|
+
headers: string;
|
|
22
|
+
authorizations: string;
|
|
23
|
+
responses: string;
|
|
24
|
+
path_parameters: string;
|
|
25
|
+
query_parameters: string;
|
|
26
|
+
header_parameters: string;
|
|
27
|
+
attributes: string;
|
|
28
|
+
test_it: string;
|
|
29
|
+
information: string;
|
|
30
|
+
success: string;
|
|
31
|
+
redirect: string;
|
|
32
|
+
error: string;
|
|
33
|
+
show: string;
|
|
34
|
+
hide: string;
|
|
35
|
+
available_items: string;
|
|
36
|
+
child_attributes: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export var en = {
|
|
2
|
+
required: 'Required',
|
|
3
|
+
deprecated: 'Deprecated',
|
|
4
|
+
deprecated_and_sunset_on: 'This operation is deprecated and will be sunset on ${1}.',
|
|
5
|
+
stability_experimental: 'Experimental',
|
|
6
|
+
stability_alpha: 'Alpha',
|
|
7
|
+
stability_beta: 'Beta',
|
|
8
|
+
copy_to_clipboard: 'Copy to clipboard',
|
|
9
|
+
copied: 'Copied',
|
|
10
|
+
no_content: 'No content',
|
|
11
|
+
unresolved_reference: 'Unresolved reference',
|
|
12
|
+
circular_reference: 'Circular reference',
|
|
13
|
+
read_only: 'Read-only',
|
|
14
|
+
write_only: 'Write-only',
|
|
15
|
+
optional: 'Optional',
|
|
16
|
+
min: 'Min',
|
|
17
|
+
max: 'Max',
|
|
18
|
+
nullable: 'Nullable',
|
|
19
|
+
body: 'Body',
|
|
20
|
+
payload: 'Payload',
|
|
21
|
+
headers: 'Headers',
|
|
22
|
+
authorizations: 'Authorizations',
|
|
23
|
+
responses: 'Responses',
|
|
24
|
+
path_parameters: 'Path parameters',
|
|
25
|
+
query_parameters: 'Query parameters',
|
|
26
|
+
header_parameters: 'Header parameters',
|
|
27
|
+
attributes: 'Attributes',
|
|
28
|
+
test_it: 'Test it',
|
|
29
|
+
information: 'Information',
|
|
30
|
+
success: 'Success',
|
|
31
|
+
redirect: 'Redirect',
|
|
32
|
+
error: 'Error',
|
|
33
|
+
show: 'Show',
|
|
34
|
+
hide: 'Hide',
|
|
35
|
+
available_items: 'Available items',
|
|
36
|
+
child_attributes: 'Child attributes',
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const es: {
|
|
2
|
+
required: string;
|
|
3
|
+
deprecated: string;
|
|
4
|
+
deprecated_and_sunset_on: string;
|
|
5
|
+
stability_experimental: string;
|
|
6
|
+
stability_alpha: string;
|
|
7
|
+
stability_beta: string;
|
|
8
|
+
copy_to_clipboard: string;
|
|
9
|
+
copied: string;
|
|
10
|
+
no_content: string;
|
|
11
|
+
unresolved_reference: string;
|
|
12
|
+
circular_reference: string;
|
|
13
|
+
read_only: string;
|
|
14
|
+
write_only: string;
|
|
15
|
+
optional: string;
|
|
16
|
+
min: string;
|
|
17
|
+
max: string;
|
|
18
|
+
nullable: string;
|
|
19
|
+
body: string;
|
|
20
|
+
payload: string;
|
|
21
|
+
headers: string;
|
|
22
|
+
authorizations: string;
|
|
23
|
+
responses: string;
|
|
24
|
+
path_parameters: string;
|
|
25
|
+
query_parameters: string;
|
|
26
|
+
header_parameters: string;
|
|
27
|
+
attributes: string;
|
|
28
|
+
test_it: string;
|
|
29
|
+
information: string;
|
|
30
|
+
success: string;
|
|
31
|
+
redirect: string;
|
|
32
|
+
error: string;
|
|
33
|
+
show: string;
|
|
34
|
+
hide: string;
|
|
35
|
+
available_items: string;
|
|
36
|
+
child_attributes: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export var es = {
|
|
2
|
+
required: 'Requerido',
|
|
3
|
+
deprecated: 'Obsoleto',
|
|
4
|
+
deprecated_and_sunset_on: 'Esta operación está obsoleta y se retirará el ${1}.',
|
|
5
|
+
stability_experimental: 'Experimental',
|
|
6
|
+
stability_alpha: 'Alfa',
|
|
7
|
+
stability_beta: 'Beta',
|
|
8
|
+
copy_to_clipboard: 'Copiar al portapapeles',
|
|
9
|
+
copied: 'Copiado',
|
|
10
|
+
no_content: 'Sin contenido',
|
|
11
|
+
unresolved_reference: 'Referencia no resuelta',
|
|
12
|
+
circular_reference: 'Referencia circular',
|
|
13
|
+
read_only: 'Solo lectura',
|
|
14
|
+
write_only: 'Solo escritura',
|
|
15
|
+
optional: 'Opcional',
|
|
16
|
+
min: 'Mín',
|
|
17
|
+
max: 'Máx',
|
|
18
|
+
nullable: 'Nulo',
|
|
19
|
+
body: 'Cuerpo',
|
|
20
|
+
payload: 'Caga útil',
|
|
21
|
+
headers: 'Encabezados',
|
|
22
|
+
authorizations: 'Autorizaciones',
|
|
23
|
+
responses: 'Respuestas',
|
|
24
|
+
path_parameters: 'Parámetros de ruta',
|
|
25
|
+
query_parameters: 'Parámetros de consulta',
|
|
26
|
+
header_parameters: 'Parámetros de encabezado',
|
|
27
|
+
attributes: 'Atributos',
|
|
28
|
+
test_it: 'Pruébalo',
|
|
29
|
+
information: 'Información',
|
|
30
|
+
success: 'Éxito',
|
|
31
|
+
redirect: 'Redirección',
|
|
32
|
+
error: 'Error',
|
|
33
|
+
show: 'Mostrar',
|
|
34
|
+
hide: 'Ocultar',
|
|
35
|
+
available_items: 'Elementos disponibles',
|
|
36
|
+
child_attributes: 'Atributos secundarios',
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const fr: {
|
|
2
|
+
required: string;
|
|
3
|
+
deprecated: string;
|
|
4
|
+
deprecated_and_sunset_on: string;
|
|
5
|
+
stability_experimental: string;
|
|
6
|
+
stability_alpha: string;
|
|
7
|
+
stability_beta: string;
|
|
8
|
+
copy_to_clipboard: string;
|
|
9
|
+
copied: string;
|
|
10
|
+
no_content: string;
|
|
11
|
+
unresolved_reference: string;
|
|
12
|
+
circular_reference: string;
|
|
13
|
+
read_only: string;
|
|
14
|
+
write_only: string;
|
|
15
|
+
optional: string;
|
|
16
|
+
min: string;
|
|
17
|
+
max: string;
|
|
18
|
+
nullable: string;
|
|
19
|
+
body: string;
|
|
20
|
+
payload: string;
|
|
21
|
+
headers: string;
|
|
22
|
+
authorizations: string;
|
|
23
|
+
responses: string;
|
|
24
|
+
path_parameters: string;
|
|
25
|
+
query_parameters: string;
|
|
26
|
+
header_parameters: string;
|
|
27
|
+
attributes: string;
|
|
28
|
+
test_it: string;
|
|
29
|
+
information: string;
|
|
30
|
+
success: string;
|
|
31
|
+
redirect: string;
|
|
32
|
+
error: string;
|
|
33
|
+
show: string;
|
|
34
|
+
hide: string;
|
|
35
|
+
available_items: string;
|
|
36
|
+
child_attributes: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export var fr = {
|
|
2
|
+
required: 'Requis',
|
|
3
|
+
deprecated: 'Obsolète',
|
|
4
|
+
deprecated_and_sunset_on: 'Cette opération est obsolète et sera supprimée le ${1}.',
|
|
5
|
+
stability_experimental: 'Expérimental',
|
|
6
|
+
stability_alpha: 'Alpha',
|
|
7
|
+
stability_beta: 'Bêta',
|
|
8
|
+
copy_to_clipboard: 'Copier dans le presse-papiers',
|
|
9
|
+
copied: 'Copié',
|
|
10
|
+
no_content: 'Aucun contenu',
|
|
11
|
+
unresolved_reference: 'Référence non résolue',
|
|
12
|
+
circular_reference: 'Référence circulaire',
|
|
13
|
+
read_only: 'Lecture seule',
|
|
14
|
+
write_only: 'Écriture seule',
|
|
15
|
+
optional: 'Optionnel',
|
|
16
|
+
min: 'Min',
|
|
17
|
+
max: 'Max',
|
|
18
|
+
nullable: 'Nullable',
|
|
19
|
+
body: 'Corps',
|
|
20
|
+
payload: 'Charge utile',
|
|
21
|
+
headers: 'En-têtes',
|
|
22
|
+
authorizations: 'Autorisations',
|
|
23
|
+
responses: 'Réponses',
|
|
24
|
+
path_parameters: 'Paramètres de chemin',
|
|
25
|
+
query_parameters: 'Paramètres de requête',
|
|
26
|
+
header_parameters: 'Paramètres d’en-tête',
|
|
27
|
+
attributes: 'Attributs',
|
|
28
|
+
test_it: 'Tester',
|
|
29
|
+
information: 'Information',
|
|
30
|
+
success: 'Succès',
|
|
31
|
+
redirect: 'Redirection',
|
|
32
|
+
error: 'Erreur',
|
|
33
|
+
show: 'Afficher',
|
|
34
|
+
hide: 'Masquer',
|
|
35
|
+
available_items: 'Éléments disponibles',
|
|
36
|
+
child_attributes: 'Attributs enfants',
|
|
37
|
+
};
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export declare const translations: {
|
|
3
|
+
en: {
|
|
4
|
+
required: string;
|
|
5
|
+
deprecated: string;
|
|
6
|
+
deprecated_and_sunset_on: string;
|
|
7
|
+
stability_experimental: string;
|
|
8
|
+
stability_alpha: string;
|
|
9
|
+
stability_beta: string;
|
|
10
|
+
copy_to_clipboard: string;
|
|
11
|
+
copied: string;
|
|
12
|
+
no_content: string;
|
|
13
|
+
unresolved_reference: string;
|
|
14
|
+
circular_reference: string;
|
|
15
|
+
read_only: string;
|
|
16
|
+
write_only: string;
|
|
17
|
+
optional: string;
|
|
18
|
+
min: string;
|
|
19
|
+
max: string;
|
|
20
|
+
nullable: string;
|
|
21
|
+
body: string;
|
|
22
|
+
payload: string;
|
|
23
|
+
headers: string;
|
|
24
|
+
authorizations: string;
|
|
25
|
+
responses: string;
|
|
26
|
+
path_parameters: string;
|
|
27
|
+
query_parameters: string;
|
|
28
|
+
header_parameters: string;
|
|
29
|
+
attributes: string;
|
|
30
|
+
test_it: string;
|
|
31
|
+
information: string;
|
|
32
|
+
success: string;
|
|
33
|
+
redirect: string;
|
|
34
|
+
error: string;
|
|
35
|
+
show: string;
|
|
36
|
+
hide: string;
|
|
37
|
+
available_items: string;
|
|
38
|
+
child_attributes: string;
|
|
39
|
+
};
|
|
40
|
+
de: {
|
|
41
|
+
required: string;
|
|
42
|
+
deprecated: string;
|
|
43
|
+
deprecated_and_sunset_on: string;
|
|
44
|
+
stability_experimental: string;
|
|
45
|
+
stability_alpha: string;
|
|
46
|
+
stability_beta: string;
|
|
47
|
+
copy_to_clipboard: string;
|
|
48
|
+
copied: string;
|
|
49
|
+
no_content: string;
|
|
50
|
+
unresolved_reference: string;
|
|
51
|
+
circular_reference: string;
|
|
52
|
+
read_only: string;
|
|
53
|
+
write_only: string;
|
|
54
|
+
optional: string;
|
|
55
|
+
min: string;
|
|
56
|
+
max: string;
|
|
57
|
+
nullable: string;
|
|
58
|
+
body: string;
|
|
59
|
+
payload: string;
|
|
60
|
+
headers: string;
|
|
61
|
+
authorizations: string;
|
|
62
|
+
responses: string;
|
|
63
|
+
path_parameters: string;
|
|
64
|
+
query_parameters: string;
|
|
65
|
+
header_parameters: string;
|
|
66
|
+
attributes: string;
|
|
67
|
+
test_it: string;
|
|
68
|
+
information: string;
|
|
69
|
+
success: string;
|
|
70
|
+
redirect: string;
|
|
71
|
+
error: string;
|
|
72
|
+
show: string;
|
|
73
|
+
hide: string;
|
|
74
|
+
available_items: string;
|
|
75
|
+
child_attributes: string;
|
|
76
|
+
};
|
|
77
|
+
es: {
|
|
78
|
+
required: string;
|
|
79
|
+
deprecated: string;
|
|
80
|
+
deprecated_and_sunset_on: string;
|
|
81
|
+
stability_experimental: string;
|
|
82
|
+
stability_alpha: string;
|
|
83
|
+
stability_beta: string;
|
|
84
|
+
copy_to_clipboard: string;
|
|
85
|
+
copied: string;
|
|
86
|
+
no_content: string;
|
|
87
|
+
unresolved_reference: string;
|
|
88
|
+
circular_reference: string;
|
|
89
|
+
read_only: string;
|
|
90
|
+
write_only: string;
|
|
91
|
+
optional: string;
|
|
92
|
+
min: string;
|
|
93
|
+
max: string;
|
|
94
|
+
nullable: string;
|
|
95
|
+
body: string;
|
|
96
|
+
payload: string;
|
|
97
|
+
headers: string;
|
|
98
|
+
authorizations: string;
|
|
99
|
+
responses: string;
|
|
100
|
+
path_parameters: string;
|
|
101
|
+
query_parameters: string;
|
|
102
|
+
header_parameters: string;
|
|
103
|
+
attributes: string;
|
|
104
|
+
test_it: string;
|
|
105
|
+
information: string;
|
|
106
|
+
success: string;
|
|
107
|
+
redirect: string;
|
|
108
|
+
error: string;
|
|
109
|
+
show: string;
|
|
110
|
+
hide: string;
|
|
111
|
+
available_items: string;
|
|
112
|
+
child_attributes: string;
|
|
113
|
+
};
|
|
114
|
+
fr: {
|
|
115
|
+
required: string;
|
|
116
|
+
deprecated: string;
|
|
117
|
+
deprecated_and_sunset_on: string;
|
|
118
|
+
stability_experimental: string;
|
|
119
|
+
stability_alpha: string;
|
|
120
|
+
stability_beta: string;
|
|
121
|
+
copy_to_clipboard: string;
|
|
122
|
+
copied: string;
|
|
123
|
+
no_content: string;
|
|
124
|
+
unresolved_reference: string;
|
|
125
|
+
circular_reference: string;
|
|
126
|
+
read_only: string;
|
|
127
|
+
write_only: string;
|
|
128
|
+
optional: string;
|
|
129
|
+
min: string;
|
|
130
|
+
max: string;
|
|
131
|
+
nullable: string;
|
|
132
|
+
body: string;
|
|
133
|
+
payload: string;
|
|
134
|
+
headers: string;
|
|
135
|
+
authorizations: string;
|
|
136
|
+
responses: string;
|
|
137
|
+
path_parameters: string;
|
|
138
|
+
query_parameters: string;
|
|
139
|
+
header_parameters: string;
|
|
140
|
+
attributes: string;
|
|
141
|
+
test_it: string;
|
|
142
|
+
information: string;
|
|
143
|
+
success: string;
|
|
144
|
+
redirect: string;
|
|
145
|
+
error: string;
|
|
146
|
+
show: string;
|
|
147
|
+
hide: string;
|
|
148
|
+
available_items: string;
|
|
149
|
+
child_attributes: string;
|
|
150
|
+
};
|
|
151
|
+
ja: {
|
|
152
|
+
required: string;
|
|
153
|
+
deprecated: string;
|
|
154
|
+
deprecated_and_sunset_on: string;
|
|
155
|
+
stability_experimental: string;
|
|
156
|
+
stability_alpha: string;
|
|
157
|
+
stability_beta: string;
|
|
158
|
+
copy_to_clipboard: string;
|
|
159
|
+
copied: string;
|
|
160
|
+
no_content: string;
|
|
161
|
+
unresolved_reference: string;
|
|
162
|
+
circular_reference: string;
|
|
163
|
+
read_only: string;
|
|
164
|
+
write_only: string;
|
|
165
|
+
optional: string;
|
|
166
|
+
min: string;
|
|
167
|
+
max: string;
|
|
168
|
+
nullable: string;
|
|
169
|
+
body: string;
|
|
170
|
+
payload: string;
|
|
171
|
+
headers: string;
|
|
172
|
+
authorizations: string;
|
|
173
|
+
responses: string;
|
|
174
|
+
path_parameters: string;
|
|
175
|
+
query_parameters: string;
|
|
176
|
+
header_parameters: string;
|
|
177
|
+
attributes: string;
|
|
178
|
+
test_it: string;
|
|
179
|
+
information: string;
|
|
180
|
+
success: string;
|
|
181
|
+
redirect: string;
|
|
182
|
+
error: string;
|
|
183
|
+
show: string;
|
|
184
|
+
hide: string;
|
|
185
|
+
available_items: string;
|
|
186
|
+
child_attributes: string;
|
|
187
|
+
};
|
|
188
|
+
nl: {
|
|
189
|
+
required: string;
|
|
190
|
+
deprecated: string;
|
|
191
|
+
deprecated_and_sunset_on: string;
|
|
192
|
+
stability_experimental: string;
|
|
193
|
+
stability_alpha: string;
|
|
194
|
+
stability_beta: string;
|
|
195
|
+
copy_to_clipboard: string;
|
|
196
|
+
copied: string;
|
|
197
|
+
no_content: string;
|
|
198
|
+
unresolved_reference: string;
|
|
199
|
+
circular_reference: string;
|
|
200
|
+
read_only: string;
|
|
201
|
+
write_only: string;
|
|
202
|
+
optional: string;
|
|
203
|
+
min: string;
|
|
204
|
+
max: string;
|
|
205
|
+
nullable: string;
|
|
206
|
+
body: string;
|
|
207
|
+
payload: string;
|
|
208
|
+
headers: string;
|
|
209
|
+
authorizations: string;
|
|
210
|
+
responses: string;
|
|
211
|
+
path_parameters: string;
|
|
212
|
+
query_parameters: string;
|
|
213
|
+
header_parameters: string;
|
|
214
|
+
attributes: string;
|
|
215
|
+
test_it: string;
|
|
216
|
+
information: string;
|
|
217
|
+
success: string;
|
|
218
|
+
redirect: string;
|
|
219
|
+
error: string;
|
|
220
|
+
show: string;
|
|
221
|
+
hide: string;
|
|
222
|
+
available_items: string;
|
|
223
|
+
child_attributes: string;
|
|
224
|
+
};
|
|
225
|
+
no: {
|
|
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
|
+
copy_to_clipboard: string;
|
|
233
|
+
copied: string;
|
|
234
|
+
no_content: string;
|
|
235
|
+
unresolved_reference: string;
|
|
236
|
+
circular_reference: string;
|
|
237
|
+
read_only: string;
|
|
238
|
+
write_only: string;
|
|
239
|
+
optional: string;
|
|
240
|
+
min: string;
|
|
241
|
+
max: string;
|
|
242
|
+
nullable: string;
|
|
243
|
+
body: string;
|
|
244
|
+
payload: string;
|
|
245
|
+
headers: string;
|
|
246
|
+
authorizations: string;
|
|
247
|
+
responses: string;
|
|
248
|
+
path_parameters: string;
|
|
249
|
+
query_parameters: string;
|
|
250
|
+
header_parameters: string;
|
|
251
|
+
attributes: string;
|
|
252
|
+
test_it: string;
|
|
253
|
+
information: string;
|
|
254
|
+
success: string;
|
|
255
|
+
redirect: string;
|
|
256
|
+
error: string;
|
|
257
|
+
show: string;
|
|
258
|
+
hide: string;
|
|
259
|
+
available_items: string;
|
|
260
|
+
child_attributes: string;
|
|
261
|
+
};
|
|
262
|
+
'pt-br': {
|
|
263
|
+
required: string;
|
|
264
|
+
deprecated: string;
|
|
265
|
+
deprecated_and_sunset_on: string;
|
|
266
|
+
stability_experimental: string;
|
|
267
|
+
stability_alpha: string;
|
|
268
|
+
stability_beta: string;
|
|
269
|
+
copy_to_clipboard: string;
|
|
270
|
+
copied: string;
|
|
271
|
+
no_content: string;
|
|
272
|
+
unresolved_reference: string;
|
|
273
|
+
circular_reference: string;
|
|
274
|
+
read_only: string;
|
|
275
|
+
write_only: string;
|
|
276
|
+
optional: string;
|
|
277
|
+
min: string;
|
|
278
|
+
max: string;
|
|
279
|
+
nullable: string;
|
|
280
|
+
body: string;
|
|
281
|
+
payload: string;
|
|
282
|
+
headers: string;
|
|
283
|
+
authorizations: string;
|
|
284
|
+
responses: string;
|
|
285
|
+
path_parameters: string;
|
|
286
|
+
query_parameters: string;
|
|
287
|
+
header_parameters: string;
|
|
288
|
+
attributes: string;
|
|
289
|
+
test_it: string;
|
|
290
|
+
information: string;
|
|
291
|
+
success: string;
|
|
292
|
+
redirect: string;
|
|
293
|
+
error: string;
|
|
294
|
+
show: string;
|
|
295
|
+
hide: string;
|
|
296
|
+
available_items: string;
|
|
297
|
+
child_attributes: string;
|
|
298
|
+
};
|
|
299
|
+
zh: {
|
|
300
|
+
required: string;
|
|
301
|
+
deprecated: string;
|
|
302
|
+
deprecated_and_sunset_on: string;
|
|
303
|
+
stability_experimental: string;
|
|
304
|
+
stability_alpha: string;
|
|
305
|
+
stability_beta: string;
|
|
306
|
+
copy_to_clipboard: string;
|
|
307
|
+
copied: string;
|
|
308
|
+
no_content: string;
|
|
309
|
+
unresolved_reference: string;
|
|
310
|
+
circular_reference: string;
|
|
311
|
+
read_only: string;
|
|
312
|
+
write_only: string;
|
|
313
|
+
optional: string;
|
|
314
|
+
min: string;
|
|
315
|
+
max: string;
|
|
316
|
+
nullable: string;
|
|
317
|
+
body: string;
|
|
318
|
+
payload: string;
|
|
319
|
+
headers: string;
|
|
320
|
+
authorizations: string;
|
|
321
|
+
responses: string;
|
|
322
|
+
path_parameters: string;
|
|
323
|
+
query_parameters: string;
|
|
324
|
+
header_parameters: string;
|
|
325
|
+
attributes: string;
|
|
326
|
+
test_it: string;
|
|
327
|
+
information: string;
|
|
328
|
+
success: string;
|
|
329
|
+
redirect: string;
|
|
330
|
+
error: string;
|
|
331
|
+
show: string;
|
|
332
|
+
hide: string;
|
|
333
|
+
available_items: string;
|
|
334
|
+
child_attributes: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
export type TranslationLocale = keyof typeof translations;
|
|
338
|
+
/**
|
|
339
|
+
* Check if the locale is valid.
|
|
340
|
+
*/
|
|
341
|
+
export declare function checkIsValidLocale(locale: string): locale is TranslationLocale;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { de } from './de';
|
|
2
|
+
import { en } from './en';
|
|
3
|
+
import { es } from './es';
|
|
4
|
+
import { fr } from './fr';
|
|
5
|
+
import { ja } from './ja';
|
|
6
|
+
import { nl } from './nl';
|
|
7
|
+
import { no } from './no';
|
|
8
|
+
import { pt_br } from './pt-br';
|
|
9
|
+
import { zh } from './zh';
|
|
10
|
+
export * from './types';
|
|
11
|
+
export var translations = {
|
|
12
|
+
en: en,
|
|
13
|
+
de: de,
|
|
14
|
+
es: es,
|
|
15
|
+
fr: fr,
|
|
16
|
+
ja: ja,
|
|
17
|
+
nl: nl,
|
|
18
|
+
no: no,
|
|
19
|
+
'pt-br': pt_br,
|
|
20
|
+
zh: zh,
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if the locale is valid.
|
|
24
|
+
*/
|
|
25
|
+
export function checkIsValidLocale(locale) {
|
|
26
|
+
return Object.prototype.hasOwnProperty.call(translations, locale);
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const ja: {
|
|
2
|
+
required: string;
|
|
3
|
+
deprecated: string;
|
|
4
|
+
deprecated_and_sunset_on: string;
|
|
5
|
+
stability_experimental: string;
|
|
6
|
+
stability_alpha: string;
|
|
7
|
+
stability_beta: string;
|
|
8
|
+
copy_to_clipboard: string;
|
|
9
|
+
copied: string;
|
|
10
|
+
no_content: string;
|
|
11
|
+
unresolved_reference: string;
|
|
12
|
+
circular_reference: string;
|
|
13
|
+
read_only: string;
|
|
14
|
+
write_only: string;
|
|
15
|
+
optional: string;
|
|
16
|
+
min: string;
|
|
17
|
+
max: string;
|
|
18
|
+
nullable: string;
|
|
19
|
+
body: string;
|
|
20
|
+
payload: string;
|
|
21
|
+
headers: string;
|
|
22
|
+
authorizations: string;
|
|
23
|
+
responses: string;
|
|
24
|
+
path_parameters: string;
|
|
25
|
+
query_parameters: string;
|
|
26
|
+
header_parameters: string;
|
|
27
|
+
attributes: string;
|
|
28
|
+
test_it: string;
|
|
29
|
+
information: string;
|
|
30
|
+
success: string;
|
|
31
|
+
redirect: string;
|
|
32
|
+
error: string;
|
|
33
|
+
show: string;
|
|
34
|
+
hide: string;
|
|
35
|
+
available_items: string;
|
|
36
|
+
child_attributes: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export var ja = {
|
|
2
|
+
required: '必須',
|
|
3
|
+
deprecated: '非推奨',
|
|
4
|
+
deprecated_and_sunset_on: 'この操作は非推奨であり、${1}に廃止されます。',
|
|
5
|
+
stability_experimental: '実験的',
|
|
6
|
+
stability_alpha: 'アルファ',
|
|
7
|
+
stability_beta: 'ベータ',
|
|
8
|
+
copy_to_clipboard: 'クリップボードにコピー',
|
|
9
|
+
copied: 'コピー済み',
|
|
10
|
+
no_content: 'コンテンツなし',
|
|
11
|
+
unresolved_reference: '未解決の参照',
|
|
12
|
+
circular_reference: '循環参照',
|
|
13
|
+
read_only: '読み取り専用',
|
|
14
|
+
write_only: '書き込み専用',
|
|
15
|
+
optional: 'オプション',
|
|
16
|
+
min: '最小',
|
|
17
|
+
max: '最大',
|
|
18
|
+
nullable: 'ヌル許容',
|
|
19
|
+
body: '本文',
|
|
20
|
+
payload: 'ペイロード',
|
|
21
|
+
headers: 'ヘッダー',
|
|
22
|
+
authorizations: '認可',
|
|
23
|
+
responses: 'レスポンス',
|
|
24
|
+
path_parameters: 'パスパラメータ',
|
|
25
|
+
query_parameters: 'クエリパラメータ',
|
|
26
|
+
header_parameters: 'ヘッダーパラメータ',
|
|
27
|
+
attributes: '属性',
|
|
28
|
+
test_it: 'テストする',
|
|
29
|
+
information: '情報',
|
|
30
|
+
success: '成功',
|
|
31
|
+
redirect: 'リダイレクト',
|
|
32
|
+
error: 'エラー',
|
|
33
|
+
show: '表示',
|
|
34
|
+
hide: '非表示',
|
|
35
|
+
available_items: '利用可能なアイテム',
|
|
36
|
+
child_attributes: '子属性',
|
|
37
|
+
};
|