github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/icu/skeleton.yaml (about) 1 --- 2 summary: Build ICU skeletons 3 description: Returns ICU skeletons for multiple locale codes based on a source content. 4 operationId: icu/skeleton 5 tags: 6 - ICU 7 parameters: 8 - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" 9 responses: 10 '200': 11 description: OK 12 content: 13 application/json: 14 schema: 15 "$ref": "../../schemas/icu.yaml#/skeleton" 16 headers: 17 X-Rate-Limit-Limit: 18 "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" 19 X-Rate-Limit-Remaining: 20 "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" 21 X-Rate-Limit-Reset: 22 "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" 23 Link: 24 "$ref": "../../headers.yaml#/Link" 25 '400': 26 "$ref": "../../responses.yaml#/400" 27 '404': 28 "$ref": "../../responses.yaml#/404" 29 '429': 30 "$ref": "../../responses.yaml#/429" 31 x-code-samples: 32 - lang: Curl 33 source: |- 34 curl "https://api.phrase.com/v2/icu/skeleton" \ 35 -u USERNAME_OR_ACCESS_TOKEN \ 36 -X POST \ 37 -d '{"content":"{number, plural, one {One} other {%{n}}}","locale_codes":["en"],"zero_form_enabled": true}' \ 38 -H 'Content-Type: application/json' 39 - lang: CLI v2 40 source: |- 41 phrase icu skeleton \ 42 --data '{"content":"{number, plural, one {One} other {%{n}}}","locale_codes":["en"],"zero_form_enabled": true}' \ 43 --access_token <token> 44 requestBody: 45 required: true 46 content: 47 application/json: 48 schema: 49 type: object 50 title: icu/skeleton/parameters 51 properties: 52 content: 53 description: Source content 54 type: string 55 example: "{number, plural, one {One} other {%{n}}}" 56 locale_codes: 57 description: Locale codes 58 type: array 59 items: 60 type: string 61 example: en 62 example: 63 - en 64 keep_content: 65 description: Keep the content and add missing plural forms for each locale 66 type: boolean 67 example: 68 zero_form_enabled: 69 description: Indicates whether the zero form should be included or excluded in the returned skeletons 70 type: boolean 71 example: 72 cldr_version: 73 description: |- 74 Strings supports two CLDR variants, when it comes to pluralization rules. \ 75 You can choose which one you want to use when constructing the skeletons. Possible values \ 76 are `legacy` and `cldr_41`. Default value is `legacy`. 77 type: string 78 example: cldr_41 79 80 x-cli-version: '2.9'