Skip to content

Commit d678ea5

Browse files
author
Javed Hussain
committed
fix: update SubmitButton to include login button text and improve formatting
1 parent a5d9885 commit d678ea5

File tree

10 files changed

+107
-24
lines changed

10 files changed

+107
-24
lines changed

messages/ar.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "مرحبا، {name} من ar!",
4+
"app_name": "تراكتور",
45
"app_title": "مرآبك",
56
"app_add_vehicle": "إضافة مركبة",
6-
"app_empty_select_message": "اختر مركبة لعرض تفاصيلها",
7+
"app_empty_select_message": "حدد مركبة لعرض تفاصيلها",
78
"app_empty_select_hint": "اختر واحدة من المرآب أعلاه لتحميل لوحة التحكم الخاصة بها.",
8-
"demo_banner": "هذه نسخة توضيحية. سيتم إعادة تعيين البيانات بشكل دوري ولن يتم حفظها بشكل دائم. يرجى تجنب إضافة أي معلومات شخصية.",
9+
"demo_banner": "هذه نسخة تجريبية. سيتم إعادة تعيين البيانات بشكل دوري ولن يتم حفظها بشكل دائم. يرجى تجنب إضافة أي معلومات شخصية.",
910
"default_login": "تسجيل الدخول الافتراضي: demo / demo",
11+
"auth_username": "اسم المستخدم",
12+
"auth_username_placeholder": "اسم المستخدم",
13+
"auth_password": "كلمة المرور",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "تأكيد كلمة المرور",
16+
"auth_login_button": "تسجيل الدخول",
17+
"auth_signup_button": "إنشاء حساب",
18+
"auth_login_loading": "جاري تسجيل الدخول...",
19+
"auth_signup_loading": "جاري إنشاء الحساب...",
20+
"auth_password_mismatch": "كلمات المرور غير متطابقة!!!",
1021
"settings_tab_personalization": "التخصيص",
1122
"settings_tab_interface": "الواجهة",
1223
"settings_tab_features": "الميزات",

messages/de.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Hallo, {name} aus de!",
4+
"app_name": "Tracktor",
45
"app_title": "Deine Garage",
56
"app_add_vehicle": "Fahrzeug hinzufügen",
67
"app_empty_select_message": "Wähle ein Fahrzeug aus, um Details anzuzeigen",
78
"app_empty_select_hint": "Wähle oben im Garagenbereich ein Fahrzeug, um sein Dashboard zu laden.",
89
"demo_banner": "Dies ist eine Demo-Instanz. Daten werden regelmäßig zurückgesetzt und nicht dauerhaft gespeichert. Bitte füge keine persönlichen Informationen hinzu.",
910
"default_login": "Standardanmeldung: demo / demo",
11+
"auth_username": "Benutzername",
12+
"auth_username_placeholder": "benutzername",
13+
"auth_password": "Passwort",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "Passwort bestätigen",
16+
"auth_login_button": "Anmelden",
17+
"auth_signup_button": "Registrieren",
18+
"auth_login_loading": "Anmeldung läuft...",
19+
"auth_signup_loading": "Konto wird erstellt...",
20+
"auth_password_mismatch": "Passwörter stimmen nicht überein!!!",
1021
"settings_tab_personalization": "Personalisierung",
1122
"settings_tab_interface": "Oberfläche",
1223
"settings_tab_features": "Funktionen",

messages/en.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Hello, {name} from en!",
4+
"app_name": "Tracktor",
45
"app_title": "Your Garage",
56
"app_add_vehicle": "Add Vehicle",
67
"app_empty_select_message": "Select a vehicle to view its details",
78
"app_empty_select_hint": "Choose one from the garage above to load its dashboard.",
89
"demo_banner": "This is a demo instance. Data will be reset periodically and is not saved permanently. Please avoid adding any personal info.",
910
"default_login": "Default Login: demo / demo",
11+
"auth_username": "Username",
12+
"auth_username_placeholder": "username",
13+
"auth_password": "Password",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "Confirm Password",
16+
"auth_login_button": "Login",
17+
"auth_signup_button": "Sign up",
18+
"auth_login_loading": "Signing in...",
19+
"auth_signup_loading": "Creating account...",
20+
"auth_password_mismatch": "Passwords do not match!!!",
1021
"settings_tab_personalization": "Personalization",
1122
"settings_tab_interface": "Interface",
1223
"settings_tab_features": "Features",

messages/es.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Hola, {name} desde es!",
4+
"app_name": "Tracktor",
45
"app_title": "Tu Garaje",
56
"app_add_vehicle": "Agregar Vehículo",
67
"app_empty_select_message": "Selecciona un vehículo para ver sus detalles",
78
"app_empty_select_hint": "Elige uno del garaje de arriba para cargar su panel.",
89
"demo_banner": "Esta es una instancia de demostración. Los datos se restablecerán periódicamente y no se guardan de forma permanente. Por favor evita añadir información personal.",
910
"default_login": "Usuario por defecto: demo / demo",
11+
"auth_username": "Nombre de usuario",
12+
"auth_username_placeholder": "nombre de usuario",
13+
"auth_password": "Contraseña",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "Confirmar Contraseña",
16+
"auth_login_button": "Iniciar sesión",
17+
"auth_signup_button": "Registrarse",
18+
"auth_login_loading": "Iniciando sesión...",
19+
"auth_signup_loading": "Creando cuenta...",
20+
"auth_password_mismatch": "¡Las contraseñas no coinciden!",
1021
"settings_tab_personalization": "Personalización",
1122
"settings_tab_interface": "Interfaz",
1223
"settings_tab_features": "Funciones",

messages/fr.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Bonjour, {name} depuis fr !",
4+
"app_name": "Tracktor",
45
"app_title": "Votre Garage",
5-
"app_add_vehicle": "Ajouter un véhicule",
6+
"app_add_vehicle": "Ajouter un Véhicule",
67
"app_empty_select_message": "Sélectionnez un véhicule pour voir ses détails",
78
"app_empty_select_hint": "Choisissez-en un dans le garage ci-dessus pour charger son tableau de bord.",
8-
"demo_banner": "Ceci est une instance de démonstration. Les données seront réinitialisées périodiquement et ne sont pas enregistrées de manière permanente. Veuillez éviter d'ajouter des informations personnelles.",
9-
"default_login": "Identifiants par défaut : demo / demo",
9+
"demo_banner": "Il s'agit d'une instance de démonstration. Les données seront réinitialisées périodiquement et ne sont pas enregistrées de manière permanente. Veuillez éviter d'ajouter des informations personnelles.",
10+
"default_login": "Connexion par défaut : demo / demo",
11+
"auth_username": "Nom d'utilisateur",
12+
"auth_username_placeholder": "nom d'utilisateur",
13+
"auth_password": "Mot de passe",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "Confirmer le mot de passe",
16+
"auth_login_button": "Se connecter",
17+
"auth_signup_button": "S'inscrire",
18+
"auth_login_loading": "Connexion en cours...",
19+
"auth_signup_loading": "Création du compte...",
20+
"auth_password_mismatch": "Les mots de passe ne correspondent pas !!!",
1021
"settings_tab_personalization": "Personnalisation",
1122
"settings_tab_interface": "Interface",
1223
"settings_tab_features": "Fonctionnalités",

messages/hi.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Hello, {name} from hi!",
4+
"app_name": "ट्रैक्टर",
45
"app_title": "आपका गैराज",
56
"app_add_vehicle": "वाहन जोड़ें",
67
"app_empty_select_message": "विवरण देखने के लिए एक वाहन चुनें",
78
"app_empty_select_hint": "डैशबोर्ड लोड करने के लिए ऊपर से एक वाहन चुनें।",
89
"demo_banner": "यह एक डेमो इंस्टेंस है। डेटा समय-समय पर रीसेट किया जाएगा और स्थायी रूप से सहेजा नहीं जाएगा। कृपया कोई व्यक्तिगत जानकारी जोड़ने से बचें।",
910
"default_login": "डिफ़ॉल्ट लॉगिन: demo / demo",
11+
"auth_username": "उपयोगकर्ता नाम",
12+
"auth_username_placeholder": "उपयोगकर्ता नाम",
13+
"auth_password": "पासवर्ड",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "पासवर्ड की पुष्टि करें",
16+
"auth_login_button": "लॉग इन करें",
17+
"auth_signup_button": "साइन अप करें",
18+
"auth_login_loading": "साइन इन हो रहा है...",
19+
"auth_signup_loading": "खाता बनाया जा रहा है...",
20+
"auth_password_mismatch": "पासवर्ड मेल नहीं खाते!!!",
1021
"settings_tab_personalization": "व्यक्तिकरण",
1122
"settings_tab_interface": "इंटरफ़ेस",
1223
"settings_tab_features": "फ़ीचर्स",

messages/it.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"$schema": "https://inlang.com/schema/inlang-message-format",
33
"hello_world": "Ciao, {name} da it!",
4+
"app_name": "Tracktor",
45
"app_title": "Il Tuo Garage",
56
"app_add_vehicle": "Aggiungi Veicolo",
67
"app_empty_select_message": "Seleziona un veicolo per visualizzarne i dettagli",
7-
"app_empty_select_hint": "Scegline uno dal garage qui sopra per caricare la sua dashboard.",
8-
"demo_banner": "Questa è un'istanza demo. I dati verranno reimpostati periodicamente e non vengono salvati in modo permanente. Si prega di evitare di aggiungere informazioni personali.",
9-
"default_login": "Login Predefinito: demo / demo",
8+
"app_empty_select_hint": "Scegline uno dal garage sopra per caricare la sua dashboard.",
9+
"demo_banner": "Questa è un'istanza demo. I dati verranno reimpostati periodicamente e non verranno salvati in modo permanente. Si prega di evitare di aggiungere informazioni personali.",
10+
"default_login": "Accesso predefinito: demo / demo",
11+
"auth_username": "Nome utente",
12+
"auth_username_placeholder": "nome utente",
13+
"auth_password": "Password",
14+
"auth_password_placeholder": "********",
15+
"auth_confirm_password": "Conferma Password",
16+
"auth_login_button": "Accedi",
17+
"auth_signup_button": "Registrati",
18+
"auth_login_loading": "Accesso in corso...",
19+
"auth_signup_loading": "Creazione account...",
20+
"auth_password_mismatch": "Le password non corrispondono!!!",
1021
"settings_tab_personalization": "Personalizzazione",
1122
"settings_tab_interface": "Interfaccia",
1223
"settings_tab_features": "Funzionalità",

src/lib/components/feature/auth/login-form.svelte

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import UserIcon from '@lucide/svelte/icons/circle-user-round';
77
import RectangleEllipsis from '@lucide/svelte/icons/rectangle-ellipsis';
88
import SubmitButton from '$appui/SubmitButton.svelte';
9+
import * as m from '$lib/paraglide/messages';
910
1011
let username = $state('');
1112
let password = $state('');
@@ -36,30 +37,34 @@
3637
<fieldset disabled={processing} class="w-full">
3738
<FieldGroup class="w-full">
3839
<Field>
39-
<FieldLabel for="email">Username</FieldLabel>
40+
<FieldLabel for="email">{m.auth_username()}</FieldLabel>
4041
<Input
4142
id="email"
4243
icon={UserIcon}
4344
type="text"
4445
required
4546
bind:value={username}
46-
placeholder="username"
47+
placeholder={m.auth_username_placeholder()}
4748
/>
4849
</Field>
4950
<Field>
50-
<FieldLabel for="password">Password</FieldLabel>
51+
<FieldLabel for="password">{m.auth_password()}</FieldLabel>
5152
<Input
5253
id="password"
5354
type="password"
5455
required
55-
placeholder="********"
56+
placeholder={m.auth_password_placeholder()}
5657
icon={RectangleEllipsis}
5758
bind:value={password}
5859
/>
5960
</Field>
6061
<Field>
61-
<SubmitButton {processing} class="transition-all duration-300" loadingText="Signing in...">
62-
Login
62+
<SubmitButton
63+
{processing}
64+
class="transition-all duration-300"
65+
loadingText={m.auth_login_loading()}
66+
>
67+
{m.auth_login_button()}
6368
</SubmitButton>
6469
</Field>
6570
<!-- <FieldDescription class="text-center">

src/lib/components/feature/auth/register-form.svelte

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import RectangleEllipsis from '@lucide/svelte/icons/rectangle-ellipsis';
88
import SubmitButton from '$appui/SubmitButton.svelte';
99
import { toast } from 'svelte-sonner';
10+
import * as m from '$lib/paraglide/messages';
1011
1112
let username = $state('');
1213
let password = $state('');
@@ -23,7 +24,7 @@
2324
if (!username || !password || !confirmPassword || processing) return;
2425
2526
if (password !== confirmPassword) {
26-
toast.error('Passwords do not match!!!');
27+
toast.error(m.auth_password_mismatch());
2728
confirmPassword = '';
2829
return;
2930
}
@@ -44,34 +45,34 @@
4445
<fieldset disabled={processing} class="w-full">
4546
<FieldGroup class="w-full">
4647
<Field>
47-
<FieldLabel for="email">Username</FieldLabel>
48+
<FieldLabel for="email">{m.auth_username()}</FieldLabel>
4849
<Input
4950
id="email"
5051
icon={UserIcon}
5152
type="text"
5253
required
5354
bind:value={username}
54-
placeholder="username"
55+
placeholder={m.auth_username_placeholder()}
5556
/>
5657
</Field>
5758
<Field>
58-
<FieldLabel for="password">Password</FieldLabel>
59+
<FieldLabel for="password">{m.auth_password()}</FieldLabel>
5960
<Input
6061
id="password"
6162
type="password"
6263
required
63-
placeholder="********"
64+
placeholder={m.auth_password_placeholder()}
6465
icon={RectangleEllipsis}
6566
bind:value={password}
6667
/>
6768
</Field>
6869
<Field>
69-
<FieldLabel for="confirm-password">Confirm Password</FieldLabel>
70+
<FieldLabel for="confirm-password">{m.auth_confirm_password()}</FieldLabel>
7071
<Input
7172
id="confirm-password"
7273
type="password"
7374
required
74-
placeholder="********"
75+
placeholder={m.auth_password_placeholder()}
7576
icon={RectangleEllipsis}
7677
bind:value={confirmPassword}
7778
/>
@@ -80,9 +81,9 @@
8081
<SubmitButton
8182
{processing}
8283
class="transition-all duration-300"
83-
loadingText="Creating account..."
84+
loadingText={m.auth_signup_loading()}
8485
>
85-
Sign up
86+
{m.auth_signup_button()}
8687
</SubmitButton>
8788
</Field>
8889
<!-- <FieldDescription class="text-center">

src/lib/components/layout/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
iconClass="h-8 w-8"
3737
style="text-primary flex flex-row items-center gap-2 text-2xl font-semibold"
3838
id="header-logo"
39-
label="Tracktor"
39+
label={m.app_name()}
4040
/>
4141
</a>
4242
<div id="header-actions" class="flex items-center gap-2 ltr:ml-auto rtl:mr-auto">

0 commit comments

Comments
 (0)