docs: add fcode-i18n skill for workspace locales and translations - #18
Merged
Conversation
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>
jorgeteixe
approved these changes
Aug 12, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the platform i18n feature (factorial-code#318) across the skill set.
New skill:
fcode-i18nCanonical owner of the i18n concept:
i18n/<locale>.yaml, nested ≡ flat dotted keys,%{name}placeholders, case-sensitive identifiers) and the read-only, gitignoredi18n/<locale>.inherited.yamlwith key-by-key override layering.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 offcode.i18n().fcode.i18n("key")tokens, substituted server-side before the schema is served.?locale=/Fcode-Locale, run-now, schedules, rerun) and the primary-locale fallback, includinglocalebeing a reserved parameter name.fcode i18n:pull|push|status|add|remove|reset, aggregatepull/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.fcode.i18n, string form forfcode.import).FcodeI18nSDK class, and the four MCP locale tools.Sync edits
fcode-forms: replaced the outdated Internationalization section inreferences/advanced.mdwith a pointer to the server-side token model infcode-i18n, documented thelocale/data-fcode-form-localeembed option, added a gotcha.fcode-cli:i18n:*command summary,run --locale,localeas a reserved webhook name,primaryLocalein theteam.jsonfield 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_localereplaces the whole file).fcode-json-schema: schema strings accept i18n tokens.fcode-formstofcode-i18n).Verification
npx skills-ref validatepasses for all 9 skills.92c29c94d(docs pages, CLI source, executor helpers, MCP tool definitions).🤖 Generated with Claude Code