refactor: 调整i18n文本目录结构
- 目录调整: i18n文本由单文件改为多文件 - 组件修改: 对应组件内的文本key做出对应修改 - WIP: 其他语言适配逐步完成...
This commit is contained in:
@ -19,56 +19,56 @@
|
||||
icon="mdi-tune"
|
||||
size="large"
|
||||
/>
|
||||
{{ $t('parameters') }}
|
||||
{{ $t('common.parameters') }}
|
||||
</v-card-title>
|
||||
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="paperCoreDiameter"
|
||||
:label="$t('paperTubeInnerDiameter')"
|
||||
:label="$t('page.paper-tube-production.parameters.paper-tube-inner-diameter')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="paperRollWallThickness"
|
||||
:label="$t('paperRollWallThickness')"
|
||||
:label="$t('page.paper-tube-production.parameters.paper-tube-wall-thickness')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="paperRollLength"
|
||||
:label="$t('paperRollLength')"
|
||||
:label="$t('page.paper-tube-production.parameters.paper-tube-length')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="paperDensity"
|
||||
:label="$t('paperDensity')"
|
||||
:label="$t('page.paper-tube-production.parameters.paper-density')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="innerPaperWidth"
|
||||
:label="$t('innerPaperWidth')"
|
||||
:label="$t('page.paper-tube-production.parameters.inner-paper-width')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="workFrequency"
|
||||
:label="$t('workFrequency')"
|
||||
:label="$t('page.paper-tube-production.parameters.work-frequency')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="workTime"
|
||||
:label="$t('workTime')"
|
||||
:label="$t('page.paper-tube-production.parameters.work-time')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<param-input-field
|
||||
v-model="workEfficiency"
|
||||
:label="$t('workEfficiency')"
|
||||
:label="$t('page.paper-tube-production.parameters.work-efficiency')"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@ -84,7 +84,7 @@
|
||||
variant="outlined"
|
||||
@click="resetParameters"
|
||||
>
|
||||
{{ $t('reset') }}
|
||||
{{ $t('common.reset') }}
|
||||
</v-btn>
|
||||
</v-row>
|
||||
</v-card>
|
||||
@ -108,32 +108,32 @@
|
||||
icon="mdi-calculator"
|
||||
size="large"
|
||||
/>
|
||||
{{ $t('results') }}
|
||||
{{ $t('common.results') }}
|
||||
</v-card-title>
|
||||
|
||||
<v-list lines="two">
|
||||
<result-list-item
|
||||
:label="$t('feedPaperSpeed')"
|
||||
:label="$t('page.paper-tube-production.results.feed-paper-speed')"
|
||||
:value="result.feedPaperSpeed"
|
||||
/>
|
||||
<result-list-item
|
||||
:label="$t('outputSpeed')"
|
||||
:label="$t('page.paper-tube-production.results.output-speed')"
|
||||
:value="result.outputSpeed"
|
||||
/>
|
||||
<result-list-item
|
||||
:label="$t('productionAmountPerHour')"
|
||||
:label="$t('page.paper-tube-production.results.production-amount-per-hour')"
|
||||
:value="result.productionAmountPerHour"
|
||||
/>
|
||||
<result-list-item
|
||||
:label="$t('productionWeightPerHour')"
|
||||
:label="$t('page.paper-tube-production.results.production-weight-per-hour')"
|
||||
:value="result.productionWeightPerHour"
|
||||
/>
|
||||
<result-list-item
|
||||
:label="$t('productionAmountPerDay')"
|
||||
:label="$t('page.paper-tube-production.results.production-amount-per-day')"
|
||||
:value="result.productionAmountPerDay"
|
||||
/>
|
||||
<result-list-item
|
||||
:label="$t('productionWeightPerDay')"
|
||||
:label="$t('page.paper-tube-production.results.production-weight-per-day')"
|
||||
:value="result.productionWeightPerDay"
|
||||
/>
|
||||
</v-list>
|
||||
@ -146,41 +146,41 @@
|
||||
<template #default="{ expanded }">
|
||||
<span>
|
||||
<v-icon icon="mdi-information-outline" />
|
||||
{{ expanded ? $t('calculationParameters') : $t('expandToShowCalculationParameters') }}
|
||||
{{ expanded ? $t('common.calculate-parameters') : $t('common.expand-to-show-calculate-parameters') }}
|
||||
</span>
|
||||
</template>
|
||||
</v-expansion-panel-title>
|
||||
<v-expansion-panel-text>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('paperTubeInnerDiameter')" :value="paperCoreDiameter" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.paper-tube-inner-diameter')" :value="paperCoreDiameter" />
|
||||
</v-col>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('paperRollWallThickness')" :value="paperRollWallThickness" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.paper-tube-wall-thickness')" :value="paperRollWallThickness" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('paperRollLength')" :value="paperRollLength" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.paper-tube-length')" :value="paperRollLength" />
|
||||
</v-col>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('paperDensity')" :value="paperDensity" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.paper-density')" :value="paperDensity" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('innerPaperWidth')" :value="innerPaperWidth" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.inner-paper-width')" :value="innerPaperWidth" />
|
||||
</v-col>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('workFrequency')" :value="workFrequency" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.work-frequency')" :value="workFrequency" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('workTime')" :value="workTime" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.work-time')" :value="workTime" />
|
||||
</v-col>
|
||||
<v-col cols="6">
|
||||
<input-param-section :label="$t('workEfficiency')" :value="workEfficiency" />
|
||||
<input-param-section :label="$t('page.paper-tube-production.parameters.work-efficiency')" :value="workEfficiency" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-expansion-panel-text>
|
||||
|
||||
Reference in New Issue
Block a user