diff --git a/src/config/i18n/en.js b/src/config/i18n/en.js
index d36cdd0..bb56116 100644
--- a/src/config/i18n/en.js
+++ b/src/config/i18n/en.js
@@ -73,6 +73,8 @@ export default {
coretempPackage: 'CPU Temp',
coretempCore: 'Core Average',
coretempMaxCore: 'Hottest Core',
+ sensor: 'Sensor',
+ core: 'Core',
// System Status
systemOS: 'Sys',
diff --git a/src/config/i18n/zh-cn.js b/src/config/i18n/zh-cn.js
index dccb8a0..0f59744 100644
--- a/src/config/i18n/zh-cn.js
+++ b/src/config/i18n/zh-cn.js
@@ -72,6 +72,8 @@ export default {
coretempPackage: 'CPU温度',
coretempCore: '核心平均',
coretempMaxCore: '最热核心',
+ sensor: '传感器',
+ core: '核心',
// 系统状态
systemOS: '系统',
diff --git a/src/views/components/server-detail/server-info-box.vue b/src/views/components/server-detail/server-info-box.vue
index 64fcb1b..f410282 100644
--- a/src/views/components/server-detail/server-info-box.vue
+++ b/src/views/components/server-detail/server-info-box.vue
@@ -92,7 +92,7 @@
class="ri-hard-drive-3-line"
/>
{
});
return;
}
- if (name.includes('motherboard') || name.includes('mainboard') || name.includes('board')) {
+ if (
+ name.includes('motherboard')
+ || name.includes('mainboard')
+ || name.includes('board')
+ || name.includes('acpitz')
+ ) {
other.push({
- label: '主板',
+ label: i18n.t('acpitz'),
value: temp,
- type: 'motherboard',
+ type: 'acpitz',
});
return;
}
@@ -422,7 +427,7 @@ const temperatureData = computed(() => {
data.push({
label: i18n.t('acpitz'),
value: `${acpitzMean}℃`,
- title: acpitz.map((i, index) => `传感器${index + 1}: ${parseFloat(i).toFixed(1)}℃`).join('\n'),
+ title: acpitz.map((i, index) => `${i18n.t('sensor')}${index + 1}: ${parseFloat(i).toFixed(1)}℃`).join('\n'),
type: 'acpitz',
});
}
@@ -443,7 +448,9 @@ const temperatureData = computed(() => {
if (coretemp_core.length) {
const coreMean = (coretemp_core.reduce((a, b) => a + b.value, 0) / coretemp_core.length).toFixed(1);
temps.push(`${parseFloat(coreMean).toFixed(1)}℃`);
- details.push(...coretemp_core.map((i) => `核心${i.index + 1}: ${parseFloat(i.value).toFixed(1)}℃`));
+ details.push(
+ ...coretemp_core.map((i) => `${i18n.t('core')}${i.index + 1}: ${parseFloat(i.value).toFixed(1)}℃`),
+ );
}
data.push({