POST
/api/v1/translation-qa/number-formats$0.005 USDCFormat up to 100 numbers, currency amounts, percentages, and dates for a locale with Node Intl (ICU and CLDR) and return the formatted strings with the ICU and CLDR versions used.
An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
curl -i -X POST "https://www.brainiac.software/api/v1/translation-qa/number-formats" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"locale": "de-DE",
"values": [
{
"type": "number",
"value": 1234567.891
},
{
"type": "currency",
"value": 1234.5,
"currency": "EUR"
},
{
"type": "percent",
"value": 0.256
},
{
"type": "date",
"value": "2026-12-03",
"style": "long"
}
]
}
JSON{
"status": "complete",
"locale": "de-DE",
"timeZone": "UTC",
"results": [
{
"input": {
"type": "number",
"value": 1234567.891
},
"formatted": "1.234.567,891"
},
{
"input": {
"type": "currency",
"value": 1234.5,
"currency": "EUR"
},
"formatted": "1.234,50 €"
}
],
"icuVersion": "77.1",
"cldrVersion": "47.0",
"sources": [
{
"source": "Node v25.1.0 Intl (ICU 77.1, CLDR 47.0)",
"url": "https://cldr.unicode.org",
"licence": "Unicode-3.0",
"retrievedAt": "2026-12-03",
"status": "ok"
}
],
"limitations": [
"Formatting uses the CLDR release bundled with the server's Node.js ICU, which can lag the CLDR 49 data returned by locale.",
"percent values are fractions (0.256 formats as 25.6%). Dates are ISO 8601 strings formatted in timeZone with the Gregorian calendar."
]
}HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; status failed or empty payloads return non-2xx and are not charged.
locale and segment-check read a vendored snapshot in src/data/translation-qa for 40 common locales; no CLDR or translation service is called at request time. segment-check finds format defects (placeholders, tags, numbers, links, quotes, whitespace, length, glossary), not meaning, grammar, or tone. number-formats uses the CLDR release bundled with the server's Node.js ICU, which can lag CLDR 49.