mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
feat: start internatinalization
This commit is contained in:
6
frontend/src/pages/Dashboard/Chart.js
vendored
6
frontend/src/pages/Dashboard/Chart.js
vendored
@@ -11,6 +11,8 @@ import {
|
||||
} from "recharts";
|
||||
import { startOfHour, parseISO, format } from "date-fns";
|
||||
|
||||
import { i18n } from "../../translate/i18n";
|
||||
|
||||
import Title from "./Title";
|
||||
import api from "../../services/api";
|
||||
|
||||
@@ -69,7 +71,9 @@ const Chart = () => {
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Title>{`Tickets hoje: ${tickets.length}`}</Title>
|
||||
<Title>{`${i18n.t("dashboard.charts.perDay.title")}${
|
||||
tickets.length
|
||||
}`}</Title>
|
||||
<ResponsiveContainer>
|
||||
<BarChart
|
||||
data={chartData}
|
||||
|
||||
Reference in New Issue
Block a user