mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
feat: add i18n support (en/zh) and enhance webhook notifications with custom templates #430
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CoderKuo on 11/6/2025
feat: add i18n support (en/zh) and enhance webhook notifications with custom templates
This PR introduces two major enhancements:
1. Internationalization (i18n) Support
react-i18nextandi18nextfor robust translation managementt()translation callsLanguageSwitchercomponent in the navbar for seamless language togglingcommon,database,storage,notifier,backup,restore,healthcheck,user2. Advanced Webhook Notification Templates
custom_templatefield to thewebhook_notifierstable (with DB migration)map[string]stringfor fine-grained variables{{status}},{{status_text}},{{database_name}},{{duration}},{{size}},{{error}}(while maintaining backward compatibility with
{{heading}}and{{message}})These changes enable users to fully customize notification formats and localize the UI—critical for global deployments and integrations with systems like DingTalk, WeWork, and internal enterprise tools.