From b3747909bd9b02784a00b0c771630e5c6b91cbf6 Mon Sep 17 00:00:00 2001 From: flifloo Date: Tue, 18 Aug 2020 17:13:22 +0200 Subject: [PATCH] Add locales to commands --- locales/en.json | 4 ++-- public/javascripts/{orders.js => commands.js} | 0 views/commands.pug | 6 +++--- views/index.pug | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename public/javascripts/{orders.js => commands.js} (100%) diff --git a/locales/en.json b/locales/en.json index e528061..ec0b6b7 100644 --- a/locales/en.json +++ b/locales/en.json @@ -19,7 +19,6 @@ }, "index": { "welcome": "Welcome to Sandwiches Order Doua", - "command": "Command", "sandwich": "Sandwich", "day": "Day", "pay": "Pay" @@ -45,5 +44,6 @@ "department": "Department", "commands": "Commands", "sandwiches": "Sandwiches", - "date": "Date" + "date": "Date", + "command": "Command" } diff --git a/public/javascripts/orders.js b/public/javascripts/commands.js similarity index 100% rename from public/javascripts/orders.js rename to public/javascripts/commands.js diff --git a/views/commands.pug b/views/commands.pug index bf561aa..a635aca 100644 --- a/views/commands.pug +++ b/views/commands.pug @@ -2,10 +2,10 @@ extends layout block content div#date-selector.card - label(for="date") Date + label(for="date")=__("date") input#date(type="date" value=date) div#orders.card - h1 Orders + h1=__("commands") each user, department in commands div.department h2= department @@ -14,7 +14,7 @@ block content h3= name each order, id in command div.order - h4 Command N°#{id} + h4 #{__("command")} N°#{id} each sandwich in order div.sandwich h4= sandwich.Sandwich.name diff --git a/views/index.pug b/views/index.pug index be0b36c..13b50df 100644 --- a/views/index.pug +++ b/views/index.pug @@ -20,7 +20,7 @@ block content input#lastname(type="text" name="lastName" value=user ? user.lastName : "" required) div#command1.command - h2=__("index.command")+" 1" + h2=__("command")+" 1" div.field label(for="sandwich1")=__("index.sandwich")+":" input#sandwich1(type="list" list="sandwich-list" name="sandwich1" autocomplete="off" required)