0
0
Fork 0

fix: refs #7353 locale

This commit is contained in:
Jorge Penadés 2024-09-17 12:56:50 +02:00
parent 3f03f0d4e9
commit 2cb2ce16ef
1 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@ const handleScopeDays = (params, days, callback) => {
};
const getLocale = (label) => {
const globalLocale = `globals.params.${label}`;
return te(globalLocale) ? t(globalLocale) : t(`params.${label}`);
const param = label.split('.').at(-1);
const globalLocale = `globals.params.${param}`;
return te(globalLocale) ? t(globalLocale) : t(`params.${param}`);
};
</script>
<template>