v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
ICU

Build ICU skeletons

Generates ICU (International Components for Unicode) message format skeletons for a given source string across one or more locales. An ICU skeleton strips the literal text from a pluralized or select message while preserving its structural rules — argument names, plural categories, select cases, and ordinal forms — adjusted to the pluralization rules of each requested locale.

Use this endpoint to normalize translation templates before importing them into locale files, or to validate that a source string carries the plural forms required by a target language.

Either content or id must be provided — supplying both or neither returns 400. When id is used and the referenced translation does not exist, the endpoint returns 404. When the source string is not valid ICU message format syntax, the endpoint returns 422 with an error field describing the parse failure.

post/icu/skeleton

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

OR

Example request

{
  "content": "{count, plural, one {One item} other {# items}}",
  "id": "abcd1234abcd1234abcd1234abcd1234",
  "locale_codes": [
    "en",
    "de"
  ],
  "cldr_version": "cldr48"
}

Response

OK

locale_codestring

Object keys are dynamic and based on requested locale codes, see example.

Example response

{
  "en": "{number, plural, one {} other {}}",
  "de": "{number, plural, one {} other {}}"
}