chore: improve i18n workflow with semantic__type suffix convention#10131
Merged
huhuanming merged 11 commits intoOneKeyHQ:xfrom Mar 11, 2026
Merged
chore: improve i18n workflow with semantic__type suffix convention#10131huhuanming merged 11 commits intoOneKeyHQ:xfrom
huhuanming merged 11 commits intoOneKeyHQ:xfrom
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
huhuanming
reviewed
Feb 11, 2026
huhuanming
reviewed
Feb 11, 2026
88f3b16 to
7454b35
Compare
7454b35 to
0ca1bad
Compare
huhuanming
previously approved these changes
Feb 12, 2026
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
originalix
reviewed
Feb 24, 2026
cbe0517 to
b9b87ba
Compare
🔍 Code Review Report检查时间: 2026-02-25 05:00 CST 变更摘要:
Review 意见: ✅ 优点:
总体评价: LGTM 👍 这是一个组织良好的改进,提升了 i18n 工作流的可维护性。 Reviewed by BoringClaw 🤖 |
b9b87ba to
be1ad8f
Compare
originalix
approved these changes
Feb 25, 2026
originalix
previously approved these changes
Feb 27, 2026
originalix
reviewed
Feb 27, 2026
c31e9ab to
aeb0ee7
Compare
… placeholder validation - Add i18n:add script to create Lokalise keys with semantic__type suffix convention - Add i18n:search script for searching existing translation keys - Rename fetch:locale to i18n:pull for consistent naming - Use 1Password CLI (yarn op) for secrets instead of dotenv - Add ICU placeholder extraction and en/zh mismatch validation - Add root-level yarn i18n:add, i18n:search, i18n:pull shortcuts - Update CLAUDE.md, SKILL.md, AGENTS.md docs with new CLI commands
Shared package is for app runtime code. Dev tooling scripts belong in development/scripts/ alongside other build and CI scripts.
- Fix grouping to use full semantic prefix before __ instead of first word only - Update next-step hint to use root-level yarn i18n:pull command
aeb0ee7 to
396bf2c
Compare
originalix
previously approved these changes
Mar 10, 2026
huhuanming
previously approved these changes
Mar 11, 2026
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
auto-merge was automatically disabled
March 11, 2026 05:26
Head branch was pushed to by a user without write access
- Wrap JSON.parse in try/catch to prevent uncaught exception on malformed API response - Add .catch() handler on main() to prevent unhandled promise rejection
originalix
approved these changes
Mar 11, 2026
sidmorizon
approved these changes
Mar 11, 2026
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
{semantic_key}__{type}suffix format (e.g.send__title,confirm_send__action)i18n:searchfor local key lookup,i18n:addfor Lokalise API, renamedfetch:locale→i18n:pull/1k-i18nskill for details4 type suffixes
__title__action__desc__msgNote on auto-generated files
translations.tsandlocaleJsonMap.tshave a comment change (yarn fetch:locale→yarn i18n:pull). The build template inbuild-locale-json-map.jswas also updated, so nexti18n:pullrun will produce consistent output. This is an intentional one-time sync.Test plan
yarn workspace @onekeyhq/shared i18n:search "send"works with suffix detectionyarn workspace @onekeyhq/shared i18n:add send__title "Send"validates suffix formatyarn workspace @onekeyhq/shared i18n:pullsyncs correctly🤖 Generated with Claude Code