Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Todo List Feature #322

Merged
merged 17 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const translations = {
"failedbackup": "Backup failed: ",
"restorecompleted": "Restore completed successfully!",
"restorefailed": "Restore failed: ",
"emptytodoinput": "You Must Write Something",
},


Expand Down Expand Up @@ -211,6 +212,7 @@ const translations = {
"ai_tools": "Ferramentas de IA",
"userText": "Clique aqui para editar",
"googleAppsHover": "Apps do Google",
"todoListHover": "Lista de tarefas",
// End of Body and New Tab Items

// Greeting
Expand All @@ -230,7 +232,8 @@ const translations = {
"copilot": "Copilot",
"perplexity": "Perplexity",
"firefly": "Adobe Firefly",
"github": "GitHub"
"github": "GitHub",
"emptytodoinput": "Você deve escrever algo",
},


Expand Down Expand Up @@ -324,6 +327,8 @@ const translations = {
"duckEngine": "DuckDuckGo",
"bingEngine": "必应",
"googleAppsHover": "谷歌应用",
"todoListHover": "待办事项清单",
"emptytodoinput": "你必须写点东西",
},


Expand Down Expand Up @@ -428,6 +433,7 @@ const translations = {
"firefly": "एडोबी फायरफ्लाई",
"github": "गिटहब",
"googleAppsHover": "गूगल ऐप्स",
"todoListHover": "कार्य सूची",

// Wallpaper and alerts
"uploadWallpaperText": "वॉलपेपर अपलोड करें",
Expand All @@ -449,6 +455,7 @@ const translations = {
"failedbackup": "बैकअप विफल: ",
"restorecompleted": "पुनर्स्थापना सफलतापूर्वक पूरी हुई!",
"restorefailed": "पुनर्स्थापना विफल: ",
"emptytodoinput": "आपको कुछ अवश्य लिखना चाहिए",
},


Expand Down Expand Up @@ -531,6 +538,7 @@ const translations = {
"ai_tools": "AI nástroje",
"userText": "Upravíte po kliknutí",
"googleAppsHover": "Google aplikace",
"todoListHover": "Seznam úkolů",
// End of Body and New Tab Items

// Greeting
Expand All @@ -544,6 +552,7 @@ const translations = {
"uploadWallpaperText": "Nahrát tapetu",
"backupText": "Zálohovat",
"restoreText": "Obnovit",
"emptytodoinput": "Musíte něco napsat",
},


Expand Down Expand Up @@ -652,7 +661,8 @@ const translations = {
"imagedimensions": "Attenzione: Le dimensioni dell'immagine caricata ({width}x{height}) superano i 1920x1080 pixel. \n\nCiò potrebbe influire sulle prestazioni o l'immagine potrebbe non essere caricata correttamente.",
"failedbackup": "Backup fallito: ",
"restorecompleted": "Ripristino completato con successo!",
"restorefailed": "Ripristino fallito: "
"restorefailed": "Ripristino fallito: ",
"emptytodoinput": "Devi scrivere qualcosa",
},


Expand Down Expand Up @@ -739,6 +749,7 @@ const translations = {
"afternoon": "İyi öğleden sonra!",
"evening": "İyi akşamlar!"
},
"emptytodoinput": "Bir Şey Yazmalısın",
},


Expand Down Expand Up @@ -826,6 +837,7 @@ const translations = {
"ai_tools": "এআই টুলস",
"userText": "এখানে আপনার টেক্সট লিখুন",
"googleAppsHover": "গুগল অ্যাপস",
"todoListHover": "তালিকা তৈরি",

// Greeting
greeting: {
Expand Down Expand Up @@ -867,6 +879,7 @@ const translations = {
"failedbackup": "ব্যাকআপ ব্যর্থ: ",
"restorecompleted": "পুনরুদ্ধার সফলভাবে সম্পন্ন হয়েছে!",
"restorefailed": "পুনরুদ্ধার ব্যর্থ: ",
"emptytodoinput": "ইউ মাস্ট রাইট সামথিং",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong translation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¯\_(ツ)_/¯ Used google translate

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd, they transliterated it lol

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He translation should be "তোমার কিছু লেখা উচিত"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave up on languages I don't know.
Someone who knows them can maybe add them later in language.js :)

},


Expand Down Expand Up @@ -953,6 +966,7 @@ const translations = {
"afternoon": "Chào buổi chiều!",
"evening": "Chào buổi tối!"
},
"emptytodoinput": "Bạn phải viết một cái gì đó",
},


Expand Down Expand Up @@ -1057,6 +1071,7 @@ const translations = {
"firefly": "Adobe Firefly",
"github": "GitHub",
"googleAppsHover": "Гугл приложения",
"todoListHover": "Список дел",

// Wallpaper and alerts
"uploadWallpaperText": "Загрузить обои",
Expand All @@ -1078,6 +1093,7 @@ const translations = {
"failedbackup": "Резервное копирование не удалось: ",
"restorecompleted": "Восстановление настроек успешно завершено!",
"restorefailed": "Восстановление настроек не удалось: ",
"emptytodoinput":"Вы должны что-то написать",
},


Expand Down Expand Up @@ -1330,6 +1346,7 @@ const translations = {
"ai_tools": "AIツール",
"userText": "ここをクリックして編集",
"googleAppsHover": "Googleアプリ",
"todoListHover": "やることリスト",
// End of Body and New Tab Items

// Greeting
Expand All @@ -1351,6 +1368,7 @@ const translations = {
"perplexity": "Perplexity",
"firefly": "Adobe Firefly",
"github": "GitHub",
"emptytodoinput":"何かを書かなければなりません",
},


Expand Down Expand Up @@ -1451,6 +1469,8 @@ const translations = {
"firefly": "어도비 파이어플라이",
"github": "깃허브",
"googleAppsHover": "구글 앱",
"todoListHover": "할 일 목록",
"emptytodoinput":"당신은 뭔가를 작성해야합니다",
},


Expand Down Expand Up @@ -1628,6 +1648,7 @@ const translations = {
"ai_tools": "AI साधने",
"userText": "येथे आपला मजकूर लिहा",
"googleAppsHover": "गुगल ॲप्स",
"todoListHover": "करण्याची यादी",
// End of Body and New Tab Items

// Greeting
Expand Down Expand Up @@ -1670,8 +1691,8 @@ const translations = {
"imagedimensions": "तयार केलेली इमेज ({width}x{height}) चे परिमाण 1920x1080 पिक्सल्सपेक्षा जास्त आहे. \n\nयामुळे कार्यक्षमता प्रभावित होऊ शकते किंवा इमेज नीट लोड होऊ नये.",
"failedbackup": "बॅकअप अयशस्वी: ",
"restorecompleted": "पुनर्संचयित यशस्वी झाले!",
"restorefailed": "पुनर्संचयित अयशस्वी: "

"restorefailed": "पुनर्संचयित अयशस्वी: ",
"emptytodoinput":"यू मस्ट रायट समथिंग",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also wrong.
Other languages could also be incorrect.
You can leave the translations for languages you're not familiar with.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure I'll leave the translations then 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

},


Expand Down Expand Up @@ -1754,6 +1775,7 @@ const translations = {
"ai_tools": "Outils IA",
"userText": "Cliquez ici pour modifier",
"googleAppsHover": "Applications Google", // Keep this untranslated if string width is much longer
"todoListHover": "Liste de tâches",
// End of Body and New Tab Items

// Greeting
Expand Down Expand Up @@ -1797,6 +1819,7 @@ const translations = {
"failedbackup": "Échec de la sauvegarde: ",
"restorecompleted": "Restauration terminée avec succès!",
"restorefailed": "Échec de la restauration: ",
"emptytodoinput":"Vous devez écrire quelque chose",
}
};

Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ todoInput.addEventListener("keypress", (event) => {

function addtodoItem(){
if (todoInput.value===''){
alert("You Must Write Something");
alert((translations[currentLanguage]?.emptytodoinput || translations['en'].emptytodoinput));
} else {
let li = document.createElement('li');
li.innerText = todoInput.value;
Expand Down
3 changes: 3 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ body {
border-radius: 25%;
padding: 1px;
cursor: pointer;
}

.theme-transition .dot-icon{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Please do same for ToDo icon

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works for both as I reused the dot-icon class for the to do icon

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohk nice

transition: fill 0.3s ease;
}

Expand Down