mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat: 多语言完善造船厂与研究相关字段
为de、en、es-LA、ko、ru、zh-CN、zh-TW等多语言文件补充和完善造船厂(shipyard)与研究(research)相关字段,包括攻击、防御、装甲、建造成本、总成本、批量计算等,提升界面一致性与本地化体验。同时优化通知弹窗滚动区域样式,增加overflow-y-auto,提升内容自适应性。
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
{{ t('diplomacy.markAllRead') }}
|
{{ t('diplomacy.markAllRead') }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</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">
|
<Empty v-if="allNotifications.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
<ScrollText class="h-10 w-10 text-muted-foreground" />
|
<ScrollText class="h-10 w-10 text-muted-foreground" />
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
{{ t('enemyAlert.markAllRead') }}
|
{{ t('enemyAlert.markAllRead') }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</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">
|
<Empty v-if="activeAlerts.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
<Shield class="h-10 w-10 text-muted-foreground" />
|
<Shield class="h-10 w-10 text-muted-foreground" />
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
</TabsList>
|
</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">
|
<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">
|
<Empty v-if="tab.items.length === 0" class="border-0">
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
@@ -63,7 +63,9 @@
|
|||||||
class="text-[10px] sm:text-xs whitespace-nowrap"
|
class="text-[10px] sm:text-xs whitespace-nowrap"
|
||||||
:class="isWaitingItemResourcesReady(item as WaitingQueueItem) ? 'text-green-500' : 'text-yellow-500'"
|
: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>
|
</span>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@@ -146,8 +148,8 @@
|
|||||||
import { useI18n } from '@/composables/useI18n'
|
import { useI18n } from '@/composables/useI18n'
|
||||||
import { formatTime, formatNumber } from '@/utils/format'
|
import { formatTime, formatNumber } from '@/utils/format'
|
||||||
import type { BuildQueueItem, WaitingQueueItem, BuildingType, ShipType, DefenseType, TechnologyType, Resources } from '@/types/game'
|
import type { BuildQueueItem, WaitingQueueItem, BuildingType, ShipType, DefenseType, TechnologyType, Resources } from '@/types/game'
|
||||||
import * as waitingQueueLogic from '@/logic/waitingQueueLogic'
|
import * as waitingQueueLogic from '@/logic/waitingQueueLogic'
|
||||||
import * as resourceLogic from '@/logic/resourceLogic'
|
import * as resourceLogic from '@/logic/resourceLogic'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const gameStore = useGameStore()
|
const gameStore = useGameStore()
|
||||||
|
|||||||
@@ -157,6 +157,10 @@ export default {
|
|||||||
build: 'Bauen',
|
build: 'Bauen',
|
||||||
production: 'Produktion',
|
production: 'Produktion',
|
||||||
consumption: 'Verbrauch',
|
consumption: 'Verbrauch',
|
||||||
|
levelRange: 'Stufenbereich',
|
||||||
|
totalCost: 'Gesamtkosten',
|
||||||
|
totalPoints: 'Gesamtpunkte',
|
||||||
|
researchSpeedBonus: 'Forschungsgeschwindigkeitsbonus',
|
||||||
capacity: 'Capacity/Effect',
|
capacity: 'Capacity/Effect',
|
||||||
storageCapacity: 'Capacity',
|
storageCapacity: 'Capacity',
|
||||||
energyProduction: 'Energy Production',
|
energyProduction: 'Energy Production',
|
||||||
@@ -265,6 +269,9 @@ export default {
|
|||||||
},
|
},
|
||||||
research: {
|
research: {
|
||||||
researchTime: 'Forschungszeit',
|
researchTime: 'Forschungszeit',
|
||||||
|
levelRange: 'Stufenbereich',
|
||||||
|
totalCost: 'Gesamtkosten',
|
||||||
|
totalPoints: 'Gesamtpunkte',
|
||||||
capacity: 'Capacity/Effect',
|
capacity: 'Capacity/Effect',
|
||||||
storageCapacity: 'Capacity',
|
storageCapacity: 'Capacity',
|
||||||
energyProduction: 'Energy Production',
|
energyProduction: 'Energy Production',
|
||||||
@@ -417,10 +424,20 @@ export default {
|
|||||||
'Bitte überprüfen Sie, ob Sie genügend Ressourcen haben, die Voraussetzungen erfüllt sind oder keine anderen Forschungsaufträge vorhanden sind.'
|
'Bitte überprüfen Sie, ob Sie genügend Ressourcen haben, die Voraussetzungen erfüllt sind oder keine anderen Forschungsaufträge vorhanden sind.'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: 'Angriff',
|
||||||
|
shield: 'Schild',
|
||||||
|
armor: 'Panzerung',
|
||||||
missileAttack: 'Raketenangriff',
|
missileAttack: 'Raketenangriff',
|
||||||
speed: 'Geschwindigkeit',
|
speed: 'Geschwindigkeit',
|
||||||
cargoCapacity: 'Ladekapazität',
|
cargoCapacity: 'Ladekapazität',
|
||||||
fuelConsumption: 'Treibstoffverbrauch'
|
fuelConsumption: 'Treibstoffverbrauch',
|
||||||
|
buildCost: 'Baukosten',
|
||||||
|
buildTime: 'Bauzeit',
|
||||||
|
perUnit: 'Pro Einheit',
|
||||||
|
batchCalculator: 'Stapelrechner',
|
||||||
|
quantity: 'Menge',
|
||||||
|
totalCost: 'Gesamtkosten',
|
||||||
|
totalTime: 'Gesamtzeit'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: 'Raumschiffwerft',
|
title: 'Raumschiffwerft',
|
||||||
|
|||||||
@@ -155,6 +155,10 @@ export default {
|
|||||||
buildTime: 'Build Time',
|
buildTime: 'Build Time',
|
||||||
production: 'Production',
|
production: 'Production',
|
||||||
consumption: 'Consumption',
|
consumption: 'Consumption',
|
||||||
|
levelRange: 'Level Range',
|
||||||
|
totalCost: 'Total Cost',
|
||||||
|
totalPoints: 'Total Points',
|
||||||
|
researchSpeedBonus: 'Research Speed Bonus',
|
||||||
|
|
||||||
storageCapacity: 'Capacity',
|
storageCapacity: 'Capacity',
|
||||||
energyProduction: 'Energy Production',
|
energyProduction: 'Energy Production',
|
||||||
@@ -260,6 +264,9 @@ export default {
|
|||||||
},
|
},
|
||||||
research: {
|
research: {
|
||||||
researchTime: 'Research Time',
|
researchTime: 'Research Time',
|
||||||
|
levelRange: 'Level Range',
|
||||||
|
totalCost: 'Total Cost',
|
||||||
|
totalPoints: 'Total Points',
|
||||||
|
|
||||||
attackBonus: 'Attack Bonus',
|
attackBonus: 'Attack Bonus',
|
||||||
shieldBonus: 'Shield Bonus',
|
shieldBonus: 'Shield Bonus',
|
||||||
@@ -403,10 +410,20 @@ export default {
|
|||||||
researchFailedMessage: 'Please check if you have enough resources, prerequisites are met, or if there are other research tasks.'
|
researchFailedMessage: 'Please check if you have enough resources, prerequisites are met, or if there are other research tasks.'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: 'Attack',
|
||||||
|
shield: 'Shield',
|
||||||
|
armor: 'Armor',
|
||||||
missileAttack: 'Missile Attack',
|
missileAttack: 'Missile Attack',
|
||||||
speed: 'Speed',
|
speed: 'Speed',
|
||||||
cargoCapacity: 'Cargo Capacity',
|
cargoCapacity: 'Cargo Capacity',
|
||||||
fuelConsumption: 'Fuel Consumption'
|
fuelConsumption: 'Fuel Consumption',
|
||||||
|
buildCost: 'Build Cost',
|
||||||
|
buildTime: 'Build Time',
|
||||||
|
perUnit: 'Per Unit',
|
||||||
|
batchCalculator: 'Batch Calculator',
|
||||||
|
quantity: 'Quantity',
|
||||||
|
totalCost: 'Total Cost',
|
||||||
|
totalTime: 'Total Time'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: 'Shipyard',
|
title: 'Shipyard',
|
||||||
@@ -426,7 +443,17 @@ export default {
|
|||||||
buildFailedMessage: 'Please check if you have enough resources or if prerequisites are met.'
|
buildFailedMessage: 'Please check if you have enough resources or if prerequisites are met.'
|
||||||
},
|
},
|
||||||
defense: {
|
defense: {
|
||||||
missileAttack: 'Missile Attack'
|
attack: 'Attack',
|
||||||
|
shield: 'Shield',
|
||||||
|
armor: 'Armor',
|
||||||
|
missileAttack: 'Missile Attack',
|
||||||
|
buildCost: 'Build Cost',
|
||||||
|
buildTime: 'Build Time',
|
||||||
|
perUnit: 'Per Unit',
|
||||||
|
batchCalculator: 'Batch Calculator',
|
||||||
|
quantity: 'Quantity',
|
||||||
|
totalCost: 'Total Cost',
|
||||||
|
totalTime: 'Total Time'
|
||||||
},
|
},
|
||||||
defenseView: {
|
defenseView: {
|
||||||
title: 'Defense',
|
title: 'Defense',
|
||||||
|
|||||||
@@ -155,6 +155,10 @@ export default {
|
|||||||
buildTime: 'Tiempo de Construcción',
|
buildTime: 'Tiempo de Construcción',
|
||||||
production: 'Producción',
|
production: 'Producción',
|
||||||
consumption: 'Consumo',
|
consumption: 'Consumo',
|
||||||
|
levelRange: 'Rango de Nivel',
|
||||||
|
totalCost: 'Costo Total',
|
||||||
|
totalPoints: 'Puntos Totales',
|
||||||
|
researchSpeedBonus: 'Bono de Velocidad de Investigación',
|
||||||
|
|
||||||
storageCapacity: 'Capacidad',
|
storageCapacity: 'Capacidad',
|
||||||
energyProduction: 'Producción de Energía',
|
energyProduction: 'Producción de Energía',
|
||||||
@@ -411,10 +415,20 @@ export default {
|
|||||||
'Por favor verifica si tienes suficientes recursos, si se cumplen los prerrequisitos, o si hay otras tareas de investigación.'
|
'Por favor verifica si tienes suficientes recursos, si se cumplen los prerrequisitos, o si hay otras tareas de investigación.'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: 'Ataque',
|
||||||
|
shield: 'Escudo',
|
||||||
|
armor: 'Blindaje',
|
||||||
missileAttack: 'Ataque de Misil',
|
missileAttack: 'Ataque de Misil',
|
||||||
speed: 'Velocidad',
|
speed: 'Velocidad',
|
||||||
cargoCapacity: 'Capacidad de Carga',
|
cargoCapacity: 'Capacidad de Carga',
|
||||||
fuelConsumption: 'Consumo de Combustible'
|
fuelConsumption: 'Consumo de Combustible',
|
||||||
|
buildCost: 'Costo de Construcción',
|
||||||
|
buildTime: 'Tiempo de Construcción',
|
||||||
|
perUnit: 'Por Unidad',
|
||||||
|
batchCalculator: 'Calculadora de Lotes',
|
||||||
|
quantity: 'Cantidad',
|
||||||
|
totalCost: 'Costo Total',
|
||||||
|
totalTime: 'Tiempo Total'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: 'Astillero',
|
title: 'Astillero',
|
||||||
|
|||||||
@@ -409,9 +409,19 @@ export default {
|
|||||||
researchFailedMessage: '자원이 충분한지, 전제 조건이 충족되었는지, 또는 다른 연구 작업이 있는지 확인하세요.'
|
researchFailedMessage: '자원이 충분한지, 전제 조건이 충족되었는지, 또는 다른 연구 작업이 있는지 확인하세요.'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: '공격력',
|
||||||
|
shield: '실드',
|
||||||
|
armor: '장갑',
|
||||||
speed: '속도',
|
speed: '속도',
|
||||||
cargoCapacity: '화물 용량',
|
cargoCapacity: '화물 용량',
|
||||||
fuelConsumption: '연료 소비'
|
fuelConsumption: '연료 소비',
|
||||||
|
buildCost: '건조 비용',
|
||||||
|
buildTime: '건조 시간',
|
||||||
|
perUnit: '단위당',
|
||||||
|
batchCalculator: '일괄 계산기',
|
||||||
|
quantity: '수량',
|
||||||
|
totalCost: '총 비용',
|
||||||
|
totalTime: '총 시간'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: '조선소',
|
title: '조선소',
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ export default {
|
|||||||
totalCost: 'Общая стоимость',
|
totalCost: 'Общая стоимость',
|
||||||
totalPoints: 'Общие очки',
|
totalPoints: 'Общие очки',
|
||||||
levelRange: 'Диапазон уровней',
|
levelRange: 'Диапазон уровней',
|
||||||
|
researchSpeedBonus: 'Бонус скорости исследований',
|
||||||
capacity: 'Capacity/Effect',
|
capacity: 'Capacity/Effect',
|
||||||
storageCapacity: 'Capacity',
|
storageCapacity: 'Capacity',
|
||||||
energyProduction: 'Energy Production',
|
energyProduction: 'Energy Production',
|
||||||
@@ -269,6 +270,9 @@ export default {
|
|||||||
},
|
},
|
||||||
research: {
|
research: {
|
||||||
researchTime: 'Время исследования',
|
researchTime: 'Время исследования',
|
||||||
|
levelRange: 'Диапазон уровней',
|
||||||
|
totalCost: 'Общая стоимость',
|
||||||
|
totalPoints: 'Всего очков',
|
||||||
capacity: 'Capacity/Effect',
|
capacity: 'Capacity/Effect',
|
||||||
storageCapacity: 'Capacity',
|
storageCapacity: 'Capacity',
|
||||||
energyProduction: 'Energy Production',
|
energyProduction: 'Energy Production',
|
||||||
@@ -424,9 +428,19 @@ export default {
|
|||||||
'Пожалуйста, проверьте, достаточно ли у вас ресурсов, выполнены ли предварительные условия или нет других исследовательских задач.'
|
'Пожалуйста, проверьте, достаточно ли у вас ресурсов, выполнены ли предварительные условия или нет других исследовательских задач.'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: 'Атака',
|
||||||
|
shield: 'Щит',
|
||||||
|
armor: 'Броня',
|
||||||
speed: 'Скорость',
|
speed: 'Скорость',
|
||||||
cargoCapacity: 'Грузоподъёмность',
|
cargoCapacity: 'Грузоподъёмность',
|
||||||
fuelConsumption: 'Расход топлива'
|
fuelConsumption: 'Расход топлива',
|
||||||
|
buildCost: 'Стоимость постройки',
|
||||||
|
buildTime: 'Время постройки',
|
||||||
|
perUnit: 'За единицу',
|
||||||
|
batchCalculator: 'Калькулятор партии',
|
||||||
|
quantity: 'Количество',
|
||||||
|
totalCost: 'Общая стоимость',
|
||||||
|
totalTime: 'Общее время'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: 'Верфь',
|
title: 'Верфь',
|
||||||
|
|||||||
@@ -264,6 +264,9 @@ export default {
|
|||||||
},
|
},
|
||||||
research: {
|
research: {
|
||||||
researchTime: '研究时间',
|
researchTime: '研究时间',
|
||||||
|
levelRange: '等级范围',
|
||||||
|
totalCost: '总成本',
|
||||||
|
totalPoints: '总积分',
|
||||||
|
|
||||||
attackBonus: '攻击加成',
|
attackBonus: '攻击加成',
|
||||||
shieldBonus: '护盾加成',
|
shieldBonus: '护盾加成',
|
||||||
@@ -405,9 +408,19 @@ export default {
|
|||||||
researchFailedMessage: '请检查资源是否足够、前置条件是否满足,或是否有其他研究任务。'
|
researchFailedMessage: '请检查资源是否足够、前置条件是否满足,或是否有其他研究任务。'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
|
attack: '攻击力',
|
||||||
|
shield: '护盾',
|
||||||
|
armor: '装甲',
|
||||||
speed: '速度',
|
speed: '速度',
|
||||||
cargoCapacity: '载货量',
|
cargoCapacity: '载货量',
|
||||||
fuelConsumption: '燃料消耗'
|
fuelConsumption: '燃料消耗',
|
||||||
|
buildCost: '建造成本',
|
||||||
|
buildTime: '建造时间',
|
||||||
|
perUnit: '单位',
|
||||||
|
batchCalculator: '批量计算器',
|
||||||
|
quantity: '数量',
|
||||||
|
totalCost: '总成本',
|
||||||
|
totalTime: '总时间'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
title: '船坞',
|
title: '船坞',
|
||||||
|
|||||||
@@ -270,6 +270,9 @@ export default {
|
|||||||
},
|
},
|
||||||
research: {
|
research: {
|
||||||
researchTime: '研究時間',
|
researchTime: '研究時間',
|
||||||
|
levelRange: '等級範圍',
|
||||||
|
totalCost: '總成本',
|
||||||
|
totalPoints: '總積分',
|
||||||
capacity: '容量/效果',
|
capacity: '容量/效果',
|
||||||
attackBonus: '攻擊加成',
|
attackBonus: '攻擊加成',
|
||||||
shieldBonus: '護盾加成',
|
shieldBonus: '護盾加成',
|
||||||
@@ -414,11 +417,20 @@ export default {
|
|||||||
researchFailedMessage: '請檢查資源是否足夠、前置條件是否滿足,或是否有其他研究任務。'
|
researchFailedMessage: '請檢查資源是否足夠、前置條件是否滿足,或是否有其他研究任務。'
|
||||||
},
|
},
|
||||||
shipyard: {
|
shipyard: {
|
||||||
missileAttack: '導彈攻擊',
|
attack: '攻擊力',
|
||||||
|
shield: '護盾',
|
||||||
armor: '裝甲',
|
armor: '裝甲',
|
||||||
|
missileAttack: '導彈攻擊',
|
||||||
speed: '速度',
|
speed: '速度',
|
||||||
cargoCapacity: '載貨量',
|
cargoCapacity: '載貨量',
|
||||||
fuelConsumption: '燃料消耗',
|
fuelConsumption: '燃料消耗',
|
||||||
|
buildCost: '建造成本',
|
||||||
|
buildTime: '建造時間',
|
||||||
|
perUnit: '單位',
|
||||||
|
batchCalculator: '批量計算器',
|
||||||
|
quantity: '數量',
|
||||||
|
totalCost: '總成本',
|
||||||
|
totalTime: '總時間',
|
||||||
build: '建造'
|
build: '建造'
|
||||||
},
|
},
|
||||||
shipyardView: {
|
shipyardView: {
|
||||||
|
|||||||
Reference in New Issue
Block a user