1 /**
2 * @oas [get] /admin/translations/settings
3 * operationId: GetTranslationsSettings
4 * summary: List Translation Settings
5 * x-sidebar-summary: List Settings
6 * description: Retrieve the list of translatable fields for all entities, such as products and collections. You can also filter the results by entity type or active entities.
7 * x-authenticated: true
8 * parameters:
9 * - name: entity_type
10 * in: query
11 * description: The entity to retrieve translation settings for.
12 * required: false
13 * schema:
14 * type: string
15 * title: entity_type
16 * description: The entity to retrieve translation settings for.
17 * example: product
18 * - name: is_active
19 * in: query
20 * description: Filter resources by whether translations is activated for them or not. If not provided, all resources are returned.
21 * required: false
22 * schema:
23 * type: boolean
24 * title: is_active
25 * description: Filter resources by whether translations is activated for them or not. If not provided, all resources are returned.
26 * security:
27 * - api_token: []
28 * - cookie_auth: []
29 * - jwt_token: []
30 * x-codeSamples:
31 * - lang: JavaScript
32 * label: JS SDK
33 * source: |-
34 * import Medusa from "@medusajs/js-sdk"
35 *
36 * export const sdk = new Medusa({
37 * baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
38 * debug: import.meta.env.DEV,
39 * auth: {
40 * type: "session",
41 * },
42 * })
43 *
44 * sdk.admin.translation.settings({
45 * entity_type: "product"
46 * })
47 * .then(({ translation_settings }) => {
48 * console.log(translation_settings)
49 * })
50 * - lang: Shell
51 * label: cURL
52 * source: |-
53 * curl '{backend_url}/admin/translations/settings' \
54 * -H 'Authorization: Bearer {access_token}'
55 * tags:
56 * - Translations
57 * responses:
58 * "200":
59 * description: OK
60 * content:
61 * application/json:
62 * schema:
63 * $ref: "#/components/schemas/AdminTranslationSettingsResponse"
64 * "400":
65 * $ref: "#/components/responses/400_error"
66 * "401":
67 * $ref: "#/components/responses/unauthorized"
68 * "404":
69 * $ref: "#/components/responses/not_found_error"
70 * "409":
71 * $ref: "#/components/responses/invalid_state_error"
72 * "422":
73 * $ref: "#/components/responses/invalid_request_error"
74 * "500":
75 * $ref: "#/components/responses/500_error"
76 * x-since: 2.12.3
77 * x-featureFlag: translation
78 *
79 */
80