From c7c9b5ee47493f3b0d7f80917fcb2f9f4c02efce Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 6 Jul 2021 17:13:13 +0200 Subject: [PATCH] Show salutation based on the time of day --- src/i18n/lang/en.json | 5 +++- src/views/Home.vue | 55 ++++++++++++++++++++++++++++++------------- 2 files changed, 43 insertions(+), 17 deletions(-) diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index b1aa20d3..e183ce40 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -1,6 +1,9 @@ { "home": { - "welcome": "Hi {username}", + "welcomeNight": "Good Night {username}", + "welcomeMorning": "Good Morning {username}", + "welcomeDay": "Hi {username}", + "welcomeEvening": "Good Evening {username}", "list": { "newText": "You can create a new list for your new tasks:", "new": "Create a new list", diff --git a/src/views/Home.vue b/src/views/Home.vue index 487d7aae..325570b9 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,7 +1,7 @@