Improve: #368 error message when user has no public calendars (#412)

- Add translation key 'userDoesNotHavePublicCalendars' to all locale files (en, fr, vi, ru)
- Update ErrorSnackbar to support translation keys in error messages with params
- Update getTempCalendarsListAsync to throw error with translation key format instead of hardcoded message
- Error message now displays user-friendly translated text: '{User Name} does not have public calendars'
This commit is contained in:
lenhanphung
2025-12-12 23:32:36 +07:00
committed by GitHub
parent aa7d032aef
commit 6161e295ce
6 changed files with 45 additions and 2 deletions
+1
View File
@@ -18,6 +18,7 @@
"browseOtherCalendars": "Xem các lịch khác",
"noPublicCalendarsFor": "Không có lịch công khai cho %{name}",
"noMoreCalendarsFor": "Không còn lịch nào cho %{name}",
"userDoesNotHavePublicCalendars": "%{name} không có lịch công khai",
"delete": {
"title": "Xóa %{name}?",
"personalWarning": "Bạn sẽ mất tất cả sự kiện trong lịch này.",