feat: Update notification message and link in multiple languages

- Update the notification message in the common.json files for the English, Spanish and Hindi translations.
- Replace the previous Telegram Channel link with a new announcement on Reddit regarding the official group chat and channel.

chore: Update hideFor duration in Notification component

- Increase the hideFor duration in the Notification component from 24 hours to 3 days.
This commit is contained in:
Alex 2024-10-23 23:31:40 -06:00
parent 1debff844e
commit d17ce61ba0
No known key found for this signature in database
GPG Key ID: 148D422DF4E7AF7B
3 changed files with 7 additions and 7 deletions

View File

@ -67,7 +67,7 @@
"If you go back home and still see the welcome page telling you to re-authenticate, ": "Si vuelves a la página de inicio y aún ves la página de bienvenida que te dice que vuelvas a autenticarte, ",
"If you know the password, please enter it below.": "Si conoces la contraseña, ingrésala debajo.",
"If you like this project, consider supporting it by buying me a coffee!": "Si te gusta este proyecto, considera apoyarlo comprándome un café.",
"Join our Telegram Channel for updates and discussions.": "Únete a nuestro canal de Telegram para actualizaciones y discusiones.",
"Read our latest announcement on Reddit regarding the official group chat and channel.": "Lee nuestro último anuncio en Reddit sobre el chat grupal y el canal oficial.",
"Last modified:": "Última modificación:",
"Last modified": "Última modificación",
"Last Modified": "Última modificación",

View File

@ -63,7 +63,7 @@
"If you go back home and still see the welcome page telling you to re-authenticate, ": "यदि आप घर वापस जाते हैं और फिर भी स्वागत पृष्ठ देखते हैं जो आपको पुनः प्रमाणित करने के लिए कह रहा है,",
"If you know the password, please enter it below.": "यदि आप पासवर्ड जानते हैं, तो कृपया इसे नीचे दर्ज करें।",
"If you like this project, consider supporting it by buying me a coffee!": "यदि आपको यह परियोजना पसंद है, तो मुझे एक कॉफ़ी खरीदकर इसे समर्थन देने का विचार करें!",
"Join our Telegram Channel for updates and discussions.": "अपडेट और चर्चाओं के लिए हमारे टेलीग्राम चैनल में शामिल हों।",
"Read our latest announcement on Reddit regarding the official group chat and channel.": "हमारी आधिकारिक समूह चैट और चैनल के बारे में रेडिट पर हमारी नवीनतम घोषणा पढ़ें।",
"Last modified:": "अंतिम बार संशोधित:",
"Last modified": "अंतिम बार संशोधित",
"Last Modified": "अंतिम बार संशोधित",

View File

@ -26,7 +26,7 @@ export const Notification = () => {
}
}, [showInfo, setShowInfo])
const hideFor = 1000 * 60 * 60 * 24 // 24 hours
const hideFor = 1000 * 60 * 60 * 24 * 3 // 3 days in milliseconds
// Check if the notification should be reset
if (Date.now() > showInfo.expires && !showInfo.show) {
@ -61,10 +61,10 @@ export const Notification = () => {
<div className="flex-1">
<strong>{t('Welcome to LabHub!')}</strong>
<br />
{t('Join our Telegram Channel for updates and discussions.')}
{t('Read our latest announcement on Reddit regarding the official group chat and channel.')}
<br />
<a
href="https://t.me/NetLabHub"
href="https://www.reddit.com/r/labhub/comments/1gat7hk/official_group_chat_taken_down_by_telegram/"
target="_blank"
rel="noopener noreferrer"
className="mt-2 flex items-center space-x-2 hover:opacity-80"
@ -72,8 +72,8 @@ export const Notification = () => {
<Image
width={150}
height={150}
src="https://img.shields.io/badge/Join-Channel-blue?style=for-the-badge&logo=telegram"
alt="Join Telegram"
src="https://img.shields.io/badge/Read%20Reddit%20Post-FF4500?style=for-the-badge&logo=reddit&logoColor=white"
alt="Read reddit post"
/>
</a>
</div>