Compare placeholder structure across locales
Compare placeholder structure across locales. A placeholder missing from a translation renders blank in some frameworks and throws in others, so the same file is a cosmetic bug in one stack and a crash in the next. ICU braces, printf conversions and mustache pairs are all recognised. Also reports a placeholder no base string supplies, a positional count that differs, a syntax that differs between locales, and unindexed printf placeholders reordered by a translation, which the renderer ignores.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.zfinia.com/x402/v1/locale-placeholder-contract-audit
| Category | Code and developer |
|---|---|
| Provider host | api.zfinia.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"locales": [
{
"base": true,
"locale": "en",
"messages": {
"app": {
"greeting": "Hello, {name}",
"title": "Dashboard"
},
"cart": {
"item_one": "You have {count} item in your cart",
"item_other": "You have {count} items in your cart"
},
"errors": {
"generic": "Something went wrong",
"retry": "Try again"
},
"invoice": {
"total": "Total: {amount, number, ::currency/USD}"
},
"legal": {
"terms": "By continuing you accept the <a href=\"/terms\">terms</a>"
},
"shared": {
"cancel": "Cancel",
"dismiss": "Cancel"
}
}
},
{
"locale": "de",
"messages": {
"app": {
"greeting": "Hallo, {vorname}",
"title": "\u00dcbersicht"
},
"cart": {
"item_one": "Sie haben {count} Artikel im Warenkorb",
"item_other": "Sie haben {count} Artikel im Warenkorb"
},
"errors": {
"generic": "Etwas ist schiefgelaufen",
"retry": "Erneut versuchen"
},
"invoice": {
"total": "Gesamt"
},
"legal": {
"terms": "Mit dem Fortfahren akzeptieren Sie die <a href=\"/terms\">Bedingungen</a>"
},
"shared": {
"cancel": "Abbrechen",
"dismiss": "Verwerfen"
}
}
},
{
"locale": "fr",
"messages": {
"app": {
"greeting": "Bonjour, {{name}}",
"title": "Tableau de bord"
},
"cart": {
"item_one": "Vous avez {count} article",
"item_other": "Vous avez {count} articles"
},
"errors": {
"generic": "Une erreur est survenue",
"retry": "R\u00e9essayer"
},
"invoice": {
"total": "Total : {amount}"
},
"legal": {
"terms": "En continuant vous acceptez les conditions"
},
"shared": {
"cancel": "Annuler",
"dismiss": "Ignorer"
}
}
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"locales": {
"items": {
"additionalProperties": false,
"properties": {
"base": {
"type": "boolean"
},
"locale": {
"maxLength": 35,
"type": "string"
},
"messages": {
"type": [
"object",
"string"
]
}
},
"required": [
"locale",
"messages"
],
"type": "object"
},
"maxItems": 60,
"minItems": 2,
"type": "array"
}
},
"required": [
"locales"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}