feat(i18n): implement strict pluralization for bulk action notifications

Removes generic '(s)' syntax from backend responses. Adds proper _one and _other pluralization keys to all 16 locales with native grammar translations, resolving 0-count edge cases.

Fixes #3602
This commit is contained in:
harsh-aghara committed 2026-05-02 14:28:15 +05:30
1 parent 1b0b17b589
commit 657a35e948
18 files changed
+256 -57

No files matched your search

+13 -2
View File
@@ -422,9 +422,10 @@
"openSite": "Seite öffnen",
"pause": "Pausieren",
"resume": "Fortsetzen",
"bulkSelected": "{{count}} Monitor(e) ausgewählt",
"selectAll": "Alle Monitore auswählen",
"selectMonitor": "{{name}} auswählen"
"selectMonitor": "{{name}} auswählen",
"bulkSelected_one": "{{count}} Monitor ausgewählt",
"bulkSelected_other": "{{count}} Monitore ausgewählt"
},
"statBoxes": {
"activeFor": "Aktiv seit",
@@ -452,6 +453,16 @@
"optionHardware": "Infrastruktur",
"optionGrpc": "gRPC",
"optionWebSocket": "WebSocket"
},
"bulkPause": {
"paused_one": "{{count}} Monitor pausiert",
"paused_other": "{{count}} Monitore pausiert",
"resumed_one": "{{count}} Monitor fortgesetzt",
"resumed_other": "{{count}} Monitore fortgesetzt",
"alreadyPaused_one": "Der ausgewählte Monitor ist bereits pausiert",
"alreadyPaused_other": "Alle ausgewählten Monitore sind bereits pausiert",
"alreadyRunning_one": "Der ausgewählte Monitor wird bereits ausgeführt",
"alreadyRunning_other": "Alle ausgewählten Monitore werden bereits ausgeführt"
}
}
},