feat: add photo cap per event and Portuguese (pt-BR) locale

- Add photo_cap column to events table (migration 074) to limit photos per event
- Enforce photo cap in upload route, returning 400 when limit exceeded
- Pass photo_cap through all event CRUD routes and frontend forms
- Add complete Portuguese (pt-BR) translation (2300+ strings)
- Register pt locale in i18n config, language selector, date formatting
- Add photoCap/photoCapHelp translation keys to all locale files (en, de, ru, pt)
This commit is contained in:
Paul Nothaft
2026-03-16 17:22:54 +01:00
parent 6aceb40595
commit 1fa222e9c4
19 changed files with 2451 additions and 12 deletions
+2
View File
@@ -54,6 +54,8 @@ async function formatDate(date, language = 'en') {
let locale = dateConfig.locale || 'en-GB';
if (language === 'de') {
locale = 'de-DE';
} else if (language === 'pt') {
locale = 'pt-BR';
} else if (language === 'en' && dateConfig.format === 'MM/DD/YYYY') {
locale = 'en-US';
}