Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Pseudolocalize Text

localization.pseudolocalize

ProductionEngine wrapper (Class A)Deterministicstrictfastv1.0.0
No network

Overview

You send UI text, a mode, and how placeholders are written. ACCENTED maps Latin letters and adds combining marks. EXPANDED does the same then pads to expansionPercent. BIDI wraps translatable runs with RLI and PDI. Nested ICU arguments stay copied verbatim. wrap surrounds the result with square brackets. This is not a translation. A successful call costs 1 execution credit.

Layout and placeholder bugs show up in accented, expanded or bidi text. A model cannot apply a stable transform without eating {name}.

Reliability

Same text, same mode, same syntax, same wrap, same ICU version, same answer. Malformed placeholders are not protected; the rest of the string is still transformed.

Context footprint

One UI string in. A successful call costs 1 execution credit.

When to use it

When you hold UI copy and need a deterministic pseudo locale that keeps placeholders.

When you want a real translation, or a verdict on existing bidi controls.

Powered by ICU4J string transforms (com.ibm.icu:icu4j).

Scope

Note
Deterministically accents, expands or bidi-wraps UI text while copying placeholders verbatim.

Non-goals

  • Does not translate the string
  • Does not parse HTML or other markup
  • Does not take screenshots or measure layout overflow

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

data-transformation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input512 KB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
textstringYesUI string to transform; placeholders in this string may be protected.
modestringYesACCENTED maps letters, EXPANDED also pads, BIDI wraps translatable runs.
expansionPercentintegerNoPercent of translatable length to append as padding in EXPANDED mode.
placeholderSyntaxstringNoNONE copies nothing; SIMPLE_BRACES and ICU_MESSAGE copy outermost placeholders.
wrapbooleanNoWhen true the transformed string is wrapped in square brackets. Omit it for true.

Output schema

FieldTypeRequiredDescription
textstringYesTransformed UI string with placeholders copied from the input.
protectedTokenCountintegerYesCount of outermost placeholders that were copied without transformation.
expansionRationumberYesOutput UTF-16 length divided by input length, four decimal places, or 0 if empty.
_metaobjectYesClosed ICU and CLDR versions used for this answer, with icuVersion and cldrVersion strings.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"localization.pseudolocalize","input":{"text":"Hello {name}","mode":"ACCENTED","placeholderSyntax":"SIMPLE_BRACES"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("localization.pseudolocalize", {"text":"Hello {name}","placeholderSyntax":"SIMPLE_BRACES","mode":"ACCENTED"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not translate the string
  • Does not parse HTML or other markup
  • Does not take screenshots or measure layout overflow
  • Shipping the result as a real translation
  • Checking whether bidi controls in source are balanced

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "localization.pseudolocalize",
  "input": {
    "text": "Hello {name}",
    "placeholderSyntax": "SIMPLE_BRACES",
    "mode": "ACCENTED"
  }
}

Examples

Accented text with a simple placeholder

Inputjson
{
  "text": "Hello {name}",
  "placeholderSyntax": "SIMPLE_BRACES",
  "mode": "ACCENTED"
}
Expected outputjson
{
  "protectedTokenCount": 1,
  "text": "[Ħé́ĺĺó́ {name}]",
  "expansionRatio": 1.3333,
  "_meta": {
    "icuVersion": "76.1",
    "cldrVersion": "46.0"
  }
}
Tip
Letters are accented and {name} is copied

Bidi isolates around translatable text

Inputjson
{
  "text": "Hi",
  "wrap": false,
  "mode": "BIDI"
}
Expected outputjson
{
  "protectedTokenCount": 0,
  "text": "⁧Hi⁩",
  "expansionRatio": 2,
  "_meta": {
    "icuVersion": "76.1",
    "cldrVersion": "46.0"
  }
}
Tip
The translatable run is wrapped with RLI and PDI
  • Stressing a button label before a translator starts
  • Checking that an ICU plural argument survived a pseudo pass

Avoid for

  • Shipping the result as a real translation
  • Checking whether bidi controls in source are balanced

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

i18npseudolocaletransformationplaceholders