mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
perf: Translate
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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']]
|
||||
],
|
||||
|
||||
@@ -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']]
|
||||
|
||||
Reference in New Issue
Block a user