Pseudolocalize Text
localization.pseudolocalize
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
Non-goals
- Does not translate the string
- Does not parse HTML or other markup
- Does not take screenshots or measure layout overflow
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
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.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | UI string to transform; placeholders in this string may be protected. |
| mode | string | Yes | ACCENTED maps letters, EXPANDED also pads, BIDI wraps translatable runs. |
| expansionPercent | integer | No | Percent of translatable length to append as padding in EXPANDED mode. |
| placeholderSyntax | string | No | NONE copies nothing; SIMPLE_BRACES and ICU_MESSAGE copy outermost placeholders. |
| wrap | boolean | No | When true the transformed string is wrapped in square brackets. Omit it for true. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | Transformed UI string with placeholders copied from the input. |
| protectedTokenCount | integer | Yes | Count of outermost placeholders that were copied without transformation. |
| expansionRatio | number | Yes | Output UTF-16 length divided by input length, four decimal places, or 0 if empty. |
| _meta | object | Yes | Closed ICU and CLDR versions used for this answer, with icuVersion and cldrVersion strings. |
API contract
POST /v1/executecurl -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"}}'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
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 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)
{
"skillKey": "localization.pseudolocalize",
"input": {
"text": "Hello {name}",
"placeholderSyntax": "SIMPLE_BRACES",
"mode": "ACCENTED"
}
}Examples
Accented text with a simple placeholder
{
"text": "Hello {name}",
"placeholderSyntax": "SIMPLE_BRACES",
"mode": "ACCENTED"
}{
"protectedTokenCount": 1,
"text": "[Ħé́ĺĺó́ {name}]",
"expansionRatio": 1.3333,
"_meta": {
"icuVersion": "76.1",
"cldrVersion": "46.0"
}
}Bidi isolates around translatable text
{
"text": "Hi",
"wrap": false,
"mode": "BIDI"
}{
"protectedTokenCount": 0,
"text": "Hi",
"expansionRatio": 2,
"_meta": {
"icuVersion": "76.1",
"cldrVersion": "46.0"
}
}Recommended use cases
- 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
Related skills
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.