Update index.js

added italian for most of the chrome users from italy
This commit is contained in:
Yanderella! 2018-10-29 13:05:14 +01:00 committed by GitHub
parent 479716d464
commit 4931df2f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
let nal = navigator.language;
function setDaytimeMessage () {
if (nal === 'it' || nal === 'it-CH') itaMessageSet(); //Italian
if (nal === 'it' || nal === 'it-IT' || nal === 'it-CH') itaMessageSet(); //Italian
else if (nal === 'nl'|| nal === 'nl-BE') nlMessageSet(); //Dutch
else if (nal === 'fr' || nal === 'fr-BE'|| nal === 'fr-CA'||
@ -183,8 +183,8 @@ function setRandomQuote () {
],
quote = pickFromArray(quotes);
if (navigator.language === 'it' || navigator.language === 'it-CH') setHTMLContent('blockquote', quote.ita);
else if( navigator.language === 'pt' || navigator.language === 'pt-BR') setHTMLContent('blockquote', quote.pt || quote.eng)
if (nal === 'it' || nal === 'it-IT'|| nal === 'it-CH') setHTMLContent('blockquote', quote.ita);
else if( nal === 'pt' || nal === 'pt-BR') setHTMLContent('blockquote', quote.pt || quote.eng)
else setHTMLContent('blockquote', quote.eng);
setHTMLContent('cite', quote.author);