Translation Coverage
localization.translation_coverage
Overview
You send the keys the product must have, then one catalog per locale. We count how many keys each locale still holds, which ones are missing, which extras appeared, and which listed emptyValueKeys are present but empty. Duplicate keys are refused. Locales are canonicalized through ICU. We do not read PO or JSON resource files and we do not judge translation quality. A successful call costs 1 execution credit.
A locale file that silently dropped a key is a production hole. Set comparison against the reference list is the mechanical answer.
Reliability
Same key lists, same ICU locale canonicalization, same answer. LOCALE_INVALID — trigger: a catalog locale is POSIX or ill-formed; retryable: no; next: send a hyphenated BCP 47 tag. DUPLICATE_KEY — trigger: a key or catalog locale repeats; retryable: no; next: make the list unique. ITEM_LIMIT_EXCEEDED — trigger: more than 50,000 keys or 100 locales; retryable: no; next: split the catalogs.
Context footprint
Key lists in, coverage rows out. A successful call costs 1 execution credit.
When to use it
When you already extracted key lists and need missing, extra and empty counts per locale.
When you still have a resource file to parse, or you need placeholder compatibility inside a message.
Powered by ICU4J locale canonicalization (com.ibm.icu:icu4j).
Scope
Non-goals
- Does not read PO, XLIFF or JSON resource files from disk
- Does not judge translation quality or placeholder compatibility
- Does not merge catalogs or infer a source locale
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.
Squillify guarantees
- Runs inside Squillify
- This skill runs inside Squillify.
- Payloads are not sent to an external service by this skill.
- Squillify does not permanently store submitted payloads.
- Telemetry records metadata only, not submitted content.
- Submitted payloads are not used for training.
- Submitted payloads are not reviewed by humans.
- This skill does not target sensitive data.
- The response does not contain submitted content.
Your responsibility
Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| referenceKeys | array | Yes | From 0 through 50,001 unique reference keys so 50,001 hits ITEM_LIMIT_EXCEEDED; omit none, send [] for an empty product. |
| catalogs | array | Yes | From 0 through 101 closed catalogs so 101 locales hit ITEM_LIMIT_EXCEEDED; each has locale and keys. |
| emptyValueKeys | array | No | From 0 through 50,001 keys treated as empty when still listed in a catalog; omit it for none. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| referenceKeyCount | integer | Yes | Unique reference keys compared. |
| localeCount | integer | Yes | How many catalogs were compared. |
| locales | array | Yes | From 0 through 100 closed per-locale rows in request order after locale canonicalization. |
| truncated | boolean | Yes | Whether any listed key array was cut at 200 entries. |
| _meta | object | Yes | Closed ICU and CLDR versions used for this answer, with icuVersion and cldrVersion strings. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"localization.translation_coverage","input":{"referenceKeys":["app.title","app.save"],"catalogs":[{"locale":"FR","keys":["app.title"]}]}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("localization.translation_coverage", {"catalogs":[{"locale":"FR","keys":["app.title"]}],"referenceKeys":["app.title","app.save"]});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| LOCALE_INVALID | 400 | No | The request payload failed this skill's input validation. |
| DUPLICATE_KEY | 400 | No | The request payload failed this skill's input validation. |
| ITEM_LIMIT_EXCEEDED | 429 | No | A size, quota, rate, or time limit was exceeded. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not read PO, XLIFF or JSON resource files from disk
- Does not judge translation quality or placeholder compatibility
- Does not merge catalogs or infer a source locale
- Parsing a Gettext file
- Checking whether {count} survived inside a message
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "localization.translation_coverage",
"input": {
"catalogs": [
{
"locale": "FR",
"keys": [
"app.title"
]
}
],
"referenceKeys": [
"app.title",
"app.save"
]
}
}Examples
French catalog missing one key
{
"catalogs": [
{
"locale": "FR",
"keys": [
"app.title"
]
}
],
"referenceKeys": [
"app.title",
"app.save"
]
}{
"_meta": {
"icuVersion": "76.1",
"cldrVersion": "46.0"
},
"truncated": false,
"localeCount": 1,
"locales": [
{
"locale": "fr",
"total": 2,
"present": 1,
"missing": 1,
"extra": 0,
"empty": 0,
"presentRatio": 0.5,
"emptyRatio": 0,
"missingKeys": [
"app.save"
],
"extraKeys": [],
"emptyKeys": []
}
],
"referenceKeyCount": 2
}Empty reference with an extra catalog key
{
"referenceKeys": [],
"emptyValueKeys": [],
"catalogs": [
{
"locale": "de-DE",
"keys": [
"obsolete"
]
}
]
}{
"_meta": {
"icuVersion": "76.1",
"cldrVersion": "46.0"
},
"truncated": false,
"localeCount": 1,
"locales": [
{
"locale": "de-DE",
"total": 0,
"present": 0,
"missing": 0,
"extra": 1,
"empty": 0,
"missingKeys": [],
"extraKeys": [
"obsolete"
],
"emptyKeys": []
}
],
"referenceKeyCount": 0
}Recommended use cases
- Measuring how complete fr-FR still is against the English key list
- Spotting extra keys a translator added that the product no longer ships
Avoid for
- Parsing a Gettext file
- Checking whether {count} survived inside a message
Related skills
Composable with
Safety & privacy
- Runs without calling any external service.
- Your payloads are never stored permanently.
- Telemetry captures metadata only — never your payload contents.
- We never train models on your payloads.
- No human reviews your payloads.