Skip to content

Commit

Permalink
feat. translation of history page
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo committed Aug 28, 2021
1 parent be0a5ac commit 11c1714
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Controller/HistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public function admin_getAll()
'recursive' => 1
];
$this->DataTable->mDataProp = true;

$response = $this->DataTable->getResponse();
$response["aaData"] = array_map(function($data) {
$data["History"]["action"] = $this->Lang->get('HISTORY__ACTION_' . $data["History"]["action"]);
return $data;
}, $response["aaData"]);
$this->response->body(json_encode($response));
}

Expand Down

0 comments on commit 11c1714

Please sign in to comment.