perf: Translate

This commit is contained in:
wangruidong
2024-07-01 15:00:52 +08:00
committed by w940853815
parent fc4ffe53a5
commit 83c5cf4231
4 changed files with 6 additions and 5 deletions

View File

@@ -246,7 +246,7 @@ export class FormFieldGenerator {
return field
}
if (field.type === 'select' || [ObjectSelect2].indexOf(field.component) > -1) {
field.el.placeholder = i18n.t('Please select ') + label.toLowerCase()
field.el.placeholder = i18n.t('PleaseSelect') + label.toLowerCase()
} else if (field.type === 'input') {
field.el.placeholder = field.label
}

View File

@@ -41,7 +41,6 @@
<script>
import { createSourceIdCache } from '@/api/common'
import i18n from '@/i18n/i18n'
export default {
name: 'Select2',
@@ -113,7 +112,9 @@ export default {
},
placeholder: {
type: String,
default: i18n.t('Select')
default: function() {
return this.$t('Select')
}
},
quickAddCallback: {
type: Function,

View File

@@ -39,7 +39,7 @@ export default {
'ssh_key', 'passphrase'
]
],
[this.$t('Automation'), ['params']],
[this.$t('Automations'), ['params']],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['is_active', 'recipients', 'comment']]
],

View File

@@ -41,7 +41,7 @@ export default {
]
],
[
this.$t('Automation'), ['params']
this.$t('Automations'), ['params']
],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['is_active', 'comment']]