From 4d6a7e8ba4660f8861de8c8b0f1b45a205b5c738 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Thu, 29 Sep 2022 18:08:43 +0800
Subject: refactor: Transition back to non-namespaced i18n

---
 .../src/routes/(main)/(public)/reset-password/+page.svelte    | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

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

diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte
index 865be10..9ee4a83 100644
--- a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte
+++ b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte
@@ -17,13 +17,16 @@
         title: "",
     } as ErrorResult;
 
+    let loading = false;
     let showSuccessAlert = false;
 
     async function submitFormAsync() {
         errorData.text = "";
         errorData.title = "";
         showSuccessAlert = false;
+        loading = true;
         const request = await create_forgot_password_request(formData.email);
+        loading = false;
         if (!request.ok) {
             errorData.text = request.data.text ?? $LL.tryAgainSoon();
             errorData.title = request.data.title ?? $LL.unexpectedError();
@@ -38,12 +41,12 @@
         <h2
             class="mt-6 text-center text-3xl tracking-tight font-bold text-gray-900"
         >
-            {$LL["reset-password"].requestAPasswordReset()}
+            {$LL.requestAPasswordReset()}
         </h2>
         <p class="mt-2 text-center text-sm text-gray-600">
-            {$LL.or()}
+            {$LL.or().toLowerCase()}
             <a href="/sign-in" class="link">
-                {$LL["reset-password"].signIntoYourAccount()}
+                {$LL.signIntoYourAccount()}
             </a>
         </p>
     </div>
@@ -61,7 +64,7 @@
                 <Alert
                     type="success"
                     title={$LL.success()}
-                    message={$LL["reset-password"].requestSentMessage()}
+                    message={$LL.requestSentMessage()}
                     visible={showSuccessAlert}
                 />
 
-- 
cgit v1.3

