- 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.
Update the donation message in the TopBanner component to display a localized message. The message is now retrieved from the locale files and supports translations. This change improves the user experience for different locales.
Related files:
- components/TopBanner.tsx
- public/locales/*
The code changes include adding a new component called Notification, which is responsible for displaying announcements or messages to users. This component is rendered on the client side and can be hidden or shown based on the configuration in the site.config.js file. The component includes functionality to set an expiration time for the notification and allows users to close it. The notification message can be customized through the site.config.js file.
This commit adds support for the German language variant 'de-DE' in the application. The following changes were made:
Created the '/public/locales/de-DE/common.json' file for the 'de-DE' language
Modified the 'SwitchLang.tsx' component to include the 'de-DE' language option
Updated the 'localeText' function to display ' Deutsch' for 'de-DE'
These changes enable the application to provide localization in German for the informal 'de-DE' language variant. The newly created '/public/locales/de-DE/common.json' file contains the necessary translations for the German language. The 'SwitchLang.tsx' component has been updated to include the German language option ('de-DE') with the appropriate flag and language name.
Users can now select the informal German language ('de-DE') to interact with the application.
Co-authored-by: 🍌🐒 <nino@mohr.pw>