chatwoot/app/javascript
Gabriel Jablonski 7e0507e3b5
fix: invalid language tag in heatmap component in reports page (#12952)
## Description

This PR fixes a `RangeError: Invalid language tag` that occurs in the
Heatmap report when using locales with underscores (e.g., `pt_BR`,
`zh_TW`).

The issue was caused by passing the raw locale string from `vue-i18n`
(which uses underscores for some regions) directly to
`Intl.DateTimeFormat`. The `Intl` API expects BCP 47 language tags which
use hyphens (e.g., `pt-BR`).

This change sanitizes the locale string by replacing underscores with
hyphens before creating the `DateTimeFormat` instance.

Fixes #12951
2025-11-26 13:24:29 +05:30
..
dashboard fix: invalid language tag in heatmap component in reports page (#12952) 2025-11-26 13:24:29 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints chore: Migrate to next Switch component (#12005) 2025-07-23 13:56:17 +05:30
portal feat: Sync Popular Articles locale with widget locale (#11754) 2025-06-24 19:52:44 +05:30
sdk revert: "fix(sdk): Ignore messages from a different origin and sanitizee URLs (#8879)" (#12248) 2025-08-20 21:39:50 +02:00
shared chore: Revert pagination formatting and pluralization (#12954) 2025-11-25 21:36:13 +05:30
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey chore: Update translations (#12748) 2025-11-03 15:45:32 +05:30
v3 feat: Control the allowed login methods via Super Admin (#12892) 2025-11-17 21:55:12 -08:00
widget fix: Widget shows 'away' on initial load despite agents being online (#12869) 2025-11-20 20:27:44 +05:30
histoire.setup.ts feat: Migrate availability mixins to composable and helper (#11596) 2025-08-22 00:43:34 +05:30