/selise-blocks:blocks-localization-configurationfrom selise-blocks
Authors and syncs SELISE Blocks i18n JSON dictionaries via the blocks CLI: validate, push, pull, manage languages, modules, and glossary terms.
Ships in selise-blocks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When invoking a project-scoped blocks command, either use the resolved account's saved selection or pass --project <tenantId> for that one command without changing saved state. --project applies to CLI commands only, never SDK calls.
Translations (i18n) for a Blocks project's static UI text — labels, titles, button copy — are authored locally as JSON and synced to the Localization service entirely through the blocks CLI. There is no supported reason to hand-roll raw fetch/curl calls anymore, and there's no SDK-based authoring path either — @seliseblocks/client's localization surface (languages(), modules(), languagesForCurrentTenant(), translations(), cloudTranslations(), keysByNames()) is entirely read-only, meant for apps to consume translations at runtime, not to author them. Authoring is CLI-only.
Prerequisite: blocks init has been run and a project is selected (blocks use <tenantId>). blocks init and blocks new web both create the blocks/localization/ folder (new web also seeds common.en.json); the dictionary files themselves appear when blocks localization pull writes one out or you author one by hand. If either the project selection is missing, or auth state is unknown, run the blocks-bootstrap skill first — it covers auth status probing, login, and project selection in detail; this skill assumes that's already done.
| Command | What it does |
|---|---|
blocks localization validate --module <name> --language <culture> [--file <path>] [--json] | Validates a local i18n JSON dictionary. Local-only, no API call. |
blocks localization push --module <name> --language <culture> [--file <path>] [--route <route>] [--context <text>] [--publish once|per-key|none] [--dry-run] [--yes] [--json] | Creates/updates keys from the local dictionary, merging the pushed culture into each key's existing translations. If the module doesn't exist yet, creates it as a convenience; localization module save can also create an empty module directly. --dry-run reports created/updated counts and the exact merged request. --publish controls UILM regeneration (see below). Mutating. |
blocks localization pull --module <name> --language <culture> [--out <path>] [--json] | Downloads the published cloud dictionary into a local JSON file. Read-only, overwrites the local file. |
--module is the feature-area bundle name (common, login, dashboard, …). --language is a culture code (en, de-DE, bn-BD, …) — see the culture-matching gotcha below before picking one.
Local dictionaries default to:
blocks/localization/<module>.<language>.json
for example blocks/localization/login.de-DE.json. Pass --file/--out to override the path. Content is a flat or nested JSON object of string values — nested objects are flattened with . before validation/push, so either of these is fine and produces the same keys:
{ "form.title": "Anmelden", "form.submit": "Absenden" }
The module already provides the namespace, so do not repeat it in key names: a login module uses title or form.title, not login.title.
{ "form": { "title": "Anmelden", "submit": "Absenden" } }
Key names must match ^[A-Za-z0-9][A-Za-z0-9._:-]*$ (letters, numbers, dot, dash, underscore, colon — no spaces) after flattening, and every value must be a non-empty string. localization validate enforces exactly this, locally, before anything touches the network.
blocks/localization/<module>.<language>.json — write the JSON yourself (nested or flat), covering every key the screen/feature needs.blocks localization validate --module login --language de-DE --json
Fix every flagged key/value before moving on.blocks localization push --module login --language de-DE --dry-run --json
blocks localization push --module login --language de-DE --yes --json
This is mutating. Never skip straight to --yes. By default (--publish once) a push saves every key unpublished and then regenerates the module's UILM file a single time, so a successful push is live for reads right away — the regeneration is part of the push, not a separate step you run.Bulk pushes — --publish. push regenerates the UILM file once per push by default (once). The old behaviour is --publish per-key, which sets shouldPublish on every key so the worker regenerates once per key — on a few-hundred-key push that queues hundreds of regenerations (~15/min) and blocks every other module's publish behind it for tens of minutes. Prefer the default once for anything beyond a handful of keys. Use --publish none to save without regenerating (then run blocks localization key generate-uilm-file --module-id <id> yourself, e.g. after several pushes into the same module).
Optional flags on push: --route <route> tags every key in this push with one route (e.g. the screen path the strings belong to); --context <text> attaches one context/hint string to every key in the push — both apply to the whole file, not per-key.
Each push call carries exactly one --language (one culture stamped onto every key in that file). Translating one module into several languages means one dictionary file and one push per language, all against the same --module:
blocks localization validate --module login --language de-DE --json
blocks localization validate --module login --language bn-BD --json
blocks localization push --module login --language de-DE --dry-run --json
blocks localization push --module login --language bn-BD --dry-run --json
# after approval:
blocks localization push --module login --language de-DE --yes --json
blocks localization push --module login --language bn-BD --yes --json
The module (login) is only created on the first push that needs it; the second push reuses the module the first one created.
blocks localization pull --module login --language de-DE --out blocks/localization/login.de-DE.json --json
Use this to pull down what's actually published before editing further — same reasoning as pulling data schemas before editing them: don't blindly overwrite translations someone else edited in the portal or in a prior session.
Pushing translations into an existing language and configuring the tenant's set of languages are different operations — the latter has its own standalone commands, independent of push/pull:
| Command | What it does |
|---|---|
blocks localization language save --language-name <n> --language-code <c> [--is-default] [--item-id <id>] [--dry-run] [--yes] [--json] | Creates or updates a language (upsert by name). Omit --item-id to create a new one. Re-saving an existing language keeps its isDefault unless --is-default/--is-default=false is passed -- the endpoint would otherwise demote the default. Mutating, full dry-run/confirm gate. |
blocks localization language delete <languageName> [--dry-run] [--yes] [--json] | Deletes a language. Mutating. |
blocks localization language set-default <languageName> [--dry-run] [--yes] [--json] | Marks a language as the tenant default. Mutating. |
blocks localization language list [--json] | Lists all languages. Read-only. |
blocks localization language list-for-tenant [--json] | Lists languages configured for the current tenant. Read-only. |
This is distinct from localization push --language de-DE, which stamps translations onto keys and doesn't touch the tenant's language configuration at all.
A module is still created implicitly by the first localization push into it, but it can also be created or updated on its own, with no keys, via a standalone command:
| Command | What it does |
|---|---|
blocks localization module save --module-name <n> [--item-id <id>] [--dry-run] [--yes] [--json] | Creates or updates a module. Omit --item-id to create a new one. Mutating. |
blocks localization module list [--json] | Lists all modules. Read-only. |
blocks localization module list-for-tenant [--json] | Lists modules configured for the current tenant. Read-only. |
localization push's implicit module creation is a convenience on top of the same underlying call, not the only path to it.
A few more commands round out the surface beyond push/pull/validate/language/module — useful, but secondary to the core authoring workflow above:
| Command | What it does |
|---|---|
blocks localization key translate-and-export --module-id <id> [--wait] [--output-type <0-5>] [--dry-run] [--yes] [--json] | Composed flow: translate-all (machine-translates every untranslated key in the module) → if --wait, polls until the operation settles → generate-uilm-file → uilm-export. Without --wait the three steps just fire back-to-back. Mutating. |
--output-type (here and on key uilm-export) is the export file format, zero-based: 0 Json (the default), 1 Xml, 2 Text, 3 Xlsx, 4 Csv, 5 Xlf. Leaving it off gives Json, so an agent that wants a spreadsheet has to pass 3 explicitly.
| blocks localization glossary save --name <n> [--item-id <id>] [--language <c>] [--type <t>] [--context <text>] [--additional-note <text>] [--is-global] [--module-ids a,b] [--dry-run] [--yes] [--json] | Creates or updates a glossary term. With --item-id the current term is read and merged -- the endpoint rebuilds it from the body, so language/type/context/note/module tags would otherwise be dropped. Mutating. |
| blocks localization glossary list [--search <text>] [--module-id <id>] [--is-global] [--page-number <n>] [--page-size <n>] [--json] | Lists glossary terms. Read-only. |
| blocks localization glossary get <itemId> [--json] | Fetches one glossary term. Read-only. |
| blocks localization glossary suggested <itemId> [--max-results <n>] [--json] | Suggests glossary terms relevant to an item. Read-only. |
| blocks localization glossary delete <itemId> [--dry-run] [--yes] [--json] | Deletes a glossary term. Mutating. |
| blocks localization assistant translation-suggestion --source-text <text> [--current-language <c>] [--destination-language <name>] [--destination-language-code <c>] [--module-id <id>] [--glossary-ids a,b] [--element-type <t>] [--element-application-context <text>] [--element-detail-context <text>] [--max-character-length <n>] [--temperature <n>] [--json] | Gets an AI translation suggestion for a single string. Read-only (no confirm gate). |
| blocks localization config get-webhook [--json] | Gets the tenant's localization webhook config. Read-only. |
| blocks localization config save-webhook --url <url> --content-type <type> --secret <s> --header-key <k> [--is-disabled] [--item-id <id>] [--dry-run] [--yes] [--json] | Saves the tenant's localization webhook config. Mutating; the secret is redacted in --dry-run output. |
--language on push is not validated against configured cultures. localization push stamps whatever string you pass as --language directly into each key's culture field — it does not check that culture against the tenant's actual configured languages, and doesn't call language list/list-for-tenant to look. Get the culture code wrong (de instead of de-DE, or a culture the tenant never configured via language save) and the key saves without error but may never surface at runtime, because runtime lookups match by the tenant's real configured languageCode. Confirm the exact culture code with the user (or run localization language list-for-tenant) before pushing, especially for less common languages like Bengali (bn-BD vs bn).--module name creates it with no separate confirmation prompt beyond the push's own --dry-run/--yes gate — --dry-run output will tell you a module lookup happened, but won't distinguish "will create" from "already exists" as clearly as it could, so read the dry-run JSON's module info carefully, or ask the user to confirm the module name is intentional (typos become new, mostly-empty modules). Prefer localization module save first if the user wants the module created deliberately, without an accompanying key push.localization validate is local-only — it confirms the JSON is well-formed and keys/values pass the naming rules; it does not confirm the push will succeed against the server (module resolution, auth, project selection). Still run --dry-run on the actual push.Key/SaveKeys call that replaces the stored resource list, so four sequential locale pushes left every key holding only the culture pushed last, and the site rendered [ KEY MISSING ] everywhere.)localization pull, key get-uilm-file) read a generated UILM file; saving a key only changes what the next generation will contain. shouldPublish: true is baked into every key localization push sends, and key save now defaults to it too (--should-publish=false opts out), so both queue that regeneration — but it runs asynchronously on a worker. If a just-pushed value still reads [ KEY MISSING ], force it with blocks localization key generate-uilm-file --module-id <moduleId> --yes (--guid defaults to the module id) before assuming the write failed. key uilm-export is a different thing again: a downloadable export, not what the runtime serves.language delete and set-default are permanent, mutating calls — always dry-run first, and confirm with the user before deleting a language or changing the tenant default, since either can affect what's visible at runtime for existing translations.login.de-DE.json after validate + dry-run + approval.de-DE, bn-BD), same module.common module for shared strings like Save/Cancel/Delete." → write common.<language>.json with those keys, validate, push (this is what creates the common module) — or use localization module save --module-name common directly if no keys exist yet.localization language save --language-name Bengali --language-code bn-BD --dry-run, confirm, then --yes — a language-config change, not a push.login module and give me the export." → localization key translate-and-export --module-id <id> --wait --dry-run → confirm → --yes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocks25 skills in this plugin
/blocksStart here for any SELISE Blocks work. Routes a plain-language request — sign-in and projects, SSO, users, roles, MFA, data schemas and records, file storage, translations, mail, notifications, workflows, functions, proxies, secrets, deployments — to the right Blocks skill, and carries the rules every Blocks skill follows: the blocks CLI and @seliseblocks/client SDK only, never raw HTTP to the platform API; --dry-run before --yes; never read the CLI's credential files; when to report a finding. Use whenever work touches SELISE Blocks, the blocks CLI, or @seliseblocks/client./blocks-bootstrapGet a user from any starting state to a working SELISE Blocks setup — CLI installed, logged in, project selected — using the `blocks` CLI, never raw fetch/curl. Detects state from `blocks auth status --json` and `blocks doctor --json`, then routes to a flow: select or create a project, inventory a project that already exists, resolve the app's OIDC client, add a social identity provider, create the first end user, scaffold a new web app, or wire an existing one. Use for a new user, for `not_logged_in`/`project_not_selected`, or whenever login/project/app state is unclear./blocks-captchaConfigure the login captcha of a SELISE Blocks project through the blocks CLI ('captcha list/get/save/enable/disable/delete'): register a reCAPTCHA or hCaptcha site key and secret, switch it on or off, see which configuration blocks-iam actually enforces at login, and retire one. CLI-only, project-scoped; the captcha secret is stored server-side and never shown. Use for 'enable captcha on login', 'change the recaptcha keys', 'why is captcha not showing', 'turn captcha off'./blocks-data-gateway-configurationConfigure a SELISE Blocks project's data model via the blocks CLI — never raw fetch/curl against api.seliseblocks.com. Covers data-source config (data config get/create/update), schema authoring and push (data schema list/pull/push, plus granular get/fields/info/indexes commands), data-access policies (data rules pull/deploy/policy), field-level validation rules (data validation *), and reloading so changes go live (data reload, or the composed data sync). Use for defining, editing, securing, validating, or reloading a project's DATA MODEL — schema fields, access policies, and validation rules./blocks-data-gateway-crudImplement create/read/update/delete against a SELISE Blocks project's runtime Data Gateway using the @seliseblocks/client SDK. Use data.collection(schemaName) for straightforward per-item CRUD, data.graphql() for joins or custom query shapes, and data.schemas.*/data.validations.* for schema/validation metadata. Shows how to wire CRUD into the React 18 + Vite + TanStack Query app that blocks new web scaffolds. Use whenever the user wants to read or write actual records through a Blocks Data schema from app code./blocks-data-storageBuild file and document-management features on SELISE Blocks Data: upload/download, directory trees, cursor-paginated browsing and search, file versions, rename/move/copy, soft delete/trash/restore, sharing, access policies, and inheritance. Use for attachments, file browsers, folders, shared files, permissions, or version history. Use 'blocks data files *' for terminal/admin work and @seliseblocks/client data.files/data.directories/data.objects for app code.Other plugins' skills for the same job