Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: fix translation bugs #264

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ const getNotes = (text, type) => {
style="margin-left: 10px; margin-right: 10px"
>{{ step.text.toUpperCase() }}</el-tag
>
<el-tag size="small" style="margin-right: 10px">滑动</el-tag>
<el-tag size="small" style="margin-right: 10px">{{
$t('stepDetail.swipe')
}}</el-tag>
{{ step.content }} px
</span>
<span v-if="step.stepType === 'webElementScrollToView'">
Expand Down Expand Up @@ -386,7 +388,7 @@ const getNotes = (text, type) => {
<el-tag size="small" style="margin-right: 10px">{{
$t('stepDetail.label.androidOptions.app.uninstall')
}}</el-tag>
$t('stepDetail.app.pkg'):{{ step.text }}
{{ $t('stepDetail.app.pkg') }}:{{ step.text }}
</span>
<span v-if="step.stepType === 'runBack'">
<el-tag size="small" style="margin-right: 10px">{{
Expand Down Expand Up @@ -428,11 +430,11 @@ const getNotes = (text, type) => {
"
>
<el-tag size="small" style="margin-right: 10px"
>{{ $t('stepDetail.judge') }}{{ getEleResult(step.stepType)
>{{ getEleResult(step.stepType)
}}{{
$t('stepDetail.label.androidOptions.element.uiEle.isExistEle')
}}</el-tag
>{{ $t('stepDetail.assert') }}:
>{{ $t('stepDetail.verify.assert') }}:
<el-tag type="info" size="small" style="margin-right: 10px">{{
step.elements[0]['eleName']
}}</el-tag>
Expand All @@ -450,11 +452,11 @@ const getNotes = (text, type) => {
"
>
<el-tag size="small" style="margin-right: 10px"
>{{ $t('stepDetail.judge') }}{{ getEleResult(step.stepType)
>{{ getEleResult(step.stepType)
}}{{
$t('stepDetail.label.androidOptions.element.uiEle.isExistEleNum')
}}</el-tag
>{{ $t('stepDetail.assert') }}:
>{{ $t('stepDetail.verify.assert') }}:
<el-tag type="info" size="small" style="margin-right: 10px">{{
step.elements[0]['eleName']
}}</el-tag>
Expand Down Expand Up @@ -642,15 +644,15 @@ const getNotes = (text, type) => {
>
<el-tag size="small"
>{{ $t('stepDetail.verify.assert') }}{{ getEleResult(step.stepType)
}}{{ $t('stepDetail.verify.text') }}</el-tag
}}{{ $t('stepDetail.text') }}</el-tag
>
<el-tag
type="info"
size="small"
style="margin-left: 10px; margin-right: 10px"
>{{ step.elements[0]['eleName'] }}</el-tag
>
{{ $t('stepDetail.verify.expectation') }}:
{{ $t('stepDetail.verify.expect') }}:
<el-tag size="small" style="margin-left: 10px; margin-right: 10px">{{
getAssertTextOpe(step.content)
}}</el-tag
Expand Down Expand Up @@ -741,17 +743,17 @@ const getNotes = (text, type) => {
</span>
<span v-if="step.stepType === 'startPocoDriver'">
<el-tag size="small">{{
$t('stepDetail.label.androidOptions.poco.startPocoDriver')
$t('stepDetail.label.androidOptions.element.poco.startPocoDriver')
}}</el-tag>
</span>
<span v-if="step.stepType === 'closePocoDriver'">
<el-tag size="small">{{
$t('stepDetail.label.androidOptions.poco.closePocoDriver')
$t('stepDetail.label.androidOptions.element.poco.closePocoDriver')
}}</el-tag>
</span>
<span v-if="step.stepType === 'freezeSource'">
<el-tag size="small">{{
$t('stepDetail.label.androidOptions.element.poco.frezzeSource')
$t('stepDetail.label.androidOptions.element.poco.freezeSource')
}}</el-tag>
</span>
<span v-if="step.stepType === 'thawSource'">
Expand All @@ -770,7 +772,7 @@ const getNotes = (text, type) => {
<el-tag size="small" style="margin-right: 10px">{{
$t('stepDetail.imageSimilarity')
}}</el-tag>
{{ $t('stepDetail.expectedMatchRatio') }}:{{ step.content }} %
{{ $t('stepDetail.verify.expectedMatchRatio') }}:{{ step.content }} %
</span>
<span v-if="step.stepType === 'clickByImg'">
<el-tag size="small">{{ $t('stepDetail.localization') }}</el-tag>
Expand Down
16 changes: 8 additions & 8 deletions src/components/StepUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ onMounted(() => {
>
<el-input
v-model="offsets.offsetWidth"
:placeholder="$t('stepDetail.msg.input') + offsetWidth"
:placeholder="$t('stepDetail.msg.input') + 'offsetWidth'"
></el-input>
</el-form-item>
<el-form-item
Expand All @@ -1710,7 +1710,7 @@ onMounted(() => {
>
<el-input
v-model="offsets.offsetHeight"
:placeholder="$t('stepDetail.msg.input') + offsetHeight"
:placeholder="$t('stepDetail.msg.input') + 'offsetHeight'"
></el-input>
</el-form-item>
<el-form-item
Expand All @@ -1724,7 +1724,7 @@ onMounted(() => {
>
<el-input
v-model="offsets.windowWidth"
:placeholder="$t('stepDetail.msg.input') + windowWidth"
:placeholder="$t('stepDetail.msg.input') + 'windowWidth'"
></el-input>
</el-form-item>
<el-form-item
Expand All @@ -1738,7 +1738,7 @@ onMounted(() => {
>
<el-input
v-model="offsets.windowHeight"
:placeholder="$t('stepDetail.msg.input') + windowHeight"
:placeholder="$t('stepDetail.msg.input') + 'windowHeight'"
></el-input>
</el-form-item>
</div>
Expand Down Expand Up @@ -2424,7 +2424,7 @@ onMounted(() => {
:min="1"
:step="1"
></el-input-number>
<span style="margin-left: 10px"></span>
<span style="margin-left: 10px">{{ $t('stepDetail.times') }}</span>
</el-form-item>
</div>

Expand Down Expand Up @@ -3450,11 +3450,11 @@ onMounted(() => {
</el-form-item>

<div v-if="step.conditionType === 0">
<el-form-item :label="$t('stepDetail.exception.process')">
<el-form-item :label="$t('stepDetail.exception.handling')">
<el-select
v-model="step.error"
:placeholder="
$t('stepDetail.msg.select') + $t('stepDetail.exception.process')
$t('stepDetail.msg.select') + $t('stepDetail.exception.handling')
"
>
<el-option
Expand All @@ -3472,7 +3472,7 @@ onMounted(() => {
</el-select>
<el-popover
placement="right-start"
:title="$t('stepDetail.exception.process')"
:title="$t('stepDetail.exception.handling')"
:width="300"
trigger="hover"
>
Expand Down
Loading