{"uid":"cap_EKe73iHmun1X14xZJL_Zh","slug":"aiskills402-translate-app-text-53118b7d","name":"aiskills402 Translate App Text","description":"Translate App Text (JSON, YAML, PO): Translates app strings and locale files (JSON, YAML, gettext PO, ICU messages, HTML snippets) into another language without breaking them. Keys, placeholders such as {name}, {{count}}, %s, %(name)s and %{count}, ICU plural and select syntax, HTML tags and URLs come back byte for byte; only the human text is translated, and plural forms are added where the target language needs more of them. Use when asked to translate a JSON or YAML locale file, an en.json, …","url":"https://api.aiskills402.com/v1/skills/translate-app-text/file?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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"file":{"name":"SKILL.md","content":"<the SKILL.md file>","encoding":"utf-8"},"name":"Translate App Text (JSON, YAML, PO)","skill":"translate-app-text","sha256":"<sha256 of SKILL.md>","receipt":{"tx":"0x<settlement transaction>","settled":true},"version":"1.0.0","redownload":{"url":"<api>/v1/purchases/<token>","token":"<64 hex chars>"}}},"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_V7EaSnZ7wu-C31cFBqBGx","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":"Translates app locale files (JSON, YAML, gettext PO, ICU messages, HTML snippets) into another language while preserving keys, placeholders, HTML tags, and plural forms.","exampleAgentPrompt":"Translate my en.json locale file into French — keep all the {name} and {{count}} placeholders exactly as-is, preserve any HTML tags, and add the extra French plural forms where needed.","exampleUseCases":[{"title":"Localizing React app to Spanish","prompt":"I have my English locale file for my React app — it's a JSON with keys like 'welcome_message' and placeholders like {firstName}. Can you translate it into Spanish, keeping all the keys and placeholders untouched?"},{"title":"Adding Russian plural forms to YAML","prompt":"Translate this YAML locale file from English into Russian and make sure you add all the correct plural forms that Russian needs for things like {{count}} items — the keys and ICU syntax must stay exactly the same."},{"title":"Converting gettext PO file to Japanese","prompt":"I've got a gettext .po file I need translated into Japanese. Translate only the human-readable strings, leave the msgid keys and any %s or %(name)s format specifiers byte-for-byte identical."}],"resultDescription":"Returns the translated locale file in the same format as the input (JSON, YAML, PO, etc.) with all keys, placeholders ({name}, {{count}}, %s, %(name)s, %{count}), ICU plural/select syntax, HTML tags, and URLs preserved exactly. Only the human-readable text is translated. Additional plural forms are inserted where the target language requires them.","failureModes":["Unsupported file format returns an error","Malformed or syntactically broken input file may produce garbled output","Extremely long files may exceed processing limits","Low-resource or rare target languages may produce lower quality translations","HTTP GET method required; using POST or other verbs will fail","Missing or malformed input parameter returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need to translate structured app locale files (JSON, YAML, PO, ICU) rather than plain prose, and correctness of non-translatable tokens (placeholders, HTML, URLs, ICU syntax) is critical. It is specifically designed to handle software i18n formats and automatically adds plural forms for languages that require them, making it far safer than passing raw locale file text to a generic translation service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:31:16.547Z","isFirstParty":false,"canonicalSlug":"aiskills402-translate-app-text-53118b7d"}