From c97d4bbb508211290c0c75cba46099d79ddee9f1 Mon Sep 17 00:00:00 2001 From: SimonOriginal Date: Mon, 15 Jul 2024 14:54:20 +0200 Subject: [PATCH] add i18n keys --- src/lib/components/workspace/Functions.svelte | 16 ++++++------- .../workspace/Functions/FunctionEditor.svelte | 24 +++++++++---------- src/lib/components/workspace/Tools.svelte | 14 +++++------ .../workspace/Tools/ToolkitEditor.svelte | 24 +++++++++---------- src/lib/i18n/locales/ar-BH/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/bg-BG/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/bn-BD/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ca-ES/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ceb-PH/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/de-DE/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/dg-DG/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/en-GB/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/en-US/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/es-ES/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/fa-IR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/fi-FI/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/fr-CA/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/fr-FR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/he-IL/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/hi-IN/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/hr-HR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/id-ID/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/it-IT/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ja-JP/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ka-GE/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ko-KR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/lt-LT/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/nb-NO/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/nl-NL/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/pa-IN/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/pl-PL/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/pt-BR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/pt-PT/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/ru-RU/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/sr-RS/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/sv-SE/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/tk-TW/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/tr-TR/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/uk-UA/translation.json | 21 +++++++++++++++- src/lib/i18n/locales/vi-VN/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/zh-CN/translation.json | 19 +++++++++++++++ src/lib/i18n/locales/zh-TW/translation.json | 19 +++++++++++++++ 42 files changed, 762 insertions(+), 40 deletions(-) diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index 6fc730bc6e..2aa96aae74 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -235,7 +235,7 @@
{#if func?.meta?.manifest?.funding_url ?? false} - +
diff --git a/src/lib/components/workspace/Functions/FunctionEditor.svelte b/src/lib/components/workspace/Functions/FunctionEditor.svelte index 059d436f24..3798988489 100644 --- a/src/lib/components/workspace/Functions/FunctionEditor.svelte +++ b/src/lib/components/workspace/Functions/FunctionEditor.svelte @@ -309,7 +309,7 @@ class Pipe: @@ -317,7 +317,7 @@ class Pipe: @@ -348,10 +348,10 @@ class Pipe:
- Warning: Functions allow - arbitrary code execution
— + {$i18n.t('Warning:')} + {$i18n.t('Functions allow arbitrary code execution')}
don't install random functions from sources you don't trust.{$i18n.t('don't install random functions from sources you don't trust.')}
@@ -376,18 +376,18 @@ class Pipe: >
-
Please carefully review the following warnings:
+
{$i18n.t('Please carefully review the following warnings:')}
    -
  • Functions allow arbitrary code execution.
  • -
  • Do not install functions from sources you do not fully trust.
  • +
  • {$i18n.t('Functions allow arbitrary code execution.')}
  • +
  • {$i18n.t('Do not install functions from sources you do not fully trust.')}
- I acknowledge that I have read and I understand the implications of my action. I am aware of - the risks associated with executing arbitrary code and I have verified the trustworthiness of - the source. + {$i18n.t( + 'I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.' + )}
diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index 04fb5b251c..4f83787162 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -221,7 +221,7 @@ {/if} - +