feat: 多语言完善造船厂与研究相关字段

为de、en、es-LA、ko、ru、zh-CN、zh-TW等多语言文件补充和完善造船厂(shipyard)与研究(research)相关字段,包括攻击、防御、装甲、建造成本、总成本、批量计算等,提升界面一致性与本地化体验。同时优化通知弹窗滚动区域样式,增加overflow-y-auto,提升内容自适应性。
This commit is contained in:
谦君
2025-12-26 01:53:19 +08:00
parent 7ed508945a
commit 94fa2ad57a
10 changed files with 123 additions and 14 deletions

View File

@@ -19,7 +19,7 @@
{{ t('diplomacy.markAllRead') }}
</Button>
</div>
<ScrollArea class="h-auto max-h-96">
<ScrollArea class="h-auto max-h-96 overflow-y-auto">
<Empty v-if="allNotifications.length === 0" class="border-0">
<EmptyContent>
<ScrollText class="h-10 w-10 text-muted-foreground" />

View File

@@ -19,7 +19,7 @@
{{ t('enemyAlert.markAllRead') }}
</Button>
</div>
<ScrollArea class="h-auto max-h-96">
<ScrollArea class="h-auto max-h-96 overflow-y-auto">
<Empty v-if="activeAlerts.length === 0" class="border-0">
<EmptyContent>
<Shield class="h-10 w-10 text-muted-foreground" />

View File

@@ -32,7 +32,7 @@
</TabsTrigger>
</TabsList>
<ScrollArea class="h-auto max-h-96">
<ScrollArea class="h-auto max-h-96 overflow-y-auto">
<TabsContent v-for="tab in tabConfig" :key="tab.value" :value="tab.value" class="mt-0">
<Empty v-if="tab.items.length === 0" class="border-0">
<EmptyContent>
@@ -63,7 +63,9 @@
class="text-[10px] sm:text-xs whitespace-nowrap"
:class="isWaitingItemResourcesReady(item as WaitingQueueItem) ? 'text-green-500' : 'text-yellow-500'"
>
{{ isWaitingItemResourcesReady(item as WaitingQueueItem) ? t('queue.resourcesReady') : t('queue.waitingResources') }}
{{
isWaitingItemResourcesReady(item as WaitingQueueItem) ? t('queue.resourcesReady') : t('queue.waitingResources')
}}
</span>
<Button
variant="ghost"
@@ -146,8 +148,8 @@
import { useI18n } from '@/composables/useI18n'
import { formatTime, formatNumber } from '@/utils/format'
import type { BuildQueueItem, WaitingQueueItem, BuildingType, ShipType, DefenseType, TechnologyType, Resources } from '@/types/game'
import * as waitingQueueLogic from '@/logic/waitingQueueLogic'
import * as resourceLogic from '@/logic/resourceLogic'
import * as waitingQueueLogic from '@/logic/waitingQueueLogic'
import * as resourceLogic from '@/logic/resourceLogic'
const { t } = useI18n()
const gameStore = useGameStore()