Raw
1 get:
2 operationId: GetTranslationsStatistics
3 summary: Retrieve Translation Statistics
4 x-sidebar-summary: Get Statistics
5 description: >-
6 Get statistics on translations for specified locales and entity types. This
7 includes overall translation progress for each entity type, and statistics
8 for each locale within those entity types.
9 x-authenticated: true
10 parameters:
11 - name: locales
12 in: query
13 description: >-
14 The locale codes to retrieve translation statistics for. Locale codes
15 are in [BCP
16 47](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1)
17 format.
18 required: true
19 schema:
20 oneOf:
21 - type: string
22 title: locales
23 description: >-
24 A locale code to retrieve translation statistics for. Locale codes
25 are in [BCP
26 47](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1)
27 format.
28 - type: array
29 description: Locale codes to retrieve translation statistics for.
30 items:
31 type: string
32 title: locales
33 description: >-
34 A locale code in [BCP
35 47](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1)
36 format.
37 - name: entity_types
38 in: query
39 description: The table names of entities to retrieve translation statistics for.
40 required: true
41 schema:
42 oneOf:
43 - type: string
44 title: entity_types
45 description: >-
46 The table name of an entity type to retrieve translation
47 statistics for.
48 - type: array
49 description: >-
50 The table names of entity types to retrieve translation statistics
51 for.
52 items:
53 type: string
54 title: entity_types
55 description: A table name.
56 security:
57 - api_token: []
58 - cookie_auth: []
59 - jwt_token: []
60 x-codeSamples:
61 - lang: JavaScript
62 label: JS SDK
63 source:
64 $ref: ../code_samples/JavaScript/admin_translations_statistics/get.js
65 - lang: Shell
66 label: cURL
67 source:
68 $ref: ../code_samples/Shell/admin_translations_statistics/get.sh
69 tags:
70 - Translations
71 responses:
72 '200':
73 description: OK
74 content:
75 application/json:
76 schema:
77 $ref: ../components/schemas/AdminTranslationStatisticsResponse.yaml
78 '400':
79 $ref: ../components/responses/400_error.yaml
80 '401':
81 $ref: ../components/responses/unauthorized.yaml
82 '404':
83 $ref: ../components/responses/not_found_error.yaml
84 '409':
85 $ref: ../components/responses/invalid_state_error.yaml
86 '422':
87 $ref: ../components/responses/invalid_request_error.yaml
88 '500':
89 $ref: ../components/responses/500_error.yaml
90 x-since: 2.12.3
91 x-featureFlag: translation