fix: correct locale formatting in heatmap component in reports page (#156)
This commit is contained in:
parent
45525f7b9b
commit
1969596a8e
@ -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(
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user