feat: add i18n translation examples to app-todo and app-crm#659
Merged
feat: add i18n translation examples to app-todo and app-crm#659
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance internationalization example in documentation
feat: add i18n translation examples to app-todo and app-crm
Feb 13, 2026
hotlong
approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive internationalization (i18n) examples to both app-todo and app-crm example applications, demonstrating the TranslationBundle schema support that exists in @objectstack/spec/system. Prior to this PR, no working i18n examples existed in the repository.
Changes:
- Added multi-locale translation bundles to
app-todo(English, Simplified Chinese, Japanese) andapp-crm(English, Simplified Chinese, Japanese, Spanish) - Introduced
translations/directory structure following the established barrel-import convention - Updated README.md to document i18n coverage and add translations to the standard file structure
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/app-todo/src/translations/todo.translation.ts | Complete translation bundle for Task object covering all 19 fields, select options, app labels, 19 UI messages, and 2 validation messages across 3 locales |
| examples/app-todo/src/translations/index.ts | Barrel export for todo translations |
| examples/app-todo/objectstack.config.ts | Wires translation bundles into stack definition using Object.values(translations) pattern |
| examples/app-crm/src/translations/crm.translation.ts | Translation bundle for 4 core CRM objects (Account, Contact, Lead, Opportunity) with field labels and select options across 4 locales |
| examples/app-crm/src/translations/index.ts | Barrel export for CRM translations |
| examples/app-crm/objectstack.config.ts | Wires translation bundles into stack definition |
| examples/README.md | Documents i18n feature in both examples, adds translations row to System Protocol coverage table, and includes translations/ in standard directory structure |
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.
No i18n examples existed despite comprehensive
TranslationBundleSchemasupport in the spec. Adds working translation bundles to both example apps.app-todo (3 locales: en, zh-CN, ja-JP)
app-crm (4 locales: en, zh-CN, ja-JP, es-ES)
Wiring pattern
Both follow the existing barrel-import convention:
Each
*.translation.tsexports a typedTranslationBundlecovering objects, apps, messages, and validationMessages:README
translations/to standard file structure conventionOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.