Skip to content

Conversation

@eastgold15
Copy link

Summary

  • Replace all Chinese comments and messages with English translations across the entire codebase
  • Improve code internationalization and maintainability
  • Update error messages, log outputs, and documentation strings
  • Maintain technical accuracy and context in translations

Files Changed

  • Updated 15 files including generators, templates, and utility files
  • All Chinese text has been translated to appropriate English equivalents
  • Preserved code structure and technical meaning

Test plan

  • Verify all comments are now in English
  • Check that code functionality remains unchanged
  • Ensure translations maintain technical accuracy

🤖 Generated with Claude Code

eastgold15 and others added 12 commits October 18, 2025 21:51
- 新增完整的monorepo生成器,支持Vue + ElysiaJS全栈开发
- 实现完整的后端模块化架构(modules、libs、plugins、utils)
- 添加完整的错误处理系统(自定义错误类、数据库错误映射、全局错误处理)
- 实现用户模块示例(model、service、controller)
- 添加数据库辅助工具(schema helper、common schemas、connection、health check)
- 完善Vue前端模板(Tailwind CSS、自动导入、API工具链)
- 实现类型安全的API调用系统(Eden Treaty + Toast通知)
- 添加完整的开发配置(TSConfig、Vite、Biome)
- 支持Drizzle ORM集成和健康检查
- 优化用户交互体验(询问telegram支持、前端框架选择等)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Updated backend utility comments and error messages
- Translated frontend UI text and descriptions
- Converted all database error messages to English
- Updated health check logging messages
- Replaced Chinese API test text with English equivalents
- Standardized all developer-facing messages in English

This ensures international consistency and better accessibility for global contributors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add .claude/settings.local.json to gitignore - Rename main.css to
main.css.ts for consistency - Reorder Vue template exports
alphabetically - Add fs.allow to Vite config for backend access -
Improve database connection logging with safe URL display - Standardize
indentation with tabs in template files
- Add 6 missing Vue packages to src/deps.ts for centralized version control
- Include tailwindcss v4, @tailwindcss/vite, unplugin-auto-import, unplugin-vue-components
- Add vue-sonner for toast notifications and @egoist/tailwindcss-icons for icons
- Update frontend-package.json.ts to use centralized dependencies instead of hardcoded versions
- Fix remaining Chinese comments and messages in Vue templates
- Add proper database connection logging with URL sanitization
- Improve error messages in API utilities for better UX

This ensures consistent version management across the project and removes hardcoded fallback versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add try-catch error handling to monorepo and single-app generators
- Standardize code indentation and format import statements
- Fix the bunx command in the lint:fix script
- Remove the useless .claude configuration file
- Optimize the code structure and readability
…tion

- Optimize the format and rule settings of the biome.json configuration file
- Refactor the database schema import logic in the monorepo and single-app generators
- Unify the Git configuration handling method in the generators
- Update the comments and type definitions in the template files
- Improve the plugin dependency management mechanism
- Optimize the TypeScript configuration of the front-end template
- Update the project name display and language settings in the Vue template
- Refactor the API hook and Treaty client configuration
- Improve the plugin dependency mapping and package manager configuration in the utility functions
- Refactor plugin dependency mapping to distinguish between runtime and dev dependencies
- Add PluginName type and PluginDependency interface
- Update getSingleAppDepsAndScripts function to support dependency classification
- Refactor package.json templates to use new dependency management system
- Support more precise dependency management, e.g., @kitajs/ts-html-plugin as dev dependency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update getSingleAppDepsAndScripts function parameter type
- Change packageManager parameter from string to PackageManager type
- Ensure type consistency across pmExecuteMap usage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Create backend-helpers.ts with shared utilities for both generators
- Extract getDatabaseSchemaImport function to eliminate duplication
- Add generateDatabaseFiles, generateBackendDirectories, and generateCommonBackendFiles helpers
- Update monorepo.ts and single-app.ts to use shared utilities
- Fix missing package.json.ts import in types/index.ts
- Follow DRY principle to improve maintainability and reduce maintenance burden

Benefits:
- Single source of truth for backend generation logic
- Easier to maintain and extend with new features
- Consistent behavior between monorepo and single-app generators
- Reduced code duplication from ~20 lines to shared utility functions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…lication

- Create preference-collectors.ts with shared utility functions
- Extract collectCommonBackendPreferences to unify ORM, database, driver, and plugin selection
- Extract collectOtherToolsPreferences to handle S3, Redis, Docker, VSCode, etc.
- Extract collectTelegramPreferences and collectFrontendPreferences for modularity
- Update monorepo.ts to use shared collectors with monorepo-specific options
- Update single-app.ts to use shared collectors with single-app-specific options
- Remove ~80 lines of duplicate code between the two generators
- Add flexible configuration options for each generator type

Benefits:
- Single source of truth for preference collection logic
- Reduced maintenance burden - changes only need to be made in one place
- Consistent user experience across both generator types
- Easier to add new preferences or modify existing ones
- Modular design allows for easy customization per generator type

Before: 115 lines of duplicate preference collection logic
After: 3 lines calling shared utility functions with specific configurations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ator

- Remove unused imports and template references
- Reorganize the calling order of the generateMonorepo function
- Update the directory creation logic in generateBackendApp
- Adjust the import method in generateCommonBackendFiles
- Improve the dynamic import handling in preference-collectors
- Unify the code indentation and formatting style
- Optimize the consistency of function parameter passing and variable naming
- Replace Chinese comments with English translations in all source files
- Improve code internationalization and maintainability
- Update error messages, log outputs, and documentation strings
- Maintain technical accuracy and context in translations
- Cover generators, templates, and utility files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant