chatwoot/app/javascript
Sivin Varghese be6bc88f80
fix: Translation issue in reports table headers on reload (#11793)
# Pull Request Template

## Description

This PR fixes the translation inconsistency in the reports pages, where
table-column headers reverted to English after a page reload.

**Cause**
The components defined the columns array statically, so header labels
were translated only once during component creation. On reload, the
table showed the default system language (English) until the user’s
locale finished loading.

**Solution**
Replaced the static columns array with a computed property and passed it
to `Tanstack useVueTable` via a getter. This makes the headers reactive,
ensuring they automatically update whenever the locale changes and
remain translated after every reload.

Fixes
https://linear.app/chatwoot/issue/CW-4539/translation-issue-in-reports-page-table-header-on-reload

## Type of change

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


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] 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
- [ ] 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-06-24 12:38:05 +05:30
..
dashboard fix: Translation issue in reports table headers on reload (#11793) 2025-06-24 12:38:05 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints feat: handle rails turbo morphing (#11422) 2025-05-07 10:22:08 +05:30
portal fix: Broken header in public Help Center portal (#11704) 2025-06-11 15:07:24 -04:00
sdk feat: handle rails turbo morphing (#11422) 2025-05-07 10:22:08 +05:30
shared feat: Prevent saving preferences and status when impersonating (#11164) 2025-05-20 17:34:30 -07:00
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey feat: Improve CSAT responses (#11485) 2025-05-16 14:18:52 +05:30
v3 fix: Design issues with profile settings style (#11630) 2025-05-29 12:07:05 -06:00
widget feat: Add rich text support for widget welcome tagline (#11666) 2025-06-05 14:13:46 -05:00
histoire.setup.ts feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00