chatwoot/app/javascript/dashboard
Sivin Varghese ad41fd90f9
fix: Fix the translation issue on conversation filter reload (#11513)
# Pull Request Template

## Description

This PR fixes the translation inconsistency in the
`<ConversationBasicFilter />` component, where dropdown options would
revert to English after page reload.

**Cause:**
The component used static arrays for chat status and sort options, with
translations initialized only once. After a reload, it showed system
language (English) until the user's locale was fully loaded.

**Solution:**
Replaced static arrays with computed properties to make translations
reactive. This ensures the options automatically update when the locale
changes.

## Type of change

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

## How Has This Been Tested?

### Loom video

**Before**

https://www.loom.com/share/eeac97c59b21480b95ef74813d3d7fa9?sid=0481994a-8d35-4c44-87d0-c6c5a77a54fd

**After**

https://www.loom.com/share/c1bdfbdb19ca4e37bda373f0fe12527a?sid=cb5b1d19-272b-48cb-967c-9a82c2a2b028



## 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-05-19 11:18:06 -07:00
..
api feat: Allow customizing the responses, flows in Captain (#11385) 2025-04-29 15:42:15 -07:00
assets chore: Update date range picker with new theme colors (#11267) 2025-04-09 16:03:53 +05:30
components fix: Fix the translation issue on conversation filter reload (#11513) 2025-05-19 11:18:06 -07:00
components-next fix: Add available_name as method in captain_assistant (#11502) 2025-05-17 10:06:36 -07:00
composables feat: Add support for minutes in auto resolve feature (#11269) 2025-05-07 00:36:15 -07:00
constants feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
helper fix: Add missing 'hc' path segment after custom domain in article URLs (#11353) 2025-04-22 21:53:50 +05:30
i18n chore(i18n): Update translations (#11501) 2025-05-16 20:14:50 -07:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules chore: Update buttons in dashboard (#11145) 2025-03-31 17:21:32 -07:00
routes fix: Issues with custom attributes in conversation sidebar (#11476) 2025-05-16 15:22:18 +05:30
store fix: Duplicate attachments when navigating back to a conversation (#11472) 2025-05-14 15:40:11 -07:00
App.vue feat: Upgrade page instead of banner (#11202) 2025-03-28 02:28:17 -07:00
featureFlags.js feat: Instagram Inbox using Instagram Business Login (#11054) 2025-04-08 10:47:41 +05:30