Skip to content

feat(i18n): add 42 translation keys for TraderConfigModal#1374

Merged
tinkle-community merged 1 commit intoNoFxAiOS:devfrom
xsa-dev:dev
Feb 9, 2026
Merged

feat(i18n): add 42 translation keys for TraderConfigModal#1374
tinkle-community merged 1 commit intoNoFxAiOS:devfrom
xsa-dev:dev

Conversation

@xsa-dev
Copy link
Contributor

@xsa-dev xsa-dev commented Feb 8, 2026

Summary

Fix hardcoded Chinese strings in TraderConfigModal component that were displayed even when English language was selected.

Changes

  • Added 42 new translation keys to web/src/i18n/translations.ts
  • Replaced 48 hardcoded Chinese strings with t('key', language) calls in web/src/components/TraderConfigModal.tsx
  • All new keys include both English and Chinese translations

Key Translations Added

Key English Chinese
createTraderButton Create Trader 创建交易员
saveSuccess Saved successfully 保存成功
cancel Cancel 取消
show Show 显示
hide Hide 隐藏

Testing

English text now displays correctly when English is selected in language settings.

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings
@cla-assistant
Copy link

cla-assistant bot commented Feb 8, 2026

CLA assistant check
All committers have signed the CLA.

@xsa-dev xsa-dev mentioned this pull request Feb 8, 2026
23 tasks
@xsa-dev
Copy link
Contributor Author

xsa-dev commented Feb 8, 2026

Status Update for Maintainers:

This PR #1374 adds zh (Chinese) language translations for TraderConfigModal.tsx.

Note: There is also PR #1343 by @maker95 which is working on i18n improvements with es (Spanish) language. Both PRs modify the same files:

  • web/src/i18n/translations.ts
  • web/src/components/TraderConfigModal.tsx

We use t('key', language) pattern while #1343 uses tr('traderConfigModal.xxx', language) pattern.

Options to resolve:

  1. Rebase this PR onto I8n improvements #1343's branch and use the same tr() pattern
  2. Close this PR and add zh translations directly to I8n improvements #1343
  3. Merge both PRs separately and resolve conflicts during merge

Let us know which approach you prefer, and we're happy to help coordinate! 🙏

xsa-dev added a commit to xsa-dev/nofx that referenced this pull request Feb 8, 2026
- 275+ translation keys from 8 strategy components
- 3 languages: English, Chinese, Spanish
- Ready for integration into translations.ts
- Pre-aggregated exports for zhStrategy, enStrategy, esStrategy

Related to PR NoFxAiOS#1343 (maker95) and NoFxAiOS#1374 (xsa-dev)
xsa-dev added a commit to xsa-dev/nofx that referenced this pull request Feb 8, 2026
- Consolidate 275+ translation keys into strategy-translations.ts
- Migrate 8 strategy components to use centralized i18n pattern
- Components: CoinSourceEditor, GridRiskPanel, RiskControlEditor,
  GridConfigEditor, PromptSectionsEditor, IndicatorEditor,
  PublishSettingsEditor, ChartTabs
- Add Spanish (es) translations for all strategy components
- Remove inline { zh, en } translation objects from components
- Use standard t(key, language) pattern throughout

Related: NoFxAiOS#1343 (maker95 - es language), NoFxAiOS#1374 (xsa-dev - zh TraderConfigModal)
Co-authored-by: xsa-dev <xsa-dev@users.noreply.github.com>
@tinkle-community tinkle-community merged commit 95daa39 into NoFxAiOS:dev Feb 9, 2026
1 check passed
tinkle-community pushed a commit that referenced this pull request Feb 9, 2026
…#1375)

* feat(i18n): add 42 translation keys for TraderConfigModal

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings

* feat(i18n): add consolidated translation keys (en + zh + es)

- 275+ translation keys from 8 strategy components
- 3 languages: English, Chinese, Spanish
- Ready for integration into translations.ts
- Pre-aggregated exports for zhStrategy, enStrategy, esStrategy

Related to PR #1343 (maker95) and #1374 (xsa-dev)
Hansen1018 pushed a commit to Hansen1018/nofx that referenced this pull request Feb 9, 2026
)

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings
gqzydh pushed a commit to gqzydh/nofx that referenced this pull request Feb 13, 2026
)

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings
Hansen1018 added a commit to Hansen1018/nofx that referenced this pull request Feb 26, 2026
)

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings
Hansen1018 pushed a commit to Hansen1018/nofx that referenced this pull request Mar 11, 2026
…NoFxAiOS#1375)

* feat(i18n): add 42 translation keys for TraderConfigModal

- Add new translation keys for all hardcoded Chinese strings
- Replace hardcoded UI text with t('key', language) calls
- Support both English and Chinese languages

Modified files:
- web/src/i18n/translations.ts: +88 lines (42 new keys)
- web/src/components/TraderConfigModal.tsx: replaced 48 hardcoded strings

* feat(i18n): add consolidated translation keys (en + zh + es)

- 275+ translation keys from 8 strategy components
- 3 languages: English, Chinese, Spanish
- Ready for integration into translations.ts
- Pre-aggregated exports for zhStrategy, enStrategy, esStrategy

Related to PR NoFxAiOS#1343 (maker95) and NoFxAiOS#1374 (xsa-dev)
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.

2 participants