Skip to main content
POST
cli v2

Authorizations

Authorization
string
header
required

Enter your token in the format token TOKEN

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Body

application/json
content
string
required

Source ICU message string to derive skeletons from. Mutually exclusive with id; exactly one of the two must be provided.

Example:

"{count, plural, one {One item} other {# items}}"

id
string

Code of an existing translation to source content from. Mutually exclusive with content; exactly one of the two must be provided. Returns 404 when the translation does not exist.

Example:

"abcd1234abcd1234abcd1234abcd1234"

locale_codes
string[]

Locale codes for which to generate skeletons. The pluralization rules of each locale determine which plural forms appear in the output.

Example:
keep_content
boolean

When true, preserves the existing translation text in each plural form and adds any missing forms for the locale rather than stripping all literal content.

Example:

false

zero_form_enabled
boolean

When true, includes the zero plural form in the generated skeleton for locales that support it.

Example:

false

cldr_version
string

Pluralization rule set to use when constructing skeletons. Pass legacy for pre-CLDR behaviour, or a CLDR version string such as cldr48. Defaults to the project's configured version when omitted.

Example:

"cldr48"

Response

OK

locale_code
string

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