mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-20 02:37:42 +08:00
feat(i18n): add Indonesian (Bahasa Indonesia) language support (#1399)
- Add 'id' to Language type in translations.ts - Add ~1000 Indonesian translation keys covering all UI sections - Update LanguageContext to persist 'id' in localStorage - Add ID button to Header.tsx language toggle - Add �� option to HeaderBar.tsx desktop dropdown and mobile toggle - Add Indonesian translations to inline text objects in LoginRequiredOverlay, StrategyMarketPage, PositionHistory Closes #XX
This commit is contained in:
committed by
GitHub
parent
285053b7a4
commit
3358c5a53e
@@ -1,7 +1,7 @@
|
||||
import { useState, useEffect, useMemo } from 'react'
|
||||
import { api } from '../lib/api'
|
||||
import { useLanguage } from '../contexts/LanguageContext'
|
||||
import { t } from '../i18n/translations'
|
||||
import { t, type Language } from '../i18n/translations'
|
||||
import { MetricTooltip } from './MetricTooltip'
|
||||
import { formatPrice, formatQuantity } from '../utils/format'
|
||||
import type {
|
||||
@@ -152,7 +152,7 @@ function SymbolStatsRow({ stat }: { stat: SymbolStats }) {
|
||||
}
|
||||
|
||||
// Direction Stats Card
|
||||
function DirectionStatsCard({ stat, language }: { stat: DirectionStats; language: 'en' | 'zh' }) {
|
||||
function DirectionStatsCard({ stat, language }: { stat: DirectionStats; language: Language }) {
|
||||
const isLong = (stat.side || '').toLowerCase() === 'long'
|
||||
const iconColor = isLong ? '#0ECB81' : '#F6465D'
|
||||
const totalPnl = stat.total_pnl || 0
|
||||
|
||||
Reference in New Issue
Block a user