{"uid":"cap_YptIH9wpVJu38CZ7rf5on","slug":"x402-arabic-api-i18n-json-localization-14cb81de","name":"x402 Arabic API – i18n JSON Localization","description":"Arabic-native, Gulf-dialect aware Arabic API for agents: Arabic<->English translation (optional Web3 glossary), Arabic summarization, Saudi/Gulf dialect<->MSA conversion and i18n JSON localization. Keeps 0x addresses, numbers, URLs and code verbatim. Paid per request with x402 (USDC). Lost response: resend the IDENTICAL payment header to the same endpoint within 1 hour to get the same stored response (200, no second charge); any other payment reuse returns 409.","url":"https://arabic-x402-api-base.motaz-crypto.workers.dev/localize-ar-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"object","description":"i18n resource object (nested allowed, depth <= 8). Max 200 string values and 8000 characters across all strings. Keys are never changed; non-string values pass through.","additionalProperties":true}}},"responseSchema":{"type":"json","example":{"json":{"cta":"انقر على <b>ربط المحفظة</b>","fee":"الرسوم: %s USDC","items":"{count, plural, one {# عنصر} other {# عناصر}}","greeting":"مرحبًا، {name}!"},"model":"@cf/qwen/qwen3-30b-a3b-fp8","total":4,"checks":{"retried":0,"fallbackKeys":[],"fallbackRatio":0},"localized":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KeKpSnj9pCxb13oWG74GU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Localizes an i18n JSON resource object into Arabic (Gulf-dialect-aware MSA), preserving keys, placeholders, HTML tags, 0x addresses, numbers, URLs, and code verbatim, paid per request via x402 (USDC).","exampleAgentPrompt":"Take my English i18n JSON — like {\"cta\": \"Connect Wallet\", \"fee\": \"Fee: %s USDC\", \"greeting\": \"Hello, {name}!\"} — and localize all the string values into Gulf-dialect Arabic, keeping the keys, placeholders, and HTML tags exactly as they are.","exampleUseCases":[{"title":"Localizing a Web3 dApp UI for Gulf users","prompt":"I'm launching a DeFi app targeting Saudi Arabia and the UAE — can you take my English en.json locale file and produce an Arabic version with Gulf-dialect phrasing, making sure 0x wallet addresses, USDC amounts, and ICU plural patterns like {count, plural, one {# item} other {# items}} are left untouched?"},{"title":"Arabic locale file for a SaaS onboarding flow","prompt":"Our SaaS product needs an Arabic translation of its onboarding UI strings. Here's the JSON: {\"welcome\": \"Welcome back!\", \"step1\": \"Set up your profile\", \"cta\": \"Get Started\"}. Translate the values into Arabic and give me back the same JSON structure with the same keys."},{"title":"Localizing marketing copy strings for an e-commerce app","prompt":"Can you localize this i18n JSON for our Arabic-speaking e-commerce customers? The file has nested keys under 'cart' and 'checkout' with HTML like <b>Buy Now</b> and format strings like 'Total: %s SAR' — keep all HTML tags and format codes intact in the Arabic output."}],"resultDescription":"Returns a JSON object containing: the localized i18n JSON with Arabic string values (keys unchanged), the AI model used, total string count, number of strings successfully localized, and a checks object showing retry count, any keys that fell back to the original, and the fallback ratio.","failureModes":["Input JSON exceeds 200 string values or 8000 characters — request rejected","Nesting depth exceeds 8 levels — may cause unexpected results","Missing or invalid x402 payment header — 402 Payment Required returned","Reuse of a payment header for a different request within 1 hour — 409 Conflict returned","Non-string values in JSON that cannot be localized are passed through unchanged","Cloudflare Workers AI model unavailability — upstream 5xx error"],"whenToPreferThis":"Choose this endpoint when you need bulk Arabic localization of structured i18n JSON (not a single string), especially for Gulf or Saudi audiences, with guaranteed preservation of HTML markup, ICU plural patterns, interpolation placeholders, 0x addresses, and numeric format strings. Prefer it over generic translation APIs when your payload is already structured as a locale file and you need the keys and non-string values untouched. The x402 micropayment model ($0.02/call) makes it cost-effective for per-deployment or per-build localization pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:32:43.638Z","isFirstParty":false,"canonicalSlug":"x402-arabic-api-i18n-json-localization-14cb81de"}