FeatureFuel
0

i18n: use tc() plurals instead of "(s)" in subscriber count messages

Source: knadh/listmonk#3355 · opened by @Julia-IO
Is your feature request related to a problem? Please describe. While testing an i18n linter I'm building, I ran it on listmonk and it flagged a few strings that use "(s)" for plurals: • subscribers.confirmBlocklist: "Blocklist {num} subscriber(s)?" • subscribers.confirmDelete: "Delete {num} subscriber(s)?" • subscribers.confirmExport: "Export {num} subscriber(s)?" • subscribers.subscribersDeleted: "{num} subscriber(s) deleted" "(s)" can't be translated properly into languages with more than two plural forms (Polish, Russian, Arabic, etc.), so translators have to pick one form for every count. Describe the solution you'd like listmonk already has plural support (i18n.tc() with "one | other" values, e.g. dashboard.orphanSubs), so these could switch from i18n.ts(...) to i18n.tc(key, num, { num }) in subscribers.js and bounces.js, with values like: "subscribers.confirm…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests