From f9337bbe280878c2a2d9d713873c4c06b54325cd Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Thu, 29 Sep 2022 00:28:33 +0800
Subject: refactor: !WIP Use i18n namespaces

---
 .../src/routes/(main)/(public)/sign-in/+page.svelte    | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

(limited to 'apps/kit/src/routes/(main)/(public)/sign-in/+page.svelte')

diff --git a/apps/kit/src/routes/(main)/(public)/sign-in/+page.svelte b/apps/kit/src/routes/(main)/(public)/sign-in/+page.svelte
index 3802722..d47f924 100644
--- a/apps/kit/src/routes/(main)/(public)/sign-in/+page.svelte
+++ b/apps/kit/src/routes/(main)/(public)/sign-in/+page.svelte
@@ -39,11 +39,13 @@
         <h2
             class="mt-6 text-center text-3xl tracking-tight font-bold text-gray-900"
         >
-            {$LL.login.loginToYourAccount()}
+            {$LL["sign-in"].signIn()}
         </h2>
         <p class="mt-2 text-center text-sm text-gray-600">
-            {$LL.common.or()}
-            <a href="/sign-up" class="link">{$LL.login.createANewAccount()}</a>
+            {$LL.or().toLowerCase()}
+            <a href="/sign-up" class="link"
+                >{$LL["sign-in"].createANewAccount()}</a
+            >
         </p>
     </div>
     <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
@@ -67,7 +69,7 @@
                     id="email"
                     name="email"
                     type="email"
-                    label={$LL.common.emailAddress()}
+                    label={$LL.emailAddress()}
                     required
                     value={data.username}
                 />
@@ -76,7 +78,7 @@
                     id="password"
                     name="password"
                     type="password"
-                    label={$LL.login.password()}
+                    label={$LL.password()}
                     autocomplete="current-password"
                     required
                     value={data.password}
@@ -86,17 +88,17 @@
                     <Checkbox
                         id="remember-me"
                         name="remember-me"
-                        label={$LL.login.notMyComputer()}
+                        label={$LL["sign-in"].notMyComputer()}
                     />
                     <div class="text-sm">
                         <a href="/reset-password" class="link">
-                            {$LL.login.forgotPassword()}
+                            {$LL["sign-in"].resetPassword()}
                         </a>
                     </div>
                 </div>
 
                 <Button
-                    text={$LL.common.logIn()}
+                    text={$LL["sign-in"].signIn()}
                     fullWidth
                     type="submit"
                     {loading}
-- 
cgit v1.3

