iachat/app/javascript/dashboard
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
..
api feat: outbound voice call essentials (#12782) 2025-11-24 17:47:00 -08:00
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components feat: outbound voice call essentials (#12782) 2025-11-24 17:47:00 -08:00
components-next chore: Revert pagination formatting and pluralization (#12954) 2025-11-25 21:36:13 +05:30
composables feat: outbound voice call essentials (#12782) 2025-11-24 17:47:00 -08:00
constants chore: Enable flexible whatsapp onboarding (Manual + Embedded Signup) options (#12344) 2025-09-15 19:59:56 +05:30
helper chore(docs): Fix typos in some files (#12817) 2025-11-07 07:57:37 -08:00
i18n chore: Revert pagination formatting and pluralization (#12954) 2025-11-25 21:36:13 +05:30
mixins feat: allow configuring attachment upload limit (#12835) 2025-11-17 14:03:08 -08:00
modules chore: Adds URL-based search and tab selection (#12663) 2025-10-27 11:17:04 +05:30
routes fix: invalid language tag in heatmap component in reports page (#12952) 2025-11-26 13:24:29 +05:30
store feat: outbound voice call essentials (#12782) 2025-11-24 17:47:00 -08:00
App.vue fix: Handle login when there are no accounts (#12816) 2025-11-07 10:14:59 +05:30
featureFlags.js feat: Companies page (#12842) 2025-11-18 15:29:15 +05:30