From 780bb39a925930dcbcbb6e519da7a9364bd636b7 Mon Sep 17 00:00:00 2001 From: tinkle-community Date: Mon, 16 Mar 2026 08:01:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20strategy=20studio=20crash=20due=20to=20m?= =?UTF-8?q?ismatched=20translation=20key=20oiTopDesc=E2=86=92oi=5FtopDesc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CoinSourceEditor constructs keys as `${value}Desc` where value='oi_top', expecting 'oi_topDesc' but the translation key was 'oiTopDesc' (camelCase). This caused ts(undefined, lang) → "Cannot read properties of undefined". --- web/src/i18n/strategy-translations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/i18n/strategy-translations.ts b/web/src/i18n/strategy-translations.ts index 1348a4b5..995ed2f4 100644 --- a/web/src/i18n/strategy-translations.ts +++ b/web/src/i18n/strategy-translations.ts @@ -32,7 +32,7 @@ export const coinSource = { addExcludedCoin: { zh: '添加排除', en: 'Add Excluded', es: 'Agregar Excluida' }, nofxosNote: { zh: '使用 NofxOS API Key(在指标配置中设置)', en: 'Uses NofxOS API Key (set in Indicators config)', es: 'Usa API Key de NofxOS' }, ai500Desc: { zh: '使用 AI500 智能筛选的热门币种', en: 'Use AI500 smart-filtered popular coins', es: 'Monedas filtradas por AI500' }, - oiTopDesc: { zh: '持仓增加榜,适合做多', en: 'OI increase ranking, for long', es: 'Ranking OI creciente, para largo' }, + oi_topDesc: { zh: '持仓增加榜,适合做多', en: 'OI increase ranking, for long', es: 'Ranking OI creciente, para largo' }, oi_lowDesc: { zh: '持仓减少榜,适合做空', en: 'OI decrease ranking, for short', es: 'Ranking OI decreciente, para corto' }, mixedDesc: { zh: '组合多种数据源', en: 'Combine multiple sources', es: 'Combinar fuentes múltiples' }, oiIncreaseShort: { zh: 'OI增', en: 'OI↑', es: 'OI↑' },