Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx localization catalogs

Every sylphx localization catalogs command: its argument, its flags and a run line.

The catalogs commands of Sylphx Localization, as the CLI spells them: the same calls as the catalogs API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets a catalog.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx localization catalogs get orgs/acme/projects/shop/envs/production/catalogs/catalog

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog · scope localization:read · effect read · Request, response and examples

#list

Lists catalogs.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx localization catalogs list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs · scope localization:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over labels and filterable fields.
--order-bystringAIP-132 ordering over filterable fields.

#create

Creates a catalog.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx localization catalogs create --parent orgs/acme/projects/shop/envs/production --spec.source-locale …

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs · scope localization:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.source-localestringThe locale the source texts are written in, a BCP 47 tag such as en. Required.
--spec.target-localesstringThe locales to translate into, BCP 47 tags. zh-Hant-HK and zh-Hant-TW are separate locales. At most 60, each once. Repeat the flag for each value.
--spec.pseudo-localesenumPseudo-locales to generate at export. They are never stored or translated. Repeat the flag for each value. One of accented, bidi, wide.
--spec.tonestringThe brand voice every translation follows, at most 2000 characters.
--spec.locale-guidancekey=valueExtra instructions per target locale, for example the vocabulary of a region. Keys are target locales; at most 60 entries, each at most 2000 characters. Repeat the flag for each value.
--spec.glossariesstringThe glossaries this catalog applies, as Glossary names; at most 10. Repeat the flag for each value.
--dry-runboolValidate and print the result without writing (validate_only).

#update

Updates a catalog.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx localization catalogs update orgs/acme/projects/shop/envs/production/catalogs/catalog --spec.source-locale …

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog · scope localization:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.source-localestringThe locale the source texts are written in, a BCP 47 tag such as en. Required.
--spec.target-localesstringThe locales to translate into, BCP 47 tags. zh-Hant-HK and zh-Hant-TW are separate locales. At most 60, each once. Repeat the flag for each value.
--spec.pseudo-localesenumPseudo-locales to generate at export. They are never stored or translated. Repeat the flag for each value. One of accented, bidi, wide.
--spec.tonestringThe brand voice every translation follows, at most 2000 characters.
--spec.locale-guidancekey=valueExtra instructions per target locale, for example the vocabulary of a region. Keys are target locales; at most 60 entries, each at most 2000 characters. Repeat the flag for each value.
--spec.glossariesstringThe glossaries this catalog applies, as Glossary names; at most 10. Repeat the flag for each value.
--allow-missingboolCreate the catalog when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).

#delete

Deletes a catalog.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx localization catalogs delete orgs/acme/projects/shop/envs/production/catalogs/catalog --yes

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog · scope localization:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the catalog does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--forceboolAlso delete the catalog's entries; without it, a catalog that has entries is refused with INVALID_STATE.
--yesboolDo not ask before this destructive call.

#sync

Reads the source files and the committed translations into the catalog, then translates what is new or stale. Each call is idempotent and works within a bounded time; call again until pending is 0.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx localization catalogs sync orgs/acme/projects/shop/envs/production/catalogs/catalog

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog:sync · scope localization:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--formatenumThe format of the files. Required. One of sylphx_json, icu_json, gettext_po, xliff2.
--sourcesjsonThe source-locale files; 1 to 500. Required. Repeat the flag for each value.
--translationsjsonThe committed target-locale files; at most 10000. A text that differs from the service's last export is recorded as a pinned human override. Repeat the flag for each value.
--dry-runboolValidate and print the result without writing (validate_only).

#export

Returns the catalog's files per locale in the requested format, with the QA report. A read with a request body, like a query.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx localization catalogs export orgs/acme/projects/shop/envs/production/catalogs/catalog

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog:export · scope localization:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--formatenumThe format of the files. Required. One of sylphx_json, icu_json, gettext_po, xliff2.
--localesstringThe locales to export; default every target locale and the pseudo-locales. Repeat the flag for each value.
--source-fallbackboolEmit the source text for keys that have no passing translation, for runtimes that do not fall back to the source themselves.