forked from verdnatura/salix-front
fix: refs #7353 locale
This commit is contained in:
parent
3f03f0d4e9
commit
2cb2ce16ef
|
@ -28,8 +28,9 @@ const handleScopeDays = (params, days, callback) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getLocale = (label) => {
|
const getLocale = (label) => {
|
||||||
const globalLocale = `globals.params.${label}`;
|
const param = label.split('.').at(-1);
|
||||||
return te(globalLocale) ? t(globalLocale) : t(`params.${label}`);
|
const globalLocale = `globals.params.${param}`;
|
||||||
|
return te(globalLocale) ? t(globalLocale) : t(`params.${param}`);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue