mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: Translate
This commit is contained in:
@@ -55,8 +55,8 @@ export default {
|
||||
},
|
||||
addExtraMoreActions: [
|
||||
{
|
||||
name: this.$t('BatchRemoval'),
|
||||
title: this.$t('BatchRemoval'),
|
||||
name: this.$t('RemoveSelected'),
|
||||
title: this.$t('RemoveSelected'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-minus',
|
||||
can({ selectedRows }) {
|
||||
|
||||
@@ -149,8 +149,8 @@ export default {
|
||||
hasSearch: true,
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: this.$t('BatchRemoval'),
|
||||
title: this.$t('BatchRemoval'),
|
||||
name: this.$t('RemoveSelected'),
|
||||
title: this.$t('RemoveSelected'),
|
||||
type: 'primary',
|
||||
icon: 'fa fa-minus',
|
||||
can({ selectedRows }) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
:show-confirm="false"
|
||||
:title="$tc('assets.AddAssetInDomain')"
|
||||
:title="$tc('AddAssetInDomain')"
|
||||
:visible.sync="setting.AddAssetDialogVisible"
|
||||
after
|
||||
custom-class="asset-select-dialog"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
:show-confirm="false"
|
||||
:title="$tc('assets.AddGatewayInDomain')"
|
||||
:title="$tc('AddGatewayInDomain')"
|
||||
:visible.sync="setting.AddGatewayDialogVisible"
|
||||
after
|
||||
custom-class="asset-select-dialog"
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
import i18n from '@/i18n/i18n'
|
||||
|
||||
export const ALL = 'all'
|
||||
export const CONNECT = 'connect'
|
||||
export const UPLOAD_FILE = 'upload_file'
|
||||
export const DOWNLOAD_FILE = 'download_file'
|
||||
export const UNDOWNLOAD = 'updownload'
|
||||
export const CLIPBOARD_COPY = 'clipboard_copy'
|
||||
export const CLIPBOARD_PASTE = 'clipboard_paste'
|
||||
export const CLIPBOARD_COPY_PASTE = 'clipboard_copy_paste'
|
||||
export const ALL = 'All'
|
||||
export const CONNECT = 'Connect'
|
||||
export const UPLOAD_FILE = 'Upload'
|
||||
export const DOWNLOAD_FILE = 'Download'
|
||||
export const UNDOWNLOAD = 'UpDownload'
|
||||
export const CLIPBOARD_COPY = 'Copy'
|
||||
export const CLIPBOARD_PASTE = 'Paste'
|
||||
export const CLIPBOARD_COPY_PASTE = 'Clipboard'
|
||||
|
||||
export const ACTIONS_FIELDS_MAP = {
|
||||
[ALL]: {
|
||||
name: ALL,
|
||||
action: i18n.t('all')
|
||||
action: i18n.t('All')
|
||||
},
|
||||
[CONNECT]: {
|
||||
name: CONNECT,
|
||||
action: i18n.t('connect')
|
||||
action: i18n.t('Connect')
|
||||
},
|
||||
[UPLOAD_FILE]: {
|
||||
name: UPLOAD_FILE,
|
||||
action: i18n.t('uploadFile')
|
||||
action: i18n.t('Upload')
|
||||
},
|
||||
[DOWNLOAD_FILE]: {
|
||||
name: DOWNLOAD_FILE,
|
||||
action: i18n.t('downloadFile')
|
||||
action: i18n.t('Download')
|
||||
},
|
||||
[UNDOWNLOAD]: {
|
||||
name: UNDOWNLOAD,
|
||||
action: i18n.t('upDownload')
|
||||
action: i18n.t('UpDownload')
|
||||
},
|
||||
[CLIPBOARD_COPY]: {
|
||||
name: CLIPBOARD_COPY,
|
||||
action: i18n.t('clipboardCopy')
|
||||
action: i18n.t('Copy')
|
||||
},
|
||||
[CLIPBOARD_PASTE]: {
|
||||
name: CLIPBOARD_PASTE,
|
||||
action: i18n.t('clipboardPaste')
|
||||
action: i18n.t('Paste')
|
||||
},
|
||||
[CLIPBOARD_COPY_PASTE]: {
|
||||
name: CLIPBOARD_COPY_PASTE,
|
||||
action: i18n.t('clipboardCopyPaste')
|
||||
action: i18n.t('Clipboard')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,29 +38,29 @@ export const STATE_MAP = {
|
||||
export const treeNodes = [
|
||||
{
|
||||
value: 'all',
|
||||
label: i18n.t('all'),
|
||||
label: i18n.t('All'),
|
||||
children: [
|
||||
{
|
||||
value: 'connect',
|
||||
label: i18n.t('connect')
|
||||
label: i18n.t('Connect')
|
||||
},
|
||||
{
|
||||
value: 'updownload',
|
||||
label: i18n.t('FileTransfer'),
|
||||
label: i18n.t('UpDownload'),
|
||||
children: [
|
||||
{
|
||||
value: 'upload',
|
||||
label: i18n.t('uploadFile')
|
||||
label: i18n.t('Upload')
|
||||
},
|
||||
{
|
||||
value: 'download',
|
||||
label: i18n.t('downloadFile')
|
||||
label: i18n.t('Download')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
value: 'copy_paste',
|
||||
label: i18n.t('clipboardCopyPaste'),
|
||||
label: i18n.t('Clipboard'),
|
||||
children: [
|
||||
{
|
||||
value: 'copy',
|
||||
|
||||
@@ -204,7 +204,7 @@ export default {
|
||||
extraMoreActions: [
|
||||
{
|
||||
title: this.$t('RemoveSelected'),
|
||||
name: 'BatchRemoval',
|
||||
name: 'RemoveSelected',
|
||||
has: hasRemove,
|
||||
icon: 'remove',
|
||||
can: ({ selectedRows }) => selectedRows.length > 0 && vm.$hasPerm('users.remove_user'),
|
||||
|
||||
Reference in New Issue
Block a user