From 36d9da7c7cc2222c03007eb9e32f769f42030984 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 18 Aug 2020 16:53:34 +0200 Subject: [PATCH] Add locales to login --- locales/en.json | 6 ++++++ views/login.pug | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/locales/en.json b/locales/en.json index a04f4af..ba5c117 100644 --- a/locales/en.json +++ b/locales/en.json @@ -28,5 +28,11 @@ "sandwich": "Sandwich", "day": "Day", "pay": "Pay" + }, + "login": { + "title": "Login", + "username": "Username", + "password": "Password", + "submit": "Login" } } diff --git a/views/login.pug b/views/login.pug index a29ed31..7f22596 100644 --- a/views/login.pug +++ b/views/login.pug @@ -2,12 +2,12 @@ extends layout block content form.card(action="/login" method="POST") - h1 Login + h1=__("login.title") div.field - label(for="username") Username: + label(for="username")=__("login.username")+":" input#username(type="text" name="username" required) div.field - label(for="password") Password: + label(for="password")=__("login.password")+":" input#password(type="password" name="password" required) div.field - input(type="submit" value="Login") + input(type="submit" value=__("login.submit"))