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

+2 -1
View File
@@ -318,10 +318,11 @@ class MonitorController implements IMonitorController {
const monitors = await this.monitorService.bulkPauseMonitors({ teamId, monitorIds, pause });
const action = pause ? "paused" : "resumed";
const monitorStr = monitors.length === 1 ? "monitor" : "monitors";
return res.status(200).json({
success: true,
msg: `${monitors.length} monitor(s) ${action} successfully`,
msg: `${monitors.length} ${monitorStr} ${action} successfully`,
data: monitors,
});
} catch (error) {