Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
joyce.zhou committed Aug 23, 2023
1 parent 4616e5e commit 92036a8
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 33 deletions.
20 changes: 10 additions & 10 deletions src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const getNotes = (text, type) => {
>
</span>
<span v-if="step.stepType === 'siriCommand'">
<el-tag size="small" style="margin-right: 10px">$t('stepDetail.sendSiriCmd')</el-tag
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.sendSiriCmd')}}</el-tag
>{{ step.content }}
</span>
<span v-if="step.stepType === 'swipeByDefinedDirection'">
Expand All @@ -198,10 +198,10 @@ const getNotes = (text, type) => {
<el-tag size="small">{{$t('stepDetail.topVisable')}}</el-tag>
</span>
<span v-if="step.stepType === 'lock'">
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.rotateDevice.loc')}}</el-tag>
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.rotateDevice.lock')}}</el-tag>
</span>
<span v-if="step.stepType === 'closeKeyboard'">
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.keyboard.closeKeyboar')}}</el-tag>
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.keyboard.closeKeyboard')}}</el-tag>
</span>
<span v-if="step.stepType === 'unLock'">
<el-tag size="small">{{$t('stepDetail.label.androidOptions.system.rotateDevice.unlock')}}</el-tag>
Expand All @@ -224,19 +224,19 @@ const getNotes = (text, type) => {
</span>
<span v-if="step.stepType === 'airPlaneMode'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.switch.planeMode')}}</el-tag
>{{ step.content === 'true' ? $t('stepDetail.opens') : $t('stepDetail.close')}}
>{{ step.content === 'true' ? $t('stepDetail.open') : $t('stepDetail.close')}}
</span>
<span v-if="step.stepType === 'wifiMode'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.switch.wifiMode')}}</el-tag
>{{ step.content === 'true' ? $t('stepDetail.opens') : $t('stepDetail.close')}}
>{{ step.content === 'true' ? $t('stepDetail.open') : $t('stepDetail.close')}}
</span>
<span v-if="step.stepType === 'locationMode'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.switch.locationMode')}}</el-tag
>{{ step.content === 'true' ? $t('stepDetail.opens') : $t('stepDetail.close')}}
>{{ step.content === 'true' ? $t('stepDetail.open') : $t('stepDetail.close')}}
</span>
<span v-if="step.stepType === 'switchWindowMode'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.switch.windowMode')}}</el-tag
>{{ step.content === 'true' ? $t('stepDetail.multiWindoeMode') : $t('stepDetail.singleWindoeMode') }}
>{{ step.content === 'true' ? $t('stepDetail.multiWindowMode') : $t('stepDetail.singleWindowMode') }}
</span>
<span v-if="step.stepType === 'switchIgnoreMode'">
<el-tag size="small" style="margin-right: 10px"
Expand Down Expand Up @@ -305,19 +305,19 @@ const getNotes = (text, type) => {
{{$t('stepDetail.retries')}}:{{ step.content }} {{$t('stepDetail.retriesInterval')}}:{{ step.text }} ms
</span>
<span v-if="step.stepType === 'openApp'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.app.open')}}</el-tag>
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.label.androidOptions.app.openApp')}}</el-tag>
{{$t('stepDetail.app.pkg')}}:{{ step.text }}
</span>
<span v-if="step.stepType === 'terminate'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.app.terminate')}}</el-tag>
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.label.androidOptions.app.terminate')}}</el-tag>
{{$t('stepDetail.app.pkg')}}:{{ step.text }}
</span>
<span v-if="step.stepType === 'install'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.label.androidOptions.app.install')}}</el-tag>
{{ step.content === '2' ? $t('stepDetail.app.installFromPkglist') : $t('stepDetail.app.path') + step.text }}
</span>
<span v-if="step.stepType === 'uninstall'">
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.label.androidOptions.app.uninstal')}}</el-tag>
<el-tag size="small" style="margin-right: 10px">{{$t('stepDetail.label.androidOptions.app.uninstall')}}</el-tag>
{{$t('stepDetail.app.pkg')}}:{{ step.text }}
</span>
<span v-if="step.stepType === 'runBack'">
Expand Down
38 changes: 19 additions & 19 deletions src/components/StepUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1255,16 +1255,16 @@ onMounted(() => {

<div v-if="step.stepType === 'keyCode'">
<el-form-item
:label="$t('stepDetai.label.androidOptions.interaction.keyCode')"
:label="$t('stepDetail.label.androidOptions.interaction.keyCode')"
:rules="[
{ required: true, message: $t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.interaction.keyCode'), trigger: 'change' },
{ required: true, message: $t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.interaction.keyCode'), trigger: 'change' },
]"
prop="content"
>
<el-select
v-if="step.platform === 1"
v-model="step.content"
:placeholder="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.interaction.keyCode')"
:placeholder="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.interaction.keyCode')"
>
<el-option-group :label="$t('stepDetail.commonKeys')">
<el-option value="HOME"></el-option>
Expand All @@ -1289,11 +1289,11 @@ onMounted(() => {
<el-select
v-if="step.platform === 2"
v-model="step.content"
:placeholder="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.interaction.keyCode')"
:placeholder="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.interaction.keyCode')"
>
<el-option value="home"></el-option>
<el-option value="volumeup"></el-option>
<el-option value="volumedown"></el-option>
<el-option value="volume up"></el-option>
<el-option value="volume down"></el-option>
</el-select>
</el-form-item>
</div>
Expand All @@ -1320,8 +1320,8 @@ onMounted(() => {

<div v-if="step.stepType === 'tap'">
<element-select
:label="$t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:label="$t('stepDetail.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="0"
:project-id="projectId"
type="point"
Expand All @@ -1331,8 +1331,8 @@ onMounted(() => {

<div v-if="step.stepType === 'longPressPoint'">
<element-select
:label="$t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:label="$t('stepDetail.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="0"
:project-id="projectId"
type="point"
Expand All @@ -1351,15 +1351,15 @@ onMounted(() => {
<div v-if="step.stepType === 'swipe'">
<element-select
:label="$t('stepDetail.fromControl')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="0"
:project-id="projectId"
type="point"
:step="step"
/>
<element-select
:label="$t('stepDetail.dragTo')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="1"
:project-id="projectId"
type="point"
Expand Down Expand Up @@ -1400,15 +1400,15 @@ onMounted(() => {
<div v-if="step.stepType === 'pocoSwipe'">
<element-select
:label="$t('stepDetail.fromControl')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="0"
:project-id="projectId"
type="poco"
:step="step"
/>
<element-select
:label="$t('stepDetail.dragTo')"
:place="$t('stepDetail.msg.select') + $t('stepDetai.label.androidOptions.coordinate.self')"
:place="$t('stepDetail.msg.select') + $t('stepDetail.label.androidOptions.coordinate.self')"
:index="1"
:project-id="projectId"
type="poco"
Expand Down Expand Up @@ -1547,7 +1547,7 @@ onMounted(() => {
:step="step"
/>
<div>
<el-form-item :label="$t('stepDetail.cerify.num')" :model="step">
<el-form-item :label="$t('stepDetail.verify.num')" :model="step">
<el-select v-model="step.content" prop="content">
<el-option :label="$t('stepDetail.verify.greaterThan')" value=">"></el-option>
<el-option :label="$t('stepDetail.verify.lessThan')" value="<"></el-option>
Expand Down Expand Up @@ -1679,7 +1679,7 @@ onMounted(() => {
/>
<el-form-item
prop="text"
:label="$t('stepDetail.label.androidOptions.app.uninstal')"
:label="$t('stepDetail.label.androidOptions.app.uninstall')"
:rules="{
required: true,
message: $t('stepDetail.app.pkg')+ $t('stepDetail.msg.notBeEmpty'),
Expand Down Expand Up @@ -1989,7 +1989,7 @@ onMounted(() => {
{{$t('stepDetail.msgTips.focus')}}
</div>
<div>
{{$t('stepDetail.msg.variable')}}
{{$t('stepDetail.msgTips.variable')}}
</div>
</template>
</el-alert>
Expand Down Expand Up @@ -2332,7 +2332,7 @@ onMounted(() => {
:step="step"
/>
<el-form-item
:label="$t('stepDetail.verify.control.attribute')"
:label="$t('stepDetail.control.attribute')"
:rules="{
required: true,
message: $t('stepDetail.control.attribute') + $t('stepDetail.msg.notBeEmpty'),
Expand Down Expand Up @@ -2685,7 +2685,7 @@ onMounted(() => {

<div v-if="step.stepType === 'publicStep'">
<el-form-item
:label="$t('stepDetail.publicStep')"
:label="$t('stepDetail.label.iOSOptions.spec.publicStep')"
prop="text"
:rules="{
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ const stepDetail = {
getTextValue: 'Gey Text',
assertText: 'Assert Text',
logElementAttr: 'Log Element Info Output',
iteratorAndroidElement: 'Iterator Element List',
iteratorIOSElement: 'Iterator Element List',
setSnapshotMaxDepth: 'Set Snapshot Max Depth',
},
coordinate: {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/ja_JP.js
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ const stepDetail = {
getTextValue: '获取文本',
assertText: '断言文本',
logElementAttr: '日志输出控件信息',
iteratorAndroidElement: '迭代控件列表',
iteratorIOSElement: '迭代控件列表',
setSnapshotMaxDepth: '设置控件获取最大遍历深度',
},
coordinate: {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ const stepDetail = {
getTextValue: '获取文本',
assertText: '断言文本',
logElementAttr: '日志输出控件信息',
iteratorAndroidElement: '迭代控件列表',
iteratorIOSElement: '迭代控件列表',
setSnapshotMaxDepth: '设置控件获取最大遍历深度',
},
coordinate: {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/lang/zh_TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ const stepDetail = {
getTextValue: '获取文本',
assertText: '断言文本',
logElementAttr: '日志输出控件信息',
iteratorAndroidElement: '迭代控件列表',
iteratorIOSElement: '迭代控件列表',
setSnapshotMaxDepth: '设置控件获取最大遍历深度',
},
coordinate: {
Expand Down

0 comments on commit 92036a8

Please sign in to comment.