diff --git a/src/lib/components/admin/Functions/FunctionEditor.svelte b/src/lib/components/admin/Functions/FunctionEditor.svelte index d720616079..36a21b2477 100644 --- a/src/lib/components/admin/Functions/FunctionEditor.svelte +++ b/src/lib/components/admin/Functions/FunctionEditor.svelte @@ -512,6 +512,7 @@ class Pipe: {:else} ('i18n'); export let value: Record = {}; export let source: Record = {}; @@ -86,32 +87,44 @@ }; -
-
- - - - - {#if allowNewKeys && !readOnly}{/if} +
+
+
{$i18n.t('Translations')}
+
+ + + + + {#if allowNewKeys && !readOnly} + + + + {/if} +
{#if adding && !readOnly}
{/if} -
+
+
- - {#each keys.slice(page * 50, (page + 1) * 50) as key (key)} -
-
-
{key}
- {#if source[key] && source[key] !== key}
- {source[key]} -
{/if} +
+ {#each keys.slice(page * 50, (page + 1) * 50) as key (key)} +
+ +
+ {#if !readOnly && Object.hasOwn(value ?? {}, key)} + + + + {/if} +
- - -
- {/each} - {#if !keys.length}
- {$i18n.t('No results found')} -
{/if} -
-
- {page + 1} / {pages} - - + {:else} +
+ {$i18n.t('No results found')} +
+ {/each} +
+ {#if pages > 1} +
+ {page + 1} / {pages} + + +
+ {/if}