From 218c790beefbccbc253cd63dbf27da2b6a721e7c Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:54:15 +0530 Subject: [PATCH 1/7] Update index.html --- index.html | 78 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 47 insertions(+), 31 deletions(-) diff --git a/index.html b/index.html index d736fc67..7b6506ed 100644 --- a/index.html +++ b/index.html @@ -17,37 +17,38 @@
- + -
- +
+ - +
-
+
- + - Thu 9 - + Thu 9 + 6:59 - - + +
- + - +
Double tap to edit
@@ -180,11 +181,12 @@
- + - - + 132 75 185 95 19 7 36 13 36 13 1 1 19 -6 40 -14z" fill="white" /> @@ -377,14 +378,14 @@

Material You NewTab

fill="#0038FF" fill-rule="evenodd" />
- Feedback + Feedback
- +
@@ -399,8 +400,8 @@

Material You NewTab

-
Edit Shortcuts
-
Choose which shortcuts get shown
+
Edit Shortcuts
+
Choose which shortcuts get shown
+
+
+
Enter your Location
+
If the weather location isn't correct +
+
+ +
+ Input Options + +
+
+
Enter your own WeatherAPI key
If the weather functionality isn't working @@ -516,10 +532,9 @@

Material You NewTab

Learn more
-
- +

@@ -544,13 +559,14 @@

Material You NewTab

@@ -585,8 +601,8 @@

Material You NewTab


-
- +
+ -
Edit Shortcuts
+
Edit Shortcuts
From 9907b1233afae55430d5614a06b00f2989263376 Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:54:44 +0530 Subject: [PATCH 2/7] Update languages.js --- languages.js | 119 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 109 insertions(+), 10 deletions(-) diff --git a/languages.js b/languages.js index 2408c8c0..bb9265a9 100644 --- a/languages.js +++ b/languages.js @@ -2,14 +2,45 @@ const translations = { "en": { // Menu Items + "feedback": "Feedback", + "resetsettings": "Reset Settings", + // Shortcuts "shortcutsText": "Shortcuts", "enableShortcutsText": "Enable/disable shortcuts", + "editShortcutsText": "Edit Shortcuts", + "editShortcutsList": "Edit Shortcuts", + "shortcutsInfoText": "Choose which shortcuts get shown", + "adaptiveIconShapes": "Adaptive Icon Shapes", + "adaptiveIconInfoText": "Shortcut Icons will always be round", "ai_tools_button": "AI-Tools", "enable_ai_tools": "Enable/disable AI Tools shortcuts", + // Digital Clock + "digitalclocktittle": "Digital Clock", + "digitalclockinfo": "Enable/disable the Digital Clock", + "timeformattittle": "Use 12h Format", + "timeformatinfo": "Use 12 hour time format", + // Misc "fahrenheitCelsiusCheckbox": "Switch to Fahrenheit", "fahrenheitCelsiusText": "Refresh the page to see the updates", + "search_suggestions_button": "Search Suggestions", + "search_suggestions_text": "Enable/disable Search Suggestions", + // Proxy + "useproxytitletext": "Proxy Bypass", + "useproxyText": "If search suggestions isn't working", + "ProxyText": "CORS Bypass Proxy", + "ProxySubtext": "Add your own CORS Bypass Proxy", + "HostproxyButton": "Host Your Own Proxy", + "saveproxy": "Enter", + // Location + "UserLocText": "Enter your location", + "UserLocSubtext": "If the weather location isn't correct", + "userLoc": "Your location (City/Latitude,Longitude)", + "InputOptionsButton": "Input Options", + "saveLoc": "Enter", + // Weather "WeatherApiText": "Enter your own WeatherAPI key", "WeatherApiSubtext": "If the weather functionality isn't working", + "userAPI": "Your weatherAPI key", "LearnMoreButton": "Learn More", "saveAPI": "Enter", // End of Menu Items @@ -23,6 +54,7 @@ const translations = { // Weather "humidityText": "Humidity", "feelsLike": "Feels", + "location": "Earth", // End of Weather // New Tab Item @@ -33,6 +65,8 @@ const translations = { "ai_tools": "AI Tools", "userText": "Double tap to edit", // End of Body and New Tab Items + + // toDo for "menuCloseButton:hover::after": "Close", }, "pt": { // Menu Items @@ -104,36 +138,69 @@ const translations = { }, "hi": { // Menu Items + "feedback": "प्रतिक्रिया", + "resetsettings": "सेटिंग्स रीसेट करें", + // later ----> "menuCloseButton:hover::after": "बंद करें", + // Shortcuts "shortcutsText": "शॉर्टकट्स", "enableShortcutsText": "शॉर्टकट्स सक्षम/अक्षम करें", + "editShortcutsText": "शॉर्टकट्स संपादित करें", + "editShortcutsList": "शॉर्टकट्स संपादित करें", + "shortcutsInfoText": "कौन से शॉर्टकट्स दिखाए जाएँ, चुनें", + "adaptiveIconShapes": "अनुकूल आइकन आकृतियाँ", + "adaptiveIconInfoText": "शॉर्टकट आइकन हमेशा गोल होंगे", "ai_tools_button": "AI-उपकरण", "enable_ai_tools": "AI उपकरणों के शॉर्टकट्स सक्षम/अक्षम करें", + // Digital Clock + "digitalclocktittle": "डिजिटल घड़ी", + "digitalclockinfo": "डिजिटल घड़ी को सक्षम/अक्षम करें", + "timeformattittle": "12 घंटे का प्रारूप उपयोग करें", + "timeformatinfo": "12 घंटे का समय प्रारूप उपयोग करें", + // Misc "fahrenheitCelsiusCheckbox": "तापमान फारेनहाइट में बदलें", "fahrenheitCelsiusText": "बदलाव के लिए पृष्ठ को रीफ्रेश करें", + "search_suggestions_button": "खोज सुझाव", + "search_suggestions_text": "खोज सुझाव सक्षम/अक्षम करें", + // Proxy + "useproxytitletext": "प्रॉक्सी बायपास", + "useproxyText": "यदि खोज सुझाव काम नहीं कर रहे हैं", + "ProxyText": "CORS बायपास प्रॉक्सी", + "ProxySubtext": "अपना CORS बायपास प्रॉक्सी जोड़ें", + "HostproxyButton": "अपना प्रॉक्सी संचालित करें", + "saveproxy": "दर्ज करें", + // Location + "UserLocText": "अपना स्थान दर्ज करें", + "UserLocSubtext": "यदि मौसम स्थान सटीक नहीं है", + "userLoc": "आपका स्थान (शहर/अक्षांश,देशांतर)", + "InputOptionsButton": "इनपुट विकल्प", + "saveLoc": "दर्ज करें", + // Weather "WeatherApiText": "अपनी खुद की मौसम API कुंजी दर्ज करें", - "WeatherApiSubtext": "यदि मौसम कार्यक्षमता काम नहीं कर रही है", + "WeatherApiSubtext": "यदि मौसम सुविधा काम नहीं कर रही है", + "userAPI": "आपकी मौसम API कुंजी", "LearnMoreButton": "और जानें", "saveAPI": "दर्ज करें", // End of Menu Items // Body Items // Calendar - "days": ['सोमवार', 'मंगलवार', 'बुधवार', 'बिहिवार', 'शुक्रवार', 'शनिवार', 'रविवार'], + "days": ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], // Truncated for display + // "days": ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'], // Full "months": ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवंबर', 'दिसंबर'], - // End of Calendar // Weather - "humidityText": "हवा में नमी", + "humidityText": "नमी", "feelsLike": "महसूस", + "location": "पृथ्वी", // End of Weather // New Tab Item "conditionText": "नमस्ते! आप आज कैसे हैं?", - "enterBtn": "सर्च करें", - "searchPlaceholder": "यहाँ लिखे...", + "enterBtn": "दर्ज करें", + "searchPlaceholder": "यहाँ लिखें...", "searchWithHint": "खोज माध्यम", "ai_tools": "AI उपकरण", - "userText": "यहाँ अपना टेक्स्ट लिखें", + "userText": "संपादित करने के लिए दो बार टैप करें", // End of Body and New Tab Items }, "cs": { @@ -277,16 +344,48 @@ const translations = { function applyLanguage(lang) { if (translations[lang]) { // Menu Items + document.getElementById('feedback').innerText = translations[lang].feedback; + document.getElementById('resetsettings').innerText = translations[lang].resetsettings; document.getElementById('shortcutsText').innerText = translations[lang].shortcutsText; document.getElementById('enableShortcutsText').innerText = translations[lang].enableShortcutsText; + document.getElementById('editShortcutsText').innerText = translations[lang].editShortcutsText; + document.getElementById('editShortcutsList').innerText = translations[lang].editShortcutsList; + document.getElementById('shortcutsInfoText').innerText = translations[lang].shortcutsInfoText; + document.getElementById('adaptiveIconShapes').innerText = translations[lang].adaptiveIconShapes; + document.getElementById('adaptiveIconInfoText').innerText = translations[lang].adaptiveIconInfoText; document.getElementById('ai_tools_button').innerText = translations[lang].ai_tools_button; document.getElementById('enable_ai_tools').innerText = translations[lang].enable_ai_tools; document.getElementById('fahrenheitCelsiusCheckbox').innerText = translations[lang].fahrenheitCelsiusCheckbox; document.getElementById('fahrenheitCelsiusText').innerText = translations[lang].fahrenheitCelsiusText; + document.getElementById('search_suggestions_button').innerText = translations[lang].search_suggestions_button; + document.getElementById('search_suggestions_text').innerText = translations[lang].search_suggestions_text; + + // Clock + document.getElementById('digitalclocktittle').innerText = translations[lang].digitalclocktittle; + document.getElementById('digitalclockinfo').innerText = translations[lang].digitalclockinfo; + document.getElementById('timeformattittle').innerText = translations[lang].timeformattittle; + document.getElementById('timeformatinfo').innerText = translations[lang].timeformatinfo; + + // Proxy + document.getElementById('useproxytitletext').innerText = translations[lang].useproxytitletext; + document.getElementById('useproxyText').innerText = translations[lang].useproxyText; + document.getElementById('ProxyText').innerText = translations[lang].ProxyText; + document.getElementById('ProxySubtext').innerText = translations[lang].ProxySubtext; + document.getElementById('HostproxyButton').innerText = translations[lang].HostproxyButton; + document.getElementById('saveproxy').innerText = translations[lang].saveproxy; + + // Weather + document.getElementById('UserLocText').innerText = translations[lang].UserLocText; + document.getElementById('UserLocSubtext').innerText = translations[lang].UserLocSubtext; + document.getElementById('userLoc').placeholder = translations[lang].userLoc; + document.getElementById('InputOptionsButton').innerText = translations[lang].InputOptionsButton; + document.getElementById('saveLoc').innerText = translations[lang].saveLoc; document.getElementById('WeatherApiText').innerText = translations[lang].WeatherApiText; document.getElementById('WeatherApiSubtext').innerText = translations[lang].WeatherApiSubtext; + document.getElementById('userAPI').placeholder = translations[lang].userAPI; document.getElementById('LearnMoreButton').innerText = translations[lang].LearnMoreButton; document.getElementById('saveAPI').innerText = translations[lang].saveAPI; + // End of Menu Items // Body Items @@ -298,9 +397,9 @@ function applyLanguage(lang) { document.getElementById('userText').innerText = translations[lang].userText; // Weather - // document.getElementById("humidityText").textContent = translations[lang].humidityText; - document.getElementById("feelsLike").textContent = translations[lang].feelsLike; - // End of Weather + // document.getElementById("humidityText").innerText = translations[lang].humidityText; + document.getElementById("feelsLike").innerText = translations[lang].feelsLike; + document.getElementById("location").innerText = translations[lang].location; // End of Body Items From 4fe3deac2b31ed87aebcce0ee86623980ef554fb Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:55:27 +0530 Subject: [PATCH 3/7] Update script.js --- script.js | 194 +++++++++++++++++++++++++++++------------------------- 1 file changed, 106 insertions(+), 88 deletions(-) diff --git a/script.js b/script.js index d838e29d..1b25fc06 100644 --- a/script.js +++ b/script.js @@ -17,18 +17,24 @@ window.addEventListener('DOMContentLoaded', async () => { } - // Load the API key from localStorage + // Load the API key, location and proxy from localStorage const savedApiKey = localStorage.getItem("weatherApiKey"); const userAPIInput = document.getElementById("userAPI"); + const savedLocation = localStorage.getItem("weatherLocation"); + const userLocInput = document.getElementById("userLoc"); const savedProxy = localStorage.getItem("proxy"); const userProxyInput = document.getElementById("userproxy"); if (savedApiKey) { userAPIInput.value = savedApiKey; } + if (savedLocation) { + userLocInput.value = savedLocation; + } if (savedProxy) { userProxyInput.value = savedProxy; } const saveAPIButton = document.getElementById("saveAPI"); + const saveLocButton = document.getElementById("saveLoc"); const resetbtn = document.getElementById("resetsettings"); const saveProxyButton = document.getElementById("saveproxy"); // Add an event listener to save the API key when the "Save" button is clicked @@ -39,6 +45,13 @@ window.addEventListener('DOMContentLoaded', async () => { document.getElementById("userAPI").value = ""; location.reload(); }); + saveLocButton.addEventListener("click", () => { + const userLocation = userLocInput.value; + // Save the location to localStorage + localStorage.setItem("weatherLocation", userLocation); + document.getElementById("userLoc").value = ""; + location.reload(); + }); resetbtn.addEventListener("click", () => { if (confirm("Are you sure you want to reset your settings? This action cannot be undone.")) { localStorage.clear(); @@ -82,9 +95,10 @@ window.addEventListener('DOMContentLoaded', async () => { const locationData = await fetch(geoLocation); const parsedLocation = await locationData.json(); const currentUserLocation = parsedLocation.ip; + const locationQuery = savedLocation || currentUserLocation; var currentLanguage = getLanguageStatus('selectedLanguage') || 'en'; - const weatherApi = `https://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${currentUserLocation}&aqi=no&lang=${currentLanguage}`; + const weatherApi = `https://api.weatherapi.com/v1/current.json?key=${apiKey}&q=${locationQuery}&aqi=no&lang=${currentLanguage}`; const data = await fetch(weatherApi); const parsedData = await data.json(); @@ -135,6 +149,7 @@ window.addEventListener('DOMContentLoaded', async () => { } catch (error) { console.error("Error fetching weather data:", error); + // alert("Unable to fetch weather data. Please check your location or API key."); // Handle errors here, e.g., display an error message to the user. } }); @@ -157,61 +172,61 @@ document.getElementById("second").style.transform = `rotate(${cumulativeSecondRo document.getElementById("minute").style.transform = `rotate(${cumulativeMinuteRotation}deg)`; document.getElementById("hour").style.transform = `rotate(${cumulativeHourRotation}deg)`; -let intervalId; -let secondreset=false; -let hourreset=false; -let minreset=false; +let intervalId; +let secondreset = false; +let hourreset = false; +let minreset = false; function updateanalogclock() { var currentTime = new Date(); var initialSeconds = currentTime.getSeconds(); -var initialMinutes = currentTime.getMinutes(); -var initialHours = currentTime.getHours(); - -// Initialize cumulative rotations -let cumulativeSecondRotation = initialSeconds * 6; // 6° par seconde -let cumulativeMinuteRotation = initialMinutes * 6 + (initialSeconds / 10); // 6° par minute + ajustement pour les secondes -let cumulativeHourRotation = (30 * initialHours + initialMinutes / 2); -if(secondreset){ - document.getElementById("second").style.transition = "none"; - document.getElementById("second").style.transform = `rotate(0deg)`; - secondreset=false; - return; -} -if(minreset){ - document.getElementById("minute").style.transition = "none"; - document.getElementById("minute").style.transform = `rotate(0deg)`; - minreset=false; - return; -} -if(hourreset){ - document.getElementById("hour").style.transition = "none"; - document.getElementById("hour").style.transform = `rotate(0deg)`; - hourreset=false; - return; -} -if(cumulativeSecondRotation==0){ - document.getElementById("second").style.transition = "transform 1s ease"; - document.getElementById("second").style.transform = `rotate(361deg)`; - secondreset=true; -}else if (secondreset!=true){ - document.getElementById("second").style.transition = "transform 1s ease"; - document.getElementById("second").style.transform = `rotate(${cumulativeSecondRotation}deg)`; -} -if(cumulativeMinuteRotation==0){ - document.getElementById("minute").style.transition = "transform 1s ease"; - document.getElementById("minute").style.transform = `rotate(361deg)`; - minreset=true; -}else if(minreset!=true){ - document.getElementById("minute").style.transition = "transform 1s ease"; - document.getElementById("minute").style.transform = `rotate(${cumulativeMinuteRotation}deg)`; -}if(cumulativeHourRotation==0){ - document.getElementById("hour").style.transition = "transform 1s ease"; - document.getElementById("hour").style.transform = `rotate(361deg)`; - hourreset=true; -}else if(hourreset!=true){ - document.getElementById("hour").style.transition = "transform 1s ease"; // Transition fluide - document.getElementById("hour").style.transform = `rotate(${cumulativeHourRotation}deg)`; -} + var initialMinutes = currentTime.getMinutes(); + var initialHours = currentTime.getHours(); + + // Initialize cumulative rotations + let cumulativeSecondRotation = initialSeconds * 6; // 6° par seconde + let cumulativeMinuteRotation = initialMinutes * 6 + (initialSeconds / 10); // 6° par minute + ajustement pour les secondes + let cumulativeHourRotation = (30 * initialHours + initialMinutes / 2); + if (secondreset) { + document.getElementById("second").style.transition = "none"; + document.getElementById("second").style.transform = `rotate(0deg)`; + secondreset = false; + return; + } + if (minreset) { + document.getElementById("minute").style.transition = "none"; + document.getElementById("minute").style.transform = `rotate(0deg)`; + minreset = false; + return; + } + if (hourreset) { + document.getElementById("hour").style.transition = "none"; + document.getElementById("hour").style.transform = `rotate(0deg)`; + hourreset = false; + return; + } + if (cumulativeSecondRotation == 0) { + document.getElementById("second").style.transition = "transform 1s ease"; + document.getElementById("second").style.transform = `rotate(361deg)`; + secondreset = true; + } else if (secondreset != true) { + document.getElementById("second").style.transition = "transform 1s ease"; + document.getElementById("second").style.transform = `rotate(${cumulativeSecondRotation}deg)`; + } + if (cumulativeMinuteRotation == 0) { + document.getElementById("minute").style.transition = "transform 1s ease"; + document.getElementById("minute").style.transform = `rotate(361deg)`; + minreset = true; + } else if (minreset != true) { + document.getElementById("minute").style.transition = "transform 1s ease"; + document.getElementById("minute").style.transform = `rotate(${cumulativeMinuteRotation}deg)`; + } if (cumulativeHourRotation == 0) { + document.getElementById("hour").style.transition = "transform 1s ease"; + document.getElementById("hour").style.transform = `rotate(361deg)`; + hourreset = true; + } else if (hourreset != true) { + document.getElementById("hour").style.transition = "transform 1s ease"; // Transition fluide + document.getElementById("hour").style.transform = `rotate(${cumulativeHourRotation}deg)`; + } // Get the day of the week (0 = Sunday, 1 = Monday, ..., 6 = Saturday) var dayOfWeek = currentTime.getDay(); // Get the day of the month (1 - 31) @@ -225,45 +240,48 @@ if(cumulativeMinuteRotation==0){ // Get the translated name of the day and month var dayName = translations[currentLanguage].days[dayOfWeek]; var monthName = translations[currentLanguage].months[month]; - const clocktype1=localStorage.getItem("clocktype"); -if(clocktype1=="analog"){ - // Language formatting - if (currentLanguage === 'pt') { - // Portuguese formatting: "day of the week, day of the month" - document.getElementById("date").innerText = `${dayName.substring(0, 3)}, ${dayOfMonth} ${monthName.substring(0, 3)} `; - } else { - // English formatting: "day of the month name" - document.getElementById("date").innerText = `${dayName.substring(0, 3)}, ${monthName.substring(0, 3)} ${dayOfMonth} `; + const clocktype1 = localStorage.getItem("clocktype"); + if (clocktype1 == "analog") { + // Language formatting + if (currentLanguage === 'pt') { + // Portuguese formatting: "day of the week, day of the month" + document.getElementById("date").innerText = `${dayName.substring(0, 3)}, ${dayOfMonth} ${monthName.substring(0, 3)} `; + } else if (currentLanguage === 'hi') { + // Hindi formatting: Show full name for month + document.getElementById("date").innerText = `${dayName}, ${dayOfMonth} ${monthName}`; + } else { + // English formatting: "day of the month name" + document.getElementById("date").innerText = `${dayName.substring(0, 3)}, ${monthName.substring(0, 3)} ${dayOfMonth} `; + } } } -} function updatedigiClock() { - const hourformatstored=localStorage.getItem("hourformat"); - if(hourformatstored){ - if(hourformatstored=="true"){ - hourformat=true; - }else if(hourformatstored=="false"){ - hourformat=false; - } - }else{ - hourformat=false; + const hourformatstored = localStorage.getItem("hourformat"); + if (hourformatstored) { + if (hourformatstored == "true") { + hourformat = true; + } else if (hourformatstored == "false") { + hourformat = false; + } + } else { + hourformat = false; } const now = new Date(); const options = { weekday: 'short', day: 'numeric' }; const dateString = now.toLocaleDateString('en-US', options); - + const timeOptions = { hour: '2-digit', minute: '2-digit', hour12: hourformat }; const timeString = now.toLocaleTimeString('en-US', timeOptions); const formattedTimeString = timeString.replace(/ (AM|PM)/, ''); document.getElementById('digidate').textContent = dateString; document.getElementById('digiclock').textContent = formattedTimeString; - + let greeting; const currentHour = now.getHours(); - + if (currentHour < 12) { greeting = "Good Morning!"; } else if (currentHour < 18) { @@ -271,10 +289,10 @@ function updatedigiClock() { } else { greeting = "Good Evening!"; } - - const clocktype1=localStorage.getItem("clocktype"); - if(clocktype1=="digital"){ - document.getElementById("date").innerText = greeting; + + const clocktype1 = localStorage.getItem("clocktype"); + if (clocktype1 == "digital") { + document.getElementById("date").innerText = greeting; } } function startClock() { @@ -289,10 +307,10 @@ function stopClock() { intervalId = null; // Reset intervalId } -clocktype=localStorage.getItem("clocktype"); -if(!clocktype){ +clocktype = localStorage.getItem("clocktype"); +if (!clocktype) { localStorage.setItem("clocktype", "analog"); - clocktype=localStorage.getItem("clocktype"); + clocktype = localStorage.getItem("clocktype"); } displayClock(); setInterval(updatedigiClock, 1000); @@ -309,7 +327,7 @@ if (clocktype) { startClock(); } } -document.addEventListener("visibilitychange", function() { +document.addEventListener("visibilitychange", function () { if (document.visibilityState === 'visible') { startClock(); // Start the clock if the tab is focused } else { @@ -319,7 +337,7 @@ document.addEventListener("visibilitychange", function() { function displayClock() { const analogClock = document.getElementById('analogClock'); -const digitalClock = document.getElementById('digitalClock'); + const digitalClock = document.getElementById('digitalClock'); if (clocktype === 'analog') { analogClock.style.display = 'block'; // Show the analog clock @@ -1289,14 +1307,14 @@ document.addEventListener("DOMContentLoaded", function () { if (digitalCheckbox.checked) { timeformatField.classList.remove("inactive"); localStorage.setItem("clocktype", "digital"); - clocktype=localStorage.getItem("clocktype"); + clocktype = localStorage.getItem("clocktype"); displayClock(); stopClock(); saveActiveStatus("timeformatField", "active"); } else { timeformatField.classList.add("inactive"); localStorage.setItem("clocktype", "analog"); - clocktype=localStorage.getItem("clocktype"); + clocktype = localStorage.getItem("clocktype"); stopClock(); startClock(); displayClock(); @@ -1481,4 +1499,4 @@ document.addEventListener("DOMContentLoaded", function () { loadDisplayStatus("aiToolsDisplayStatus", aiToolsCont); loadCheckboxState("fahrenheitCheckboxState", fahrenheitCheckbox); loadShortcuts(); -}); \ No newline at end of file +}); From 36ba9324778c52191dd0a46a88583406c5442240 Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 14:27:52 +0530 Subject: [PATCH 4/7] Added Bangla Translation --- languages.js | 68 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 52 insertions(+), 16 deletions(-) diff --git a/languages.js b/languages.js index bb9265a9..bf11ba5a 100644 --- a/languages.js +++ b/languages.js @@ -184,9 +184,10 @@ const translations = { // Body Items // Calendar - "days": ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], // Truncated for display - // "days": ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'], // Full + "days": ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], // Truncated for display + // "days": ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'], // Full "months": ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितम्बर', 'अक्टूबर', 'नवंबर', 'दिसंबर'], + // "months": ['जन', 'फर', 'मार्च', 'अप्र', 'मई', 'जून', 'जुला', 'अग', 'सित', 'अक्टू', 'नव', 'दिस'], // Truncated // Weather "humidityText": "नमी", @@ -306,38 +307,73 @@ const translations = { }, "bn": { // Menu Items + "feedback": "প্রতিক্রিয়া", + "resetsettings": "সেটিংস রিসেট করুন", + // later ----> "menuCloseButton:hover::after": "বন্ধ করুন", + // Shortcuts "shortcutsText": "শর্টকাট", - "enableShortcutsText": "শর্টকাট সক্রিয়/অক্ষম করুন", - "ai_tools_button": "এআই-সরঞ্জাম", - "enable_ai_tools": "এআই সরঞ্জাম শর্টকাট সক্রিয়/অক্ষম করুন", - "fahrenheitCelsiusCheckbox": "ফারেনহাইটে সুইচ করুন", - "fahrenheitCelsiusText": "আপডেট দেখতে পেজ রিফ্রেশ করুন", - "WeatherApiText": "আপনার নিজস্ব আবহাওয়াএপিআই পিন লিখুন", - "WeatherApiSubtext": "যদি আবহাওয়া কার্যকারিতা কাজ না করে", + "enableShortcutsText": "শর্টকাট সক্রিয়/নিষ্ক্রিয় করুন", + "editShortcutsText": "শর্টকাট সম্পাদনা করুন", + "editShortcutsList": "শর্টকাট সম্পাদনা তালিকা", + "shortcutsInfoText": "যেসব শর্টকাট প্রদর্শিত হবে তা নির্বাচন করুন", + "adaptiveIconShapes": "অ্যাডাপ্টিভ আইকন আকার", + "adaptiveIconInfoText": "শর্টকাট আইকন সর্বদা গোলাকার থাকবে", + "ai_tools_button": "AI সরঞ্জাম", + "enable_ai_tools": "AI সরঞ্জাম শর্টকাট সক্রিয়/নিষ্ক্রিয় করুন", + // Digital Clock + "digitalclocktittle": "ডিজিটাল ঘড়ি", + "digitalclockinfo": "ডিজিটাল ঘড়ি সক্রিয়/নিষ্ক্রিয় করুন", + "timeformattittle": "১২ ঘণ্টার ফরম্যাট ব্যবহার করুন", + "timeformatinfo": "১২ ঘণ্টার সময় ফরম্যাট ব্যবহার করুন", + // Misc + "fahrenheitCelsiusCheckbox": "ফারেনহাইটে পরিবর্তন করুন", + "fahrenheitCelsiusText": "আপডেট দেখতে পৃষ্ঠা রিফ্রেশ করুন", + "search_suggestions_button": "অনুসন্ধানের পরামর্শ", + "search_suggestions_text": "অনুসন্ধানের পরামর্শ সক্রিয়/নিষ্ক্রিয় করুন", + // Proxy + "useproxytitletext": "প্রক্সি বাইপাস", + "useproxyText": "যদি অনুসন্ধানের পরামর্শ কাজ না করে", + "ProxyText": "CORS বাইপাস প্রক্সি", + "ProxySubtext": "আপনার নিজের CORS বাইপাস প্রক্সি যোগ করুন", + "HostproxyButton": "আপনার নিজের প্রক্সি হোস্ট করুন", + "saveproxy": "প্রবেশ করুন", + // Location + "UserLocText": "আপনার অবস্থান লিখুন", + "UserLocSubtext": "যদি আবহাওয়ার অবস্থান সঠিক না হয়", + "userLoc": "আপনার অবস্থান (শহর/অক্ষাংশ,দ্রাঘিমাংশ)", + "InputOptionsButton": "ইনপুট অপশন", + "saveLoc": "প্রবেশ করুন", + // Weather + "WeatherApiText": "আপনার নিজস্ব WeatherAPI কী লিখুন", + "WeatherApiSubtext": "যদি আবহাওয়া ফিচার কাজ না করে", + "userAPI": "আপনার WeatherAPI কী", "LearnMoreButton": "আরও জানুন", "saveAPI": "প্রবেশ করুন", // End of Menu Items // Body Items // Calendar - "days": ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'], + "days": ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'], // Truncated for display + //"days": ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'], // Full "months": ['জানুয়ারি', 'ফেব্রুয়ারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'], + // "months": ['জানু', 'ফেব', 'মার্চ', 'এপ্রি', 'মে', 'জুন', 'জুলাই', 'আগ', 'সেপ', 'অক্টো', 'নভে', 'ডিসে'], // Truncated // End of Calendar // Weather "humidityText": "আর্দ্রতা", - "feelsLike": "অনুভব হয়", + "feelsLike": "অনুভূত হয়", + "location": "পৃথিবী", // End of Weather // New Tab Item - "conditionText": "হ্যালো! কেমন আছেন আজ?", + "conditionText": "হ্যালো! আপনি আজ কেমন আছেন?", "enterBtn": "প্রবেশ করুন", - "searchPlaceholder": "আপনার প্রশ্ন...", - "searchWithHint": "সঙ্গে অনুসন্ধান করুন", - "ai_tools": "এআই টুলস", + "searchPlaceholder": "আপনার প্রশ্ন লিখুন...", + "searchWithHint": "অনুসন্ধান করুন এর মাধ্যমে", + "ai_tools": "AI সরঞ্জাম", "userText": "সম্পাদনা করতে ডবল ট্যাপ করুন", // End of Body and New Tab Items - }, + } }; // Function to apply the language to the page From 386662c0297fafe2f889a6d11672f16ff7f221f7 Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 14:32:52 +0530 Subject: [PATCH 5/7] Bangla language formatting: Show full name for month For languages like Hindi and Bengali, using only the first three characters of a month, as done by default in English (e.g., 'Oct' for October), often creates ambiguous words. --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 1b25fc06..f6ae8b2a 100644 --- a/script.js +++ b/script.js @@ -246,8 +246,8 @@ function updateanalogclock() { if (currentLanguage === 'pt') { // Portuguese formatting: "day of the week, day of the month" document.getElementById("date").innerText = `${dayName.substring(0, 3)}, ${dayOfMonth} ${monthName.substring(0, 3)} `; - } else if (currentLanguage === 'hi') { - // Hindi formatting: Show full name for month + } else if (currentLanguage === 'hi' || currentLanguage === 'bn') { + // Hindi and Bangla formatting: Show full name for month document.getElementById("date").innerText = `${dayName}, ${dayOfMonth} ${monthName}`; } else { // English formatting: "day of the month name" From 38d455197c02d5cea774d04b1bc589db5c4d0bd4 Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:13:48 +0530 Subject: [PATCH 6/7] Update languages.js --- languages.js | 630 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 414 insertions(+), 216 deletions(-) diff --git a/languages.js b/languages.js index f7d18cdd..694f393b 100644 --- a/languages.js +++ b/languages.js @@ -68,74 +68,146 @@ const translations = { // toDo for "menuCloseButton:hover::after": "Close", }, - "pt": { - // Menu Items - "shortcutsText": "Atalhos", - "enableShortcutsText": "Ativar/desativar atalhos", - "ai_tools_button": "Ferramentas de IA", - "enable_ai_tools": "Ativar/desativar atalhos de ferramentas de IA", - "fahrenheitCelsiusCheckbox": "Alternar para Fahrenheit", - "fahrenheitCelsiusText": "Atualize a página para ver as atualizações", - "WeatherApiText": "Insira sua propria API de Clima", - "WeatherApiSubtext": "Se a funcionalidade de clima não estiver funcionando", - "LearnMoreButton": "Saiba Mais", - "saveAPI": "Salvar API", - // End of Menu Items - - // Body Items - // Calendar - "days": ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'], - "months": ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'], - // End of Calendar - - // Weather - "humidityText": "Umidade", - "feelsLike": "Sensação de", - // End of Weather - // New Tab Item - "conditionText": "Olá! Como está hoje?", - "enterBtn": "Pesquisar", - "searchPlaceholder": "Digite sua pesquisa...", - "searchWithHint": "Pesquisar Com", - "ai_tools": "Ferramentas de IA", - "userText": "Toque para editar", - // End of Body and New Tab Items - }, + // Portuguese + // Machine translated some elements, please verify and delete this comment + "pt": { + // Menu Items + "feedback": "Feedback", + "resetsettings": "Redefinir Configurações", + // Shortcuts + "shortcutsText": "Atalhos", + "enableShortcutsText": "Ativar/desativar atalhos", + "editShortcutsText": "Editar Atalhos", + "editShortcutsList": "Editar Atalhos", + "shortcutsInfoText": "Escolha quais atalhos serão exibidos", + "adaptiveIconText": "Formas de Ícone Adaptativo", + "adaptiveIconInfoText": "Os ícones de atalhos serão sempre redondos", + "ai_tools_button": "Ferramentas de IA", + "enable_ai_tools": "Ativar/desativar atalhos de ferramentas de IA", + // Digital Clock + "digitalclocktittle": "Relógio Digital", + "digitalclockinfo": "Ativar/desativar o Relógio Digital", + "timeformattittle": "Usar Formato de 12h", + "timeformatinfo": "Usar formato de hora de 12 horas", + // Misc + "fahrenheitCelsiusCheckbox": "Alternar para Fahrenheit", + "fahrenheitCelsiusText": "Atualize a página para ver as atualizações", + "search_suggestions_button": "Sugestões de Pesquisa", + "search_suggestions_text": "Ativar/desativar Sugestões de Pesquisa", + // Proxy + "useproxytitletext": "Bypass de Proxy", + "useproxyText": "Se as sugestões de pesquisa não estiverem funcionando", + "ProxyText": "Proxy de Bypass CORS", + "ProxySubtext": "Adicione seu próprio Proxy de Bypass CORS", + "HostproxyButton": "Hospede Seu Próprio Proxy", + "saveproxy": "Salvar", + // Location + "UserLocText": "Insira sua localização", + "UserLocSubtext": "Se a localização do clima não estiver correta", + "userLoc": "Sua localização (Cidade/Aletitude,Longitude)", + "InputOptionsButton": "Opções de Entrada", + "saveLoc": "Salvar", + // Weather + "WeatherApiText": "Insira sua própria chave da API de Clima", + "WeatherApiSubtext": "Se a funcionalidade do clima não estiver funcionando", + "userAPI": "Sua chave da WeatherAPI", + "LearnMoreButton": "Saiba Mais", + "saveAPI": "Salvar API", + // End of Menu Items + + // Body Items + // Calendar + "days": ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'], + "months": ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'], + // End of Calendar + + // Weather + "humidityText": "Umidade", + "feelsLike": "Sensação de", + "location": "Terra", + // End of Weather + + // New Tab Item + "conditionText": "Olá! Como você está hoje?", + "enterBtn": "Entrar", + "searchPlaceholder": "Digite sua consulta...", + "searchWithHint": "Pesquisar Com", + "ai_tools": "Ferramentas de IA", + "userText": "Toque duas vezes para editar", + // End of Body and New Tab Items +}, + + // Chinese + // Machine translated some elements, please verify and delete this comment "zh": { - // Menu Items - "shortcutsText": "快捷方式", - "enableShortcutsText": "启用/禁用快捷方式", - "ai_tools_button": "AI工具", - "enable_ai_tools": "启用/禁用AI工具快捷方式", - "fahrenheitCelsiusCheckbox": "切换到华氏温度", - "fahrenheitCelsiusText": "刷新页面以查看更新", - "WeatherApiText": "输入您自己的天气API密钥", - "WeatherApiSubtext": "如果天气功能无法正常工作", - "LearnMoreButton": "了解更多", - "saveAPI": "保存", - // End of Menu Items - - // Body Items - // Calendar - "days": ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - "months": ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - // End of Calendar - - // Weather - "humidityText": "湿度", - "feelsLike": "体感", - // End of Weather - - // New Tab Item - "conditionText": "你好!今天怎么样?", - "enterBtn": "搜索", - "searchPlaceholder": "输入搜索内容...", - "searchWithHint": "引擎", - "ai_tools": "AI工具", - "userText": "双击可编辑", - // End of Body and New Tab Items - }, + // Menu Items + "feedback": "反馈", + "resetsettings": "重置设置", + // Shortcuts + "shortcutsText": "快捷方式", + "enableShortcutsText": "启用/禁用快捷方式", + "editShortcutsText": "编辑快捷方式", + "editShortcutsList": "编辑快捷方式", + "shortcutsInfoText": "选择要显示的快捷方式", + "adaptiveIconText": "自适应图标形状", + "adaptiveIconInfoText": "快捷方式图标将始终为圆形", + "ai_tools_button": "AI工具", + "enable_ai_tools": "启用/禁用AI工具快捷方式", + // Digital Clock + "digitalclocktittle": "数字时钟", + "digitalclockinfo": "启用/禁用数字时钟", + "timeformattittle": "使用12小时格式", + "timeformatinfo": "使用12小时制时间格式", + // Misc + "fahrenheitCelsiusCheckbox": "切换到华氏温度", + "fahrenheitCelsiusText": "刷新页面以查看更新", + "search_suggestions_button": "搜索建议", + "search_suggestions_text": "启用/禁用搜索建议", + // Proxy + "useproxytitletext": "代理绕过", + "useproxyText": "如果搜索建议无法正常工作", + "ProxyText": "CORS绕过代理", + "ProxySubtext": "添加您自己的CORS绕过代理", + "HostproxyButton": "托管您自己的代理", + "saveproxy": "保存", + // Location + "UserLocText": "输入您的位置", + "UserLocSubtext": "如果天气位置不正确", + "userLoc": "您的位置(城市/纬度,经度)", + "InputOptionsButton": "输入选项", + "saveLoc": "保存", + // Weather + "WeatherApiText": "输入您自己的天气API密钥", + "WeatherApiSubtext": "如果天气功能无法正常工作", + "userAPI": "您的天气API密钥", + "LearnMoreButton": "了解更多", + "saveAPI": "保存API", + // End of Menu Items + + // Body Items + // Calendar + "days": ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], + "months": ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], + // End of Calendar + + // Weather + "humidityText": "湿度", + "feelsLike": "体感温度", + "location": "地球", + // End of Weather + + // New Tab Item + "conditionText": "你好!今天怎么样?", + "enterBtn": "输入", + "searchPlaceholder": "输入搜索内容...", + "searchWithHint": "搜索引擎", + "ai_tools": "AI工具", + "userText": "双击可编辑", + // End of Body and New Tab Items +}, + + // Hindi "hi": { // Menu Items "feedback": "प्रतिक्रिया", @@ -197,114 +269,222 @@ const translations = { // New Tab Item "conditionText": "नमस्ते! आप आज कैसे हैं?", - "enterBtn": "दर्ज करें", + "enterBtn": "सर्च करें", "searchPlaceholder": "यहाँ लिखें...", "searchWithHint": "खोज माध्यम", "ai_tools": "AI उपकरण", - "userText": "संपादित करने के लिए दो बार टैप करें", + "userText": "यहाँ अपना टेक्स्ट लिखें", // End of Body and New Tab Items }, - "cs": { - // Menu Items - "shortcutsText": "Zkratky", - "enableShortcutsText": "Povolí/zakáže zkratky", - "ai_tools_button": "AI nástroje", - "enable_ai_tools": "Povolí/zakáže zkratky nástrojů AI", - "fahrenheitCelsiusCheckbox": "Přepnout na stupně Fahrenheita", - "fahrenheitCelsiusText": "Změny se projeví po obnovení stránky", - "WeatherApiText": "Zadejte svůj klíč k WeatherAPI", - "WeatherApiSubtext": "Pokud nefunguje funkce počasí", - "LearnMoreButton": "Zjistit více", - "saveAPI": "Uložit", - // End of Menu Items - // Body Items - // Calendar - "days": ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'], - "months": ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'], - // End of Calendar - // Weather - "humidityText": "Vlhkost", - "feelsLike": "Teplota", - // End of Weather - - // New Tab Item - "conditionText": "Dobrý den! Jak se máte?", - "enterBtn": "Vyhledat", - "searchPlaceholder": "Zadejte hledaný výraz...", - "searchWithHint": "Vyhledávat prostřednictvím", - "ai_tools": "AI nástroje", - "userText": "Upravit dvojklikem", - // End of Body and New Tab Items - }, + // Czech + // Machine translated some elements, please verify and delete this comment + "cs": { + // Menu Items + "feedback": "Zpětná vazba", + "resetsettings": "Obnovit nastavení", + // Shortcuts + "shortcutsText": "Zkratky", + "enableShortcutsText": "Povolí/zakáže zkratky", + "editShortcutsText": "Upravit zkratky", + "editShortcutsList": "Upravit zkratky", + "shortcutsInfoText": "Vyberte, které zkratky se mají zobrazit", + "adaptiveIconText": "Adaptivní tvary ikon", + "adaptiveIconInfoText": "Ikony zkratek budou vždy kulaté", + "ai_tools_button": "AI nástroje", + "enable_ai_tools": "Povolí/zakáže zkratky nástrojů AI", + // Digital Clock + "digitalclocktittle": "Digitální hodiny", + "digitalclockinfo": "Povolí/zakáže digitální hodiny", + "timeformattittle": "Použít 12hodinový formát", + "timeformatinfo": "Použít 12hodinový formát času", + // Misc + "fahrenheitCelsiusCheckbox": "Přepnout na stupně Fahrenheita", + "fahrenheitCelsiusText": "Změny se projeví po obnovení stránky", + "search_suggestions_button": "Návrhy vyhledávání", + "search_suggestions_text": "Povolí/zakáže návrhy vyhledávání", + // Proxy + "useproxytitletext": "Obcházení proxy", + "useproxyText": "Pokud návrhy vyhledávání nefungují", + "ProxyText": "Proxy pro obcházení CORS", + "ProxySubtext": "Přidejte vlastní proxy pro obcházení CORS", + "HostproxyButton": "Hostit vlastní proxy", + "saveproxy": "Uložit", + // Location + "UserLocText": "Zadejte svou polohu", + "UserLocSubtext": "Pokud není správná poloha počasí", + "userLoc": "Vaše poloha (Město/Šířka,Délka)", + "InputOptionsButton": "Možnosti vstupu", + "saveLoc": "Uložit", + // Weather + "WeatherApiText": "Zadejte svůj klíč k WeatherAPI", + "WeatherApiSubtext": "Pokud nefunguje funkce počasí", + "userAPI": "Váš klíč k WeatherAPI", + "LearnMoreButton": "Zjistit více", + "saveAPI": "Uložit API", + // End of Menu Items + + // Body Items + // Calendar + "days": ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'], + "months": ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'], + // End of Calendar + + // Weather + "humidityText": "Vlhkost", + "feelsLike": "Pocitová teplota", + "location": "Země", + // End of Weather + + // New Tab Item + "conditionText": "Dobrý den! Jak se máte?", + "enterBtn": "Vyhledat", + "searchPlaceholder": "Zadejte hledaný výraz...", + "searchWithHint": "Vyhledávat prostřednictvím", + "ai_tools": "AI nástroje", + "userText": "Dvojklikem upravit", + // End of Body and New Tab Items +}, + + // Italian + // Machine translated some elements, please verify and delete this comment "it": { - // Menu Items - "shortcutsText": "Scorciatoie", - "enableShortcutsText": "Abilita/disabilita scorciatoie", - "ai_tools_button": "Strumenti AI", - "enable_ai_tools": "Abilita/disabilita scorciatoie Strumenti AI", - "fahrenheitCelciusCheckbox": "Passa a Fahrenheit", - "fahrenheitCelciusText": "Ricarica la pagina per vedere gli aggiornamenti", - "WeatherApiText": "Inserisci la tua chiave WeatherAPI", - "WeatherApiSubtext": "Se la funzionalità meteo non funziona", - "LearnMoreButton": "Scopri di più", - "saveAPI": "Invia", - // End of Menu Items - - // Body Items - // Calendar - "days": ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'], - "months": ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'], - // End of Calendar - - // Weather - "humidityText": "Umidità", - "feelsLike": "Percepito", - // End of Weather - - // New Tab Item - "conditionText": "Ciao! Come stai oggi?", - "enterBtn": "Invia", - "searchPlaceholder": "Cerca...", - "searchWithHint": "Cerca con", - "ai_tools": "Strumenti AI", - "userText": "Clicca per modificare", - // End of Body and New Tab Items - }, + // Menu Items + "feedback": "Feedback", + "resetsettings": "Reimposta Impostazioni", + // Shortcuts + "shortcutsText": "Scorciatoie", + "enableShortcutsText": "Abilita/disabilita scorciatoie", + "editShortcutsText": "Modifica Scorciatoie", + "editShortcutsList": "Modifica Scorciatoie", + "shortcutsInfoText": "Scegli quali scorciatoie mostrare", + "adaptiveIconText": "Forme di Icona Adattiva", + "adaptiveIconInfoText": "Le icone delle scorciatoie saranno sempre rotonde", + "ai_tools_button": "Strumenti AI", + "enable_ai_tools": "Abilita/disabilita scorciatoie Strumenti AI", + // Digital Clock + "digitalclocktittle": "Orologio Digitale", + "digitalclockinfo": "Abilita/disabilita Orologio Digitale", + "timeformattittle": "Usa formato 12h", + "timeformatinfo": "Usa formato orario a 12 ore", + // Misc + "fahrenheitCelciusCheckbox": "Passa a Fahrenheit", + "fahrenheitCelciusText": "Ricarica la pagina per vedere gli aggiornamenti", + "search_suggestions_button": "Suggerimenti di Ricerca", + "search_suggestions_text": "Abilita/disabilita Suggerimenti di Ricerca", + // Proxy + "useproxytitletext": "Bypass Proxy", + "useproxyText": "Se i suggerimenti di ricerca non funzionano", + "ProxyText": "Proxy di Bypass CORS", + "ProxySubtext": "Aggiungi il tuo Proxy di Bypass CORS", + "HostproxyButton": "Hosta il Tuo Proxy", + "saveproxy": "Invia", + // Location + "UserLocText": "Inserisci la tua posizione", + "UserLocSubtext": "Se la posizione meteo non è corretta", + "userLoc": "La tua posizione (Città/Latitudine,Longitudine)", + "InputOptionsButton": "Opzioni di Inserimento", + "saveLoc": "Invia", + // Weather + "WeatherApiText": "Inserisci la tua chiave WeatherAPI", + "WeatherApiSubtext": "Se la funzionalità meteo non funziona", + "userAPI": "La tua chiave WeatherAPI", + "LearnMoreButton": "Scopri di più", + "saveAPI": "Invia", + // End of Menu Items + + // Body Items + // Calendar + "days": ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'], + "months": ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'], + // End of Calendar + + // Weather + "humidityText": "Umidità", + "feelsLike": "Percepito", + "location": "Terra", + // End of Weather + + // New Tab Item + "conditionText": "Ciao! Come stai oggi?", + "enterBtn": "Invia", + "searchPlaceholder": "Cerca...", + "searchWithHint": "Cerca con", + "ai_tools": "Strumenti AI", + "userText": "Clicca per modificare", + // End of Body and New Tab Items +}, + + // Turkish + // Machine translated some elements, please verify and delete this commenty "tr": { - // Menu Items - "shortcutsText": "Kısayollar", - "enableShortcutsText": "Kısayolları etkinleştir/devre dışı bırak", - "ai_tools_button": "AI Araçları", - "enable_ai_tools": "AI Araçları kısayollarını etkinleştir/devre dışı bırak", - "fahrenheitCelsiusCheckbox": "Fahrenheit'a geç", - "fahrenheitCelsiusText": "Sayfayı yenilemek güncellemeleri görmek için", - "WeatherApiText": "Hava durumu API anahtarınızı girin", - "WeatherApiSubtext": "Hava durumu işlevi çalışmıyorsa", - "LearnMoreButton": "Daha fazla bilgi edinin", - "saveAPI": "Gönder", - // End of Menu Items - - // Body Items - // Calendar - "days": ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'], - "months": ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], - // End of Calendar - - // Weather - "humidityText": "Nem", - "feelsLike": "Hissedilen", - // End of Weather - - // New Tab Item - "conditionText": "Merhaba! Nasılsın?", - "enterBtn": "Gönder", - "searchPlaceholder": "Aranacak şey...", - "searchWithHint": "Arama yap", - "ai_tools": "AI Araçları", - "userText": "Düzenlemek için çift tıklayın", - // End of Body and New Tab Items - }, + // Menu Items + "feedback": "Geri Bildirim", + "resetsettings": "Ayarları Sıfırla", + // Shortcuts + "shortcutsText": "Kısayollar", + "enableShortcutsText": "Kısayolları etkinleştir/devre dışı bırak", + "editShortcutsText": "Kısayolları Düzenle", + "editShortcutsList": "Kısayolları Düzenle", + "shortcutsInfoText": "Hangi kısayolların gösterileceğini seçin", + "adaptiveIconText": "Uyarlanabilir İkon Şekilleri", + "adaptiveIconInfoText": "Kısayol İkonları her zaman yuvarlak olacak", + "ai_tools_button": "AI Araçları", + "enable_ai_tools": "AI Araçları kısayollarını etkinleştir/devre dışı bırak", + // Digital Clock + "digitalclocktittle": "Dijital Saat", + "digitalclockinfo": "Dijital Saati etkinleştir/devre dışı bırak", + "timeformattittle": "12 saat Formatını Kullanın", + "timeformatinfo": "12 saat zaman formatını kullanın", + // Misc + "fahrenheitCelsiusCheckbox": "Fahrenheit'a geç", + "fahrenheitCelsiusText": "Güncellemeleri görmek için sayfayı yenileyin", + "search_suggestions_button": "Arama Önerileri", + "search_suggestions_text": "Arama Önerilerini etkinleştir/devre dışı bırak", + // Proxy + "useproxytitletext": "Proxy Atlatma", + "useproxyText": "Eğer arama önerileri çalışmıyorsa", + "ProxyText": "CORS Atlatma Proxy", + "ProxySubtext": "Kendi CORS Atlatma Proxy'nizi ekleyin", + "HostproxyButton": "Kendi Proxy'nizi Barındırın", + "saveproxy": "Gönder", + // Location + "UserLocText": "Konumunuzu girin", + "UserLocSubtext": "Hava durumu konumu doğru değilse", + "userLoc": "Konumunuz (Şehir/Enlem,Boylam)", + "InputOptionsButton": "Girdi Seçenekleri", + "saveLoc": "Gönder", + // Weather + "WeatherApiText": "Kendi Hava Durumu API anahtarınızı girin", + "WeatherApiSubtext": "Hava durumu işlevi çalışmıyorsa", + "userAPI": "Hava Durumu API anahtarınız", + "LearnMoreButton": "Daha Fazla Bilgi Edinin", + "saveAPI": "API'yi Kaydet", + // End of Menu Items + + // Body Items + // Calendar + "days": ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'], + "months": ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'], + // End of Calendar + + // Weather + "humidityText": "Nem", + "feelsLike": "Hissedilen", + "location": "Dünya", + // End of Weather + + // New Tab Item + "conditionText": "Merhaba! Bugün nasılsın?", + "enterBtn": "Gönder", + "searchPlaceholder": "Aramanız...", + "searchWithHint": "ile Ara", + "ai_tools": "AI Araçları", + "userText": "Düzenlemek için çift dokunun", + // End of Body and New Tab Items +}, + + // Bengali "bn": { // Menu Items "feedback": "প্রতিক্রিয়া", @@ -369,61 +549,79 @@ const translations = { "conditionText": "হ্যালো! আপনি আজ কেমন আছেন?", "enterBtn": "প্রবেশ করুন", "searchPlaceholder": "আপনার প্রশ্ন লিখুন...", - "searchWithHint": "অনুসন্ধান করুন এর মাধ্যমে", + "searchWithHint": "অনুসন্ধান করুন", "ai_tools": "AI সরঞ্জাম", "userText": "সম্পাদনা করতে ডবল ট্যাপ করুন", // End of Body and New Tab Items }, - "ru": { - // Menu Items - "shortcutsText": "Ярлыки", - "enableShortcutsText": "Включить/Отключить ярлыки", - "editShortcutsText": "Редактировать ярлыки", - "shortcutsInfoText": "Выберите, какие ярлыки будут отображаться", - "adaptiveIconText": "Адаптивные формы значков", - "adaptiveIconInfoText": "Ярлыки всегда будут круглыми", - "digitalclocktittle": "Цифровые часы", - "digitalclockinfo": "Включить/Отключить цифровые часы", - "timeformattittle": "12-часовой формат", - "timeformatinfo": "Использовать 12-часовой формат времени", - "ai_tools_button": "ИИ Инструменты", - "enable_ai_tools": "Включение/Отключение ярлыков ИИ", - "fahrenheitCelsiusCheckbox": "Переключить на Фаренгейт", - "fahrenheitCelsiusText": "Обновите страницу, чтобы применить", - "search_suggestions_button": "Поисковые подсказки", - "search_suggestions_text": "Включить/Отключить поисковые подсказки", - "useproxytitletext": "Использовать прокси", - "useproxyText": "Если поисковые подсказки не работают", - "ProxyText": "CORS обход прокси", - "ProxySubtext": "Добавьте свой CORS-прокси", - "HostproxyButton": "Разместить прокси", - "saveproxy": "Применить", - "WeatherApiText": "Введите свой WeatherAPI ключ", - "WeatherApiSubtext": "Если погода не отображается", - "LearnMoreButton": "Узнать Больше", - "saveAPI": "Применить", - // End of Menu Items - // Body Items - // Calendar - "days": ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'], - "months": ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], - // End of Calendar - - // Weather - "humidityText": "Влажность", - "feelsLike": "Ощущается", - // End of Weather - - // New Tab Item - "conditionText": "Привет! Как дела?", - "enterBtn": "Поиск", - "searchPlaceholder": "Ваш запрос...", - "searchWithHint": "Искать с помощью", - "ai_tools": "Искусственный интеллект", - "userText": "Дважды нажмите для редактирования", - // End of Body and New Tab Items - } + // Russian +"ru": { + // Menu Items + "feedback": "Обратная связь", + "resetsettings": "Сброс настроек", + // Shortcuts + "shortcutsText": "Ярлыки", + "enableShortcutsText": "Включить/Отключить ярлыки", + "editShortcutsText": "Редактировать ярлыки", + "editShortcutsList": "Редактировать ярлыки", + "shortcutsInfoText": "Выберите, какие ярлыки будут отображаться", + "adaptiveIconText": "Адаптивные формы значков", + "adaptiveIconInfoText": "Ярлыки всегда будут круглыми", + "ai_tools_button": "Инструменты ИИ", + "enable_ai_tools": "Включить/Отключить ярлыки инструментов ИИ", + // Digital Clock + "digitalclocktittle": "Цифровые часы", + "digitalclockinfo": "Включить/Отключить цифровые часы", + "timeformattittle": "12-часовой формат", + "timeformatinfo": "Использовать 12-часовой формат времени", + // Misc + "fahrenheitCelsiusCheckbox": "Переключить на Фаренгейт", + "fahrenheitCelsiusText": "Обновите страницу, чтобы увидеть изменения", + "search_suggestions_button": "Поисковые подсказки", + "search_suggestions_text": "Включить/Отключить поисковые подсказки", + // Proxy + "useproxytitletext": "Использовать прокси", + "useproxyText": "Если поисковые подсказки не работают", + "ProxyText": "CORS обход прокси", + "ProxySubtext": "Добавьте свой CORS-прокси", + "HostproxyButton": "Разместить свой прокси", + "saveproxy": "Применить", + // Location + "UserLocText": "Введите ваше местоположение", + "UserLocSubtext": "Если местоположение для погоды неверно", + "userLoc": "Ваше местоположение (Город/Широта,Долгота)", + "InputOptionsButton": "Опции ввода", + "saveLoc": "Применить", + // Weather + "WeatherApiText": "Введите свой ключ WeatherAPI", + "WeatherApiSubtext": "Если функция погоды не работает", + "userAPI": "Ваш ключ WeatherAPI", + "LearnMoreButton": "Узнать больше", + "saveAPI": "Применить", + // End of Menu Items + + // Body Items + // Calendar + "days": ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'], + "months": ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'], + // End of Calendar + + // Weather + "humidityText": "Влажность", + "feelsLike": "Ощущается как", + "location": "Земля", + // End of Weather + + // New Tab Item + "conditionText": "Привет! Как ты сегодня?", + "enterBtn": "Ввод", + "searchPlaceholder": "Ваш запрос...", + "searchWithHint": "Искать с помощью", + "ai_tools": "Инструменты ИИ", + "userText": "Дважды нажмите для редактирования", + // End of Body and New Tab Items +} }; // Function to apply the language to the page From ffe0d73f89f76503c9289a055c810abd4629da36 Mon Sep 17 00:00:00 2001 From: Prem Kumar <60751338+prem12321kumar@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:23:04 +0530 Subject: [PATCH 7/7] Minor id change --- languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.js b/languages.js index 694f393b..97f8d2c7 100644 --- a/languages.js +++ b/languages.js @@ -635,7 +635,7 @@ function applyLanguage(lang) { document.getElementById('editShortcutsText').innerText = translations[lang].editShortcutsText; document.getElementById('editShortcutsList').innerText = translations[lang].editShortcutsList; document.getElementById('shortcutsInfoText').innerText = translations[lang].shortcutsInfoText; - document.getElementById('adaptiveIconShapes').innerText = translations[lang].adaptiveIconShapes; + document.getElementById('adaptiveIconText').innerText = translations[lang].adaptiveIconText; document.getElementById('adaptiveIconInfoText').innerText = translations[lang].adaptiveIconInfoText; document.getElementById('ai_tools_button').innerText = translations[lang].ai_tools_button; document.getElementById('enable_ai_tools').innerText = translations[lang].enable_ai_tools;