Loading...
Loading...
Parses a BCP 47 language tag into language, extlang, script, region, variant, extension and private-use subtags, validates each against the IANA registry, and returns the canonical form. Called as GET /v1/lang/bcp47, it takes tag and returns valid, canonical, language, errors. Locale strings arrive from users, feeds and file names, and a wrong one silently mis-routes content rather than failing. Checking a tag properly means holding a 730KB registry and implementing the RFC 5646 grammar; almost nobody does either, so tags like en-UK and zh-CN-Hans ship broken. Reading this schema and dry-running the call are free and need no wallet; a real call costs $0.003, paid in USDC on Base over x402.
npx skill4agent add fittings-sh/fittings fittings-lang-bcp47lang.bcp47https://fittings.shGET https://fittings.sh/v1/lang/bcp47| Field | Type | Required | Notes |
|---|---|---|---|
| string | yes | Language tag, e.g. zh-Hant-HK, at most 100 characters |
{
"tag": "zh-Hant-HK"
}| Price | $0.003 |
| Source | IANA Language Subtag Registry, parsed per BCP 47 / RFC 5646 |
| Licence | permissive |
| Attribution | Subtag data from the IANA Language Subtag Registry |
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjscurl -s https://fittings.sh/catalog/lang.bcp47 | jq402 Payment Required# Dry run. Prints the quote and pays nothing, because no key is set.
node call.mjs lang.bcp47 tag=zh-Hant-HK
# For real: a wallet holding USDC on Base, and nothing else.
export FITTINGS_PRIVATE_KEY=0x...
node call.mjs lang.bcp47 tag=zh-Hant-HKFITTINGS_PRIVATE_KEYFITTINGS_MAX_PRICE@x402/core@x402/evmfittingshttps://fittings.sh/catalog/search?q=...