# Translation QA API > Look up CLDR 49 locale data, classify numbers by plural category, check translated segments for placeholder, tag, number, link, quote, whitespace, and glossary defects, and format numbers, currencies, and dates for a locale. No account or API key needed for pay-as-you-go calls; sign in for a monthly free quota. Free and monthly plans use an account API key with prepaid credits. Pay as you go is optional: each operation lists a fixed USDC price on Base with the x402 exact scheme. Unpaid pay-as-you-go GET, HEAD, and POST return 402 payment terms (POST validates the body only after payment terms are satisfied). A request that carries payment-signature is not yet charged: settlement happens only after a successful (2xx) result that returns real data (status complete or partial). HTTP 4xx/5xx and coverage status failed or empty payloads are not charged. Settled 2xx responses include a payment-response header; uncharged responses do not. Follow https://www.brainiac.software/agent-instructions.txt for install, payment pins, idempotency, and billing rules. - Product: https://www.brainiac.software/api/translation-qa - Docs: https://www.brainiac.software/api/translation-qa/docs - OpenAPI: https://www.brainiac.software/api/translation-qa/openapi.json - Contact: support@brainiac.software (https://www.brainiac.software/contact) ## Operations ### POST /api/v1/translation-qa/locale $0.005 USDC. Return CLDR 49 locale facts for one BCP 47 tag from a vendored set of 40 common locales: decimal and group symbols, number, percent and currency patterns, date and time formats, first day of week, quotation marks, and Keywords: before you check or format text for a target market, locale, decimal, group, pluralCategories, dateFormats, Look up CLDR locale data, translation qa locale Inputs: locale Docs: https://www.brainiac.software/api/translation-qa/locale Example request: ```json { "locale": "de-DE" } ``` Example response: ```json { "status": "complete", "locale": "de-DE", "language": "de", "cldrLocale": "de", "name": "German (Germany)", "nativeName": "Deutsch (Deutschland)", "numberingSystem": "latn", "decimal": ",", "group": ".", "minusSign": "-", "decimalPattern": "#,##0.###", "percentPattern": "#,##0 %", "currencyPattern": "#,##0.00 ¤", "dateFormats": { "short": "dd.MM.yy", "medium": "dd.MM.y", "long": "d. MMMM y", "full": "EEEE, d. MMMM y" }, "timeFormats": { "short": "HH:mm", "medium": "HH:mm:ss", "long": "HH:mm:ss z", "full": "HH:mm:ss zzzz" }, "firstDayOfWeek": 1, "quotationStart": "„", "quotationEnd": "“", "altQuotationStart": "‚", "altQuotationEnd": "‘", "pluralCategories": { "cardinal": [ "one", "other" ], "ordinal": [ "other" ] }, "requestedLocale": "de-DE", "cldrVersion": "49.0.0", "sources": [ { "source": "Unicode CLDR JSON 49.0.0 (cldr-core, cldr-numbers-full, cldr-dates-full, cldr-misc-full, cldr-localenames-full), 40 locales", "url": "https://github.com/unicode-org/cldr-json", "licence": "Unicode-3.0", "retrievedAt": "2026-12-03", "status": "ok" } ], "limitations": [ "Data covers 40 common locales vendored from CLDR 49.0.0; a regional tag outside that set resolves to the first vendored locale of the same language and script.", "Patterns are CLDR pattern strings (for example dd.MM.y), not formatted samples. Use number-formats for formatted output." ] } ``` ### POST /api/v1/translation-qa/plural-category $0.002 USDC. Return the CLDR plural category (zero, one, two, few, many, other) for each number in a locale, cardinal or ordinal, using make-plural. Keywords: before you write plural forms for a language, locale, numbers, type, category, results, Classify numbers by plural category, translation qa plural category Inputs: locale, numbers, type? Docs: https://www.brainiac.software/api/translation-qa/plural-category Example request: ```json { "locale": "ru", "numbers": [ "1", "2", "5", "21" ], "type": "cardinal" } ``` Example response: ```json { "status": "complete", "locale": "ru", "ruleLocale": "ru", "type": "cardinal", "categories": [ "one", "few" ], "results": [ { "number": "1", "category": "one" }, { "number": "2", "category": "few" } ], "cldrVersion": "49.0.0", "sources": [ { "source": "make-plural 8.2.0 (CLDR plural rules compiled to JavaScript)", "url": "https://github.com/eemeli/make-plural", "licence": "Unicode-DFS-2016", "retrievedAt": "2026-12-03", "status": "ok" } ], "limitations": [ "Numbers are evaluated as written, so 1 and 1.0 can fall in different categories (visible decimals matter in CLDR rules).", "Compact-decimal exponent forms (1c3) are not supported; pass plain decimal numbers." ] } ``` ### POST /api/v1/translation-qa/segment-check $0.03 USDC. Check up to 500 source and target segments for placeholder, HTML or XML tag, number, URL and email, untranslated, length ratio, quote style, whitespace, and glossary defects using each locale's CLDR number symbols and Keywords: before you accept a translation, sourceLocale, targetLocale, segments, glossary, issues, Check translated segments, translation qa segment check Inputs: sourceLocale, targetLocale, segments, glossary?, lengthRatio? Docs: https://www.brainiac.software/api/translation-qa/segment-check Example request: ```json { "sourceLocale": "en-US", "targetLocale": "de-DE", "segments": [ { "id": "price-bad", "source": "Price: 1,234.50 EUR", "target": "Preis: 1.234,00 EUR" }, { "id": "price-ok", "source": "Price: 1,234.50 EUR", "target": "Preis: 1.234,50 EUR" } ], "glossary": [ { "source": "Price", "target": "Preis" } ] } ``` Example response: ```json { "status": "complete", "sourceLocale": "en-US", "targetLocale": "de-DE", "segments": 2, "issues": [ { "id": "price-bad", "check": "number_mismatch", "severity": "error", "detail": "Numbers read with en-US symbols [1234.5] differ from numbers read with de-DE symbols [1234]." } ], "summary": { "byCheck": { "number_mismatch": 1 }, "segmentsWithIssues": 1, "errors": 1, "warnings": 0 }, "cldrVersion": "49.0.0", "sources": [ { "source": "Unicode CLDR JSON 49.0.0 (cldr-core, cldr-numbers-full, cldr-dates-full, cldr-misc-full, cldr-localenames-full), 40 locales", "url": "https://github.com/unicode-org/cldr-json", "licence": "Unicode-3.0", "retrievedAt": "2026-12-03", "status": "ok" } ], "limitations": [ "Numbers are read with each locale's CLDR decimal and group symbols; dates and ranges written with separators (3.12.2026) can be read differently in the two", "Placeholder, tag, number, and link checks compare multisets of tokens, not their order; translators may reorder them." ] } ``` ### POST /api/v1/translation-qa/number-formats $0.005 USDC. Format 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. Keywords: before you hard-code number, currency, or date formats, locale, values, formatted, icuVersion, cldrVersion, Format numbers and dates for a locale, translation qa number formats Inputs: locale, timeZone?, values Docs: https://www.brainiac.software/api/translation-qa/number-formats Example request: ```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" } ] } ``` Example response: ```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." ] } ```