Feature: 添加俄语、西班牙语支持 & 添加单位国际化

This commit is contained in:
2025-07-19 11:34:11 +08:00
parent 25d4dc7a7f
commit 38d10d7151
14 changed files with 299 additions and 151 deletions

View File

@ -26,19 +26,19 @@
<v-col cols="12">
<param-input-field
v-model="paperCoreDiameter"
:label="`${$t('paperCoreDiameter')} (${paperCoreDiameter.unit})`"
:label="$t('paperCoreDiameter')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="paperRollWallThickness"
:label="`${$t('paperRollWallThickness')} (${paperRollWallThickness.unit})`"
:label="$t('paperRollWallThickness')"
/>
</v-col>
<v-col cols="12">
<param-input-field
v-model="innerPaperWidth"
:label="`${$t('innerPaperWidth')} (${innerPaperWidth.unit})`"
:label="$t('innerPaperWidth')"
/>
</v-col>
</v-row>
@ -106,8 +106,8 @@
const paperWidth = leadingLength * Math.sin(Math.atan(paperRollExternalDiameter * Math.PI / leadingLength))
return {
beltAngle: createParam(beltAngle, '°'),
paperHolderAngle: createParam(paperHolderAngle, '°'),
beltAngle: createParam(beltAngle, 'degree'),
paperHolderAngle: createParam(paperHolderAngle, 'degree'),
leadingLength: createParam(leadingLength, 'mm'),
paperWidth: createParam(paperWidth, 'mm'),
}