From a8b44b09a404aee477e735501b828d1b14aad311 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Tue, 7 Jun 2022 01:33:52 +0200
Subject: feat: Add inital translation support

---
 .../src/app/pages/views/entry-form/sections/labels.svelte        | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'apps/projects/src/app/pages/views/entry-form/sections/labels.svelte')

diff --git a/apps/projects/src/app/pages/views/entry-form/sections/labels.svelte b/apps/projects/src/app/pages/views/entry-form/sections/labels.svelte
index f0853cc..a6f324b 100644
--- a/apps/projects/src/app/pages/views/entry-form/sections/labels.svelte
+++ b/apps/projects/src/app/pages/views/entry-form/sections/labels.svelte
@@ -1,4 +1,5 @@
 <script>
+	import LL from "$app/lib/i18n/i18n-svelte";
 	import {generate_random_hex_color} from "$shared/lib/colors";
 	import labels, {reload_labels, create_label_async} from "$app/lib/stores/labels";
 	import Dropdown from "$shared/components/dropdown.svelte";
@@ -9,7 +10,7 @@
 
 	function reset() {
 		DropdownExports.reset();
-		console.log("Reset labels-part");
+		console.log($LL.views.entryForm.labels._logReset());
 	}
 
 	function get_selected() {
@@ -50,15 +51,15 @@
 
 <Dropdown
         entries={$labels}
-        label="Labels"
+        label="{$LL.views.entryForm.labels.labels()}"
         maxlength="50"
         createable={true}
-        placeholder="Search or create"
+        placeholder="{$LL.views.entryForm.labels.placeholder()}"
         multiple="{true}"
         id="labels-search"
         name="labels-search"
         on_create_async={on_create}
-        noResultsText="No labels available (Create a new one by searching for it)"
+        noResultsText="{$LL.views.entryForm.labels.placeholder()}"
         errorText="{labelsError}"
         bind:this={DropdownExports}
         {loading}
-- 
cgit v1.3

