Repository navigation
feat: add multi-tab dev runner and i18n type generation - #253
Merged
Merged
Conversation
…ONS to use i18n - Add Chinese string detection to i18n-check.ts script - Simplify KNOWN_PERMISSIONS to only contain risk field - Refactor getPermissionInfo() to return translated text via i18n - Convert MiniappDetailActivity.tsx to use i18n for all UI strings - Add permission translations to all 4 locale files (zh-CN, en, zh-TW, ar) - Export permissions module from ecosystem service
- Add i18n-set.ts for batch setting translation keys across all locales - Add i18n-delete.ts for removing translation keys from all locales - Update i18n-check.ts to show quick tool usage hints on errors - Support locale shortcuts (zh -> zh-CN, tw -> zh-TW) - Support nested key paths (e.g., validation.required)
- Add scripts/dev.ts: multi-tab terminal manager with PTY support - Add scripts/dev/: types, commands, process-manager, control-panel - Add scripts/i18n-types.ts: i18next type generation using i18next-cli - Add scripts/i18n-types-watch.ts: watch mode for i18n type updates - Update package.json: new dev, i18n:types scripts, typecheck pre-generates types - Update tsconfig.app.json: remove src/i18n/** exclude - Update .gitignore: ignore generated i18n type files - Install i18next-cli dependency Features: - Option+←/→ to switch tabs, ↑/↓ to select, Enter/S/R/Q for actions - Process lifecycle management with zombie process handling - Automatic i18n type generation before typecheck
test:storybook was running before workspace dependencies were built, causing 'does not provide an export' errors when key-ui tried to import from key-utils before it was compiled.
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.
Summary
pnpm dev): 使用 Bun PTY 支持同时运行多个开发命令i18next-cli在 typecheck 前自动生成类型,解决 tsc 性能问题Changes
新增文件
scripts/dev.tsscripts/dev/types.tsscripts/dev/commands.tsscripts/dev/process-manager.tsscripts/dev/control-panel.tsscripts/i18n-types.tsscripts/i18n-types-watch.ts修改文件
package.json: 新增dev,i18n:typesscripts;typecheck:run前置 i18n 类型生成tsconfig.app.json: 移除src/i18n/**exclude.gitignore: 添加生成的 i18n 类型文件Usage
解决的问题
src/i18n/**被 exclude 导致的类型检查缺失问题i18next.d.ts引用大量 JSON 导致的 tsc 性能问题