Add dutch translation

This commit is contained in:
Wessel 2018-10-27 20:54:35 +02:00 committed by GitHub
parent 92eb2065a1
commit 056e34bc02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -261,3 +261,14 @@ function itaMessageSet() {
setHTMLContent(".greeting", `Buon${getDaytime()}`);
}
// Dutch
function nlMessageSet() {
let hour = new Date().getHours(); // Get the current hour
let time = 'Goedemiddag'; // Set the default time string to "Good evening"
if (hour < 12) time = 'Goedemorgen'; // If it's before 12am, set the time string to "Good morning"
else if (hour > 18) time = 'Goedenavond'; // If it's after 6pm, set the time string to "Good afternoon"
else time = 'Goedemiddag'; // If It's unknown, set the time stirng to "Good evening"
setHTMLContent('.greeting', time); // Write the string contents to the HTML
}