{"uid":"cap_ot47LWMGzRbDJo9M_S86W","slug":"saylor-innovations-data-desk-locale-info-cldr-90d5295e","name":"Saylor Innovations Data Desk – Locale Info (CLDR)","description":"Locale facts from CLDR for a BCP 47 tag - language, region and script names, text direction, week start, calendar, plural rules and format samples","url":"https://saylorinnovations.com/api/intl/locale-info?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["locale"],"properties":{"locale":{"type":"string","description":"BCP 47 tag such as de-DE, pt-BR, ar-EG"},"currency":{"type":"string","description":"optional ISO 4217 code to show a currency sample"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["locale","language","samples"],"properties":{"locale":{"type":"string","description":"Locale as supplied"},"region":{"type":["string","null"],"description":"Region"},"script":{"type":["string","null"],"description":"Script code"},"source":{"type":"string","description":"Data source the values come from"},"samples":{"type":"object","properties":{"list":{"type":["string","null"],"description":"List of items"},"number":{"type":["string","null"],"description":"Number that was looked up"},"compact":{"type":["string","null"],"description":"A compact number formatted for the locale"},"percent":{"type":["string","null"],"description":"A percentage formatted for the locale"},"currency":{"type":["string","null"],"description":"Currency code"},"date_time":{"type":["string","null"],"description":"Date time (UTC unless a time zone is given)"},"short_date":{"type":["string","null"],"description":"Short date"},"currency_name":{"type":["string","null"],"description":"Currency name"}},"description":"Formatted date, number, percent, compact number, currency and list samples","additionalProperties":true},"calendar":{"type":["string","null"],"description":"Default calendar"},"language":{"type":"string","description":"Language"},"canonical":{"type":"string","description":"Canonical BCP 47 tag"},"checked_at":{"type":"string","description":"Time the check was run (UTC)"},"hour_cycle":{"type":"string","description":"Hour cycle"},"region_name":{"type":["string","null"],"description":"Region name"},"script_name":{"type":"string","description":"Script name"},"weekend_days":{"type":"array","items":{"type":"string"},"description":"Weekend days"},"language_name":{"type":["string","null"],"description":"Language name"},"text_direction":{"type":["string","null"],"description":"Text direction"},"numbering_system":{"type":"string","description":"Numbering system"},"first_day_of_week":{"type":["string","null"],"description":"First day of week"},"plural_categories":{"type":"array","items":{"type":"string"},"description":"Plural categories"},"region_native_name":{"type":"string","description":"Region native name"},"language_native_name":{"type":"string","description":"Language native name"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hfUdLxsCLUCLe0P8wTaot","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns CLDR-sourced locale facts for a BCP 47 tag: language/region/script names, text direction, week start, calendar, plural rules, hour cycle, and formatted samples for dates, numbers, percentages, currency, and lists.","exampleAgentPrompt":"What are the CLDR locale facts for ar-EG — things like text direction, calendar, week start, hour cycle, and a sample of how a date and a price in EGP would be formatted?","exampleUseCases":[{"title":"RTL detection for UI rendering","prompt":"I'm building a form that needs to know if the user's locale ar-SA uses right-to-left text and what calendar system it defaults to — can you look that up?"},{"title":"Currency formatting for invoice generation","prompt":"Before I generate an invoice for a Japanese customer, can you fetch the CLDR locale data for ja-JP and show me how a ¥ amount and a date would be formatted there?"},{"title":"Week-start configuration for calendar app","prompt":"My calendar app needs to know what day the week starts on for fr-FR and what hour cycle French users expect — 12-hour or 24-hour?"}],"resultDescription":"A JSON object containing the canonical BCP 47 tag, resolved language/region/script names, text direction (ltr/rtl), default calendar type, week start day, hour cycle, plural rule categories, and a samples object with locale-formatted examples for a number, short date, date-time, percentage, compact number, list, and optionally a currency amount and its name.","failureModes":["Invalid or unrecognized BCP 47 tag returns an error","Unknown ISO 4217 currency code may result in null currency sample fields","Highly granular or private-use subtags may fall back to a less-specific canonical form","Network or payment (x402) failures prevent any response"],"whenToPreferThis":"Choose this endpoint when you need authoritative CLDR-sourced locale metadata — formatting samples, calendar type, week start, text direction, or plural rules — for a specific BCP 47 locale tag. Prefer it over manual CLDR parsing or generic i18n libraries when you need a quick API call with concrete formatted examples ready to use in UI or data-processing pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T06:44:47.217Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-locale-info-cldr-90d5295e"}