fix: correct locale formatting in heatmap component in reports page (#156)

This commit is contained in:
Gabriel Jablonski 2025-11-25 11:27:05 -03:00 committed by GitHub
parent 45525f7b9b
commit 1969596a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,11 +52,12 @@ const dayMenuItemConfigs = computed(() => [
}, },
]); ]);
const resolvedLocale = computed( const resolvedLocale = computed(() => {
() => const currentLocale =
locale.value || locale.value ||
(typeof navigator !== 'undefined' ? navigator.language : 'en') (typeof navigator !== 'undefined' ? navigator.language : 'en');
); return currentLocale.replace('_', '-');
});
const monthFormatter = computed( const monthFormatter = computed(
() => () =>