Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Export a catalog

Returns the catalog's files per locale in the requested format, with the QA report.

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

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog:export
  • Scope localization:read
  • Effect read — nothing is written.
  • Collection catalogs

#Request

FieldTypeWhat it is
namestringThe name of the catalog. Required.
formatFormatThe format of the files. Required. One of sylphx_json, icu_json, gettext_po, xliff2.
localesstring[]The locales to export; default every target locale and the pseudo-locales.
source_fallbackboolEmit the source text for keys that have no passing translation, for runtimes that do not fall back to the source themselves.

#Response

FieldTypeWhat it is
filesCatalogFile[]One file per source file per locale, with the source file's path.
reportQaReportThe QA report. A translation with an error is never exported.
pendingint32Translations still to make.
glyph_setsGlyphSet[]The characters each locale's texts use.

#CatalogFile

FieldTypeWhat it is
pathstringThe file's path. The service does not interpret it and echoes it back, for example a namespace file name. Required.
localestringThe file's locale, a BCP 47 tag. Required.
contentstringThe file's text, UTF-8; at most 4 MiB. Required.

#QaReport

FieldTypeWhat it is
passedboolWhether there are no errors.
errorsint32The number of errors.
warningsint32The number of warnings.
findingsQaFinding[]The findings.

#GlyphSet

FieldTypeWhat it is
localestringThe locale.
charactersstringEvery distinct character the locale's texts use, sorted.

#QaFinding

FieldTypeWhat it is
entrystringThe Catalog Entry, as a resource name. Output only.
keystringThe entry's key. Output only.
localestringThe target locale. Output only.
checkQaCheckThe check that found it. Output only. One of syntax, placeholders, markup, plural, length, glossary, forbidden_term.
severityQaSeverityHow serious it is. Output only. One of error, warning.
messagestringWhat is wrong. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/catalogs/catalog:export" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"format":"sylphx_json"}'