Skip to content

Commit ba682de

Browse files
committed
feat: add correlation label translation in i18n configuration for datasets
1 parent bf4f425 commit ba682de

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

DashAI/front/src/components/notebooks/dataset/tabs/CorrelationsTab.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const CorrelationsTab = ({ correlations }) => {
2020
Object.entries(corrs).forEach(([col2, value]) => {
2121
if (col1 < col2) {
2222
// Avoid duplicates
23-
corrData.push({ pair: `${col1} - ${col2}`, correlation: value });
23+
corrData.push({
24+
pair: `${col1} - ${col2}`,
25+
correlation: value,
26+
});
2427
}
2528
});
2629
});
@@ -48,7 +51,11 @@ const CorrelationsTab = ({ correlations }) => {
4851
}}
4952
labelStyle={{ color: "#ffffff" }}
5053
/>
51-
<Bar dataKey="correlation" fill="#3b82f6">
54+
<Bar
55+
dataKey="correlation"
56+
name={t("datasets:label.correlation")}
57+
fill="#3b82f6"
58+
>
5259
{corrData.map((entry, index) => (
5360
<Cell
5461
key={index}

DashAI/front/src/utils/i18n/locales/en/datasets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"constantColumns": "Constant Columns",
9292
"convert": "Convert",
9393
"converter": "Converter",
94+
"correlation": "Correlation",
9495
"correlationAnalysis": "Correlation Analysis",
9596
"correlations": "Correlations",
9697
"createNewNotebook": "Create a New Notebook",

DashAI/front/src/utils/i18n/locales/es/datasets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"constantColumns": "Columnas Constantes",
9494
"convert": "Convertir",
9595
"converter": "Convertidor",
96+
"correlation": "Correlación",
9697
"correlationAnalysis": "Análisis de Correlación",
9798
"correlations": "Correlaciones",
9899
"createNewNotebook": "Crear un Nuevo Cuaderno",

0 commit comments

Comments
 (0)