Skip to content

docs: add fcode-i18n skill for workspace locales and translations - #18

Merged
marcos-muino-garcia merged 3 commits into
mainfrom
feature/add-i18n-skill
Aug 12, 2026
Merged

docs: add fcode-i18n skill for workspace locales and translations#18
marcos-muino-garcia merged 3 commits into
mainfrom
feature/add-i18n-skill

Conversation

@marcos-muino-garcia

@marcos-muino-garcia marcos-muino-garcia commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Documents the platform i18n feature (factorial-code#318) across the skill set.

New skill: fcode-i18n

Canonical owner of the i18n concept:

  • Locale files (i18n/<locale>.yaml, nested ≡ flat dotted keys, %{name} placeholders, case-sensitive identifiers) and the read-only, gitignored i18n/<locale>.inherited.yaml with key-by-key override layering.
  • The fcode.i18n(key, args, options) helper in JavaScript and Python — never-fails semantics, { version } pinning, fcode.i18n.locale, and the never-alias rule (aliased calls throw "i18n is disabled" because translations ship on static detection of fcode.i18n().
  • Form-schema fcode.i18n("key") tokens, substituted server-side before the schema is served.
  • Execution-locale selection (?locale= / Fcode-Locale, run-now, schedules, rerun) and the primary-locale fallback, including locale being a reserved parameter name.
  • CLI sync (fcode i18n:pull|push|status|add|remove|reset, aggregate pull/push, fcode run --locale) and an agent workflow for internationalizing existing code — there is no extract command; the agent moves hardcoded strings into locale files and the CLI syncs them.
  • Locale versioning: immutable snapshots, per-locale aliases, per-file pinned resolution, and workspace-version pinning of bare calls (options-object form for fcode.i18n, string form for fcode.import).
  • REST endpoints, the FcodeI18n SDK class, and the four MCP locale tools.

Sync edits

  • fcode-forms: replaced the outdated Internationalization section in references/advanced.md with a pointer to the server-side token model in fcode-i18n, documented the locale / data-fcode-form-locale embed option, added a gotcha.
  • fcode-cli: i18n:* command summary, run --locale, locale as a reserved webhook name, primaryLocale in the team.json field table.
  • fcode-core-concepts: Locales key-concept row, i18n/ in the workspace tree, locale pinning in the versioning section.
  • fcode-javascript / fcode-python (mirrored): never-alias gotcha and helper snippet.
  • fcode-agent: the four MCP locale tools (save_locale replaces the whole file).
  • fcode-json-schema: schema strings accept i18n tokens.
  • README skills table and CONTRIBUTING ownership table (i18n moves from fcode-forms to fcode-i18n).

Verification

  • npx skills-ref validate passes for all 9 skills.
  • The JS/Python twins heading-diff check passes.
  • Facts checked against factorial-code commit 92c29c94d (docs pages, CLI source, executor helpers, MCP tool definitions).

🤖 Generated with Claude Code

Document the i18n feature (factorial-code#318): locale files, the
fcode.i18n helper, form-schema tokens, execution-locale selection,
inheritance, versioning/pinning, CLI i18n:* commands, and the
internationalize-existing-code agent workflow. Replace the stale
i18nVariables section in fcode-forms (removed in fcode-react-forms
2.0.0) and add pointers in cli, core-concepts, the JS/Python twins,
agent, json-schema, README, and the CONTRIBUTING ownership table.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
marcos-muino-garcia and others added 2 commits August 12, 2026 12:19
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@marcos-muino-garcia
marcos-muino-garcia merged commit 08f0266 into main Aug 12, 2026
1 check passed
@marcos-muino-garcia
marcos-muino-garcia deleted the feature/add-i18n-skill branch August 12, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants