Skip to content

Commit b131249

Browse files
author
weinStag
committed
fix: translate all remaining Portuguese comments to English
1 parent 6cfda3e commit b131249

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/components/ChartVisualization/ChartVisualization.react.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ const ChartVisualization = ({
5656

5757
const { rowStart, rowEnd, colStart, colEnd } = selectedCells;
5858

59-
// Verificar se temos dados válidos e se os índices são válidos
59+
// Check if we have valid data and if indices are valid
6060
if (rowStart === -1 || colStart === -1 || rowEnd >= data.length || rowStart < 0) {
6161
return null;
6262
}
6363

64-
// Verificar se todos os índices de linha são válidos
64+
// Check if all row indices are valid
6565
for (let rowIndex = rowStart; rowIndex <= rowEnd; rowIndex++) {
6666
if (!data[rowIndex] || !data[rowIndex].attributes) {
6767
return null; // Dados inconsistentes, abortar
6868
}
6969
}
7070

7171
// Determinar se é time series de forma mais rigorosa
72-
// Time series se: temos múltiplas colunas E pelo menos uma coluna é data
72+
// Time series if: we have multiple columns AND at least one column is a date
7373
let isTimeSeries = false;
7474
let dateColumnName = null;
7575
let dateColumnIndex = -1;
@@ -82,20 +82,20 @@ const ChartVisualization = ({
8282
continue;
8383
}
8484

85-
// Verificar o tipo da coluna no schema
85+
// Check the column type in the schema
8686
const columnType = columns[columnName]?.type;
8787
const isDateColumn = columnType === 'Date' ||
8888
/^(date|time|created|updated|when|at)$/i.test(columnName) ||
8989
columnName.toLowerCase().includes('date') ||
9090
columnName.toLowerCase().includes('time');
9191

9292
if (isDateColumn) {
93-
// Verificar se a coluna contém realmente datas válidas
93+
// Check if the column actually contains valid dates
9494
let dateCount = 0;
95-
const totalRows = Math.min(3, rowEnd - rowStart + 1); // Verificar até 3 linhas
95+
const totalRows = Math.min(3, rowEnd - rowStart + 1); // Check up to 3 rows
9696

9797
for (let rowIndex = rowStart; rowIndex < rowStart + totalRows; rowIndex++) {
98-
// Verificar se o índice é válido antes de acessar
98+
// Check if the index is valid before accessing
9999
if (rowIndex >= data.length || !data[rowIndex] || !data[rowIndex].attributes) {
100100
continue;
101101
}
@@ -110,7 +110,7 @@ const ChartVisualization = ({
110110
isTimeSeries = true;
111111
dateColumnName = columnName;
112112
dateColumnIndex = colIndex;
113-
break; // Encontrou uma coluna de data válida
113+
break; // Found a valid date column
114114
}
115115
}
116116
}
@@ -136,7 +136,7 @@ const ChartVisualization = ({
136136
const dataPoints = [];
137137

138138
for (let rowIndex = rowStart; rowIndex <= rowEnd; rowIndex++) {
139-
// Verificar se o índice é válido
139+
// Check if the index is valid
140140
if (rowIndex >= data.length || !data[rowIndex] || !data[rowIndex].attributes) {
141141
continue;
142142
}
@@ -217,12 +217,12 @@ const ChartVisualization = ({
217217
continue;
218218
}
219219

220-
// Coletar todos os valores desta coluna
220+
// Collect all values from this column
221221
const columnValues = [];
222222
const columnLabels = [];
223223

224224
for (let rowIndex = rowStart; rowIndex <= rowEnd; rowIndex++) {
225-
// Verificar se o índice é válido
225+
// Check if the index is valid
226226
if (rowIndex >= data.length || !data[rowIndex] || !data[rowIndex].attributes) {
227227
continue;
228228
}
@@ -272,7 +272,7 @@ const ChartVisualization = ({
272272
color: '#333'
273273
},
274274
legend: {
275-
display: datasets.length > 1 // Mostrar legenda se múltiplas colunas
275+
display: datasets.length > 1 // Show legend if multiple columns
276276
},
277277
tooltip: {
278278
backgroundColor: 'rgba(0, 0, 0, 0.8)',
@@ -302,7 +302,7 @@ const ChartVisualization = ({
302302
const columnName = order[colStart]?.name;
303303
if (columnName) {
304304
for (let rowIndex = rowStart; rowIndex <= rowEnd; rowIndex++) {
305-
// Verificar se o índice é válido
305+
// Check if the index is valid
306306
if (rowIndex >= data.length || !data[rowIndex] || !data[rowIndex].attributes) {
307307
continue;
308308
}

src/components/DraggableResizablePanel/DraggableResizablePanel.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ const DraggableResizablePanel = ({
2828
const [dragStart, setDragStart] = useState({ x: 0, y: 0 });
2929
const panelRef = useRef(null);
3030
const titleBarRef = useRef(null); const handleMouseDown = (e) => {
31-
// Verificar se o clique foi na barra de título ou seus filhos
31+
// Check if the click was on the title bar or its children
3232
if (titleBarRef.current && (
3333
e.target === titleBarRef.current ||
3434
titleBarRef.current.contains(e.target)
3535
)) {
3636

37-
// Verificar se não clicou no botão fechar
37+
// Check that the close button was not clicked
3838
if (!e.target.closest('[data-close-button="true"]')) {
3939
setIsDragging(true);
4040
setDragStart({

src/components/DraggableResizablePanel/DraggableResizablePanel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
transition: opacity 0.2s;
1919
}
2020

21-
// Mostrar handles quando hover na janela
21+
// Show handles when hovering over the window
2222
&:hover :global(.react-resizable-handle) {
2323
opacity: 1;
2424
}

0 commit comments

Comments
 (0)