feat: use _t translations in server summary

This commit is contained in:
Pavel
2025-08-14 18:46:19 +02:00
parent b1696ed1cd
commit 2fd5244f85
3 changed files with 28 additions and 16 deletions

View File

@@ -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,
},