diff --git a/ExcelMessageController.php b/ExcelMessageController.php index 2f89431..83360f6 100644 --- a/ExcelMessageController.php +++ b/ExcelMessageController.php @@ -172,8 +172,8 @@ public function actionImport($configFile, $excelDir, $extension = 'xlsx', $type } $sheet = $excel->getSheetByName($category); $row = 2; - while (($source = $sheet->getCellByColumnAndRow(0, $row)->getValue()) !== null) { - $translation = (string)$sheet->getCellByColumnAndRow(1, $row)->getValue(); + while (($source = $sheet->getCellByColumnAndRow(1, $row)->getValue()) !== null) { + $translation = (string)$sheet->getCellByColumnAndRow(2, $row)->getValue(); if (trim($translation) !== '') { if (!isset($messages[$language])) { $messages[$language] = [];