|
1
|
/** |
|
2
|
* @schema AdminCreateTranslation |
|
3
|
* type: object |
|
4
|
* description: The translation's details. |
|
5
|
* required: |
|
6
|
* - reference_id |
|
7
|
* - reference |
|
8
|
* - locale_code |
|
9
|
* - translations |
|
10
|
* properties: |
|
11
|
* reference: |
|
12
|
* type: string |
|
13
|
* title: reference |
|
14
|
* description: The resource that the translation belongs to. |
|
15
|
* example: product |
|
16
|
* reference_id: |
|
17
|
* type: string |
|
18
|
* title: reference_id |
|
19
|
* description: The ID of the resource that the translation belongs to. For example, the ID of a product. |
|
20
|
* example: prod_123 |
|
21
|
* locale_code: |
|
22
|
* type: string |
|
23
|
* title: locale_code |
|
24
|
* description: The translation's locale code in BCP 47 format. |
|
25
|
* example: fr-FR |
|
26
|
* translations: |
|
27
|
* type: object |
|
28
|
* description: The translation key-value pairs. Each key is a field in the resource, and the value is the translated text. |
|
29
|
* example: |
|
30
|
* title: Chaussures |
|
31
|
* description: Des chaussures élégantes. |
|
32
|
* x-schemaName: AdminCreateTranslation |
|
33
|
* |
|
34
|
*/ |
|
35
|
|