iachat/app/javascript/dashboard/i18n/locale/en
Sivin Varghese 26778156dc
chore: Improve pagination with compact number formatting and pluralization (#12921)
# Pull Request Template

## Description

This PR enhances the pagination component with standardized number
formatting and improved i18n handling.

**Includes:**

* Added `formatCompactNumber` and `formatFullNumber` helpers using
`Intl.NumberFormat`.
    * `< 1,000`: show exact value (e.g., `999`)
    * `1,000–999,999`: show compact format (`1k`, `1k+`)
    * `1,000,000+`: show in millions with one decimal (e.g., `1.2M`)
* Updated `PaginationFooter` to use the new formatters for all displayed
numbers.
  * Added proper pluralization to pagination i18n strings.

Fixes
https://linear.app/chatwoot/issue/CW-5999/better-display-of-numbers

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

### Screenshoots

**Before**
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/9fcf8baa-ae32-4a8a-85b0-24002fd863db"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/3d7138b7-133e-4ae6-b55f-67eff73ff1cc"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/1bbf7070-0681-492d-9308-a33874052d28"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/4e441672-26aa-4e66-965e-9edb807eaa72"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/11836702-1b74-4834-8932-31c20adc2db8"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/d37971bc-09af-4238-8601-ccc2ae69dbe7"
/>


**After**
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/8eaf2a23-beea-486b-b555-37f8b36ab904"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/f44f508a-e39d-45cb-afd8-98deb26920f8"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/d3b90711-bd7e-44ee-8bb3-48e45b799420"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/30dca6cd-f2be-4dcb-8596-924326ebf8c0"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/58896699-1f05-46c9-88cb-908318e71476"
/>
<img width="991" height="69" alt="image"
src="https://github.com/user-attachments/assets/ea0d91b0-077b-4d72-81a7-d38d17742da6"
/>




## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-11-24 17:49:24 -08:00
..
advancedFilters.json feat(v4): Add new conversation filters component (#10502) 2024-11-27 20:05:54 -08:00
agentBots.json feat: Ability to reset api_access_token (#11565) 2025-05-29 14:42:13 +05:30
agentMgmt.json fix: Translate "None" option in agent assignment dropdown (#11060) 2025-03-11 14:49:27 -07:00
attributesMgmt.json fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
auditLogs.json feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00
automation.json feat: Add support for labels in automations (#11658) 2025-09-18 14:17:54 +05:30
bulkActions.json feat: Bulk actions for contacts (#12763) 2025-10-30 15:28:28 +05:30
campaign.json feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
cannedMgmt.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
chatlist.json feat: Adds support for telegram contact sharing (#10841) 2025-02-06 14:23:08 +05:30
companies.json chore: Improve pagination with compact number formatting and pluralization (#12921) 2025-11-24 17:49:24 -08:00
components.json chore: Improve pagination with compact number formatting and pluralization (#12921) 2025-11-24 17:49:24 -08:00
contact.json chore: Improve pagination with compact number formatting and pluralization (#12921) 2025-11-24 17:49:24 -08:00
contactFilters.json feat: Ability to filter contact based on labels (#12343) 2025-09-02 12:35:18 +05:30
contentTemplates.json feat: Add twilio content templates (#12277) 2025-08-29 16:13:25 +05:30
conversation.json feat: allow quoted email thread in reply (#12545) 2025-09-30 17:47:09 +05:30
csatMgmt.json feat: more CSAT filters (#7038) 2023-05-18 22:50:46 +05:30
customRole.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
datePicker.json feat: Custom date picker (#9247) 2024-04-29 14:43:57 +05:30
emoji.json feat: Adds the ability to set an emoji for help center category (#8111) 2023-10-20 13:52:30 +05:30
general.json feat: SAML feedback changes [CW-5666] (#12511) 2025-09-24 16:07:07 +05:30
generalSettings.json fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
helpCenter.json feat: Allow detaching help center widget (#12459) 2025-09-17 22:27:50 +05:30
inbox.json feat: add reauth flow for wa embedded signup (#11940) 2025-08-08 01:48:45 +05:30
inboxMgmt.json feat: hide email forwarding address if INBOUND_EMAIL_DOMAIN is not configured (#12768) 2025-11-18 18:05:12 -08:00
index.js feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30
integrationApps.json chore: Update settings to match the new design (#11084) 2025-03-14 14:28:14 +05:30
integrations.json chore: Hide assistant switcher on paywall screen (#12875) 2025-11-17 09:58:59 +05:30
labelsMgmt.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
login.json feat: Form validation message for password input (#11705) 2025-09-29 11:12:04 +05:30
macros.json fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
mfa.json feat: Add the frontend support for MFA (#12372) 2025-09-18 21:16:06 +05:30
report.json feat: allow selecting month range in overview reports (#12701) 2025-11-12 18:34:00 +05:30
resetPassword.json feat: Support dark mode in login pages (#7420) 2023-07-01 07:49:52 +05:30
search.json feat: allow searching articles in omnisearch (#11558) 2025-05-28 13:50:50 +05:30
setNewPassword.json feat: update product copy [CWM-45] (#6372) 2023-04-25 22:02:15 -07:00
settings.json feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30
signup.json feat: Form validation message for password input (#11705) 2025-09-29 11:12:04 +05:30
sla.json feat: Update the design for integration page (#9825) 2024-07-24 16:35:40 -07:00
teamsSettings.json chore: update interpolation syntax for i18n files (#10198) 2024-10-07 11:12:40 -07:00
webhooks.json Feature: As a admin, I should be able to add webhooks to account (#572) 2020-02-29 17:43:49 +05:30
whatsappTemplates.json feat: Add media_name support for WhatsApp templates document files (#12462) 2025-09-18 15:25:31 +05:30