Commit Graph

9 Commits

Author SHA1 Message Date
GitHub Action
35e56a441c [auto-fix] Apply ESLint and Prettier fixes 2025-09-13 10:27:34 +00:00
snomiao
7306c6f04f fix: Improve i18n collection script setup
- Move setup-browser-globals import to top to fix location undefined error
- Skip user setup for i18n tests to avoid duplicate user conflicts
- Run i18n tests serially with workers=1 to prevent race conditions
- Add unique test-based usernames for better test isolation
2025-09-13 09:24:20 +00:00
snomiao
f697717b4d feat(collect-i18n-node-defs): add mock for object_info API endpoint to allow script execution without backend
fix(collect-i18n-node-defs): create empty locale files if no node definitions are collected to prevent build failures
2025-09-13 07:48:52 +00:00
snomiao
540b6f3d26 fix: Add babel configuration for Playwright to handle TypeScript declare fields
- Configure babel plugins for TypeScript with allowDeclareFields option
- Add module resolver for @ alias to src directory
- Create custom babel plugin to stub Vue/CSS imports
- Add browser globals polyfill using happy-dom for Node.js context
- Update playwright.i18n.config.ts with babel configuration

This enables collect-i18n tests to run with proper TypeScript and module transformations.
2025-09-12 08:16:37 +00:00
Chenlei Hu
bde518fa13 [CI] Update i18n-node-defs GH action (#3047) 2025-03-14 12:08:08 -04:00
Chenlei Hu
30c750f787 [i18n] Ignore devtools nodes for i18n (#2835) 2025-03-03 16:57:52 -05:00
bymyself
76818b54e6 Fix widget label extraction (#2737) 2025-02-26 13:44:05 -05:00
bymyself
e7420fe2e3 Translate runtime-generated widget labels (#2688) 2025-02-23 10:16:25 -05:00
Chenlei Hu
e82d795ff9 Trigger node def locale update manually (#2170) 2025-01-06 10:54:59 -05:00