mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 17:06:01 +00:00
feat: use _t translations in server summary
This commit is contained in:
@@ -44,16 +44,24 @@
|
||||
<TableControl
|
||||
rows={internalProcesses}
|
||||
columns={[
|
||||
{ header: 'Process ID', fieldName: 'processId', slot: 1 },
|
||||
{ header: 'Connection ID', fieldName: 'connectionId' },
|
||||
{ header: 'Client', fieldName: 'client' },
|
||||
{ header: 'Operation', fieldName: 'operation' },
|
||||
{ header: 'Namespace', fieldName: 'namespace' },
|
||||
{ header: 'Running Time', fieldName: 'runningTime', slot: 2 },
|
||||
{ header: 'State', fieldName: 'state' },
|
||||
{ header: 'Waiting For', fieldName: 'waitingFor', slot: 3 },
|
||||
{ header: _t('summaryProcesses.processId', { defaultMessage: 'Process ID' }), fieldName: 'processId', slot: 1 },
|
||||
{ header: _t('summaryProcesses.connectionId', { defaultMessage: 'Connection ID' }), fieldName: 'connectionId' },
|
||||
{ header: _t('summaryProcesses.client', { defaultMessage: 'Client' }), fieldName: 'client' },
|
||||
{ header: _t('summaryProcesses.operation', { defaultMessage: 'Operation' }), fieldName: 'operation' },
|
||||
{ header: _t('summaryProcesses.namespace', { defaultMessage: 'Namespace' }), fieldName: 'namespace' },
|
||||
{
|
||||
header: 'Actions',
|
||||
header: _t('summaryProcesses.runningTime', { defaultMessage: 'Running Time' }),
|
||||
fieldName: 'runningTime',
|
||||
slot: 2,
|
||||
},
|
||||
{ header: _t('summaryProcesses.state', { defaultMessage: 'State' }), fieldName: 'state' },
|
||||
{
|
||||
header: _t('summaryProcesses.waitingFor', { defaultMessage: 'Waiting For' }),
|
||||
fieldName: 'waitingFor',
|
||||
slot: 3,
|
||||
},
|
||||
{
|
||||
header: _t('summaryProcesses.actions', { defaultMessage: 'Actions' }),
|
||||
fieldName: 'processId',
|
||||
slot: 0,
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import TableControl from '../elements/TableControl.svelte';
|
||||
import JSONTree from '../jsontree/JSONTree.svelte';
|
||||
import { _t } from '../translations';
|
||||
export let variables: { variable: string; value: any }[] = [];
|
||||
</script>
|
||||
|
||||
@@ -8,9 +9,9 @@
|
||||
<TableControl
|
||||
rows={variables}
|
||||
columns={[
|
||||
{ header: 'Variable', fieldName: 'variable' },
|
||||
{ header: _t('summaryVariables.variable', { defaultMessage: 'Variable' }), fieldName: 'variable' },
|
||||
{
|
||||
header: 'Value',
|
||||
header: _t('summaryVariables.value', { defaultMessage: 'Value' }),
|
||||
fieldName: 'value',
|
||||
slot: 0,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user