mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
feat: start internatinalization
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
import React from "react";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
|
||||
import { i18n } from "../../translate/i18n";
|
||||
|
||||
const SessionInfo = ({ session }) => {
|
||||
console.log(session);
|
||||
return (
|
||||
<div>
|
||||
<Typography component="h2" variant="h6" color="primary" gutterBottom>
|
||||
{`Status: ${session.status}`}
|
||||
{`${i18n.t("sessionInfo.status")}${session.status}`}
|
||||
</Typography>
|
||||
<Typography component="p" variant="h6">
|
||||
{`Bateria: ${session.battery}%`}
|
||||
{`${i18n.t("sessionInfo.battery")}${session.battery}%`}
|
||||
</Typography>
|
||||
<Typography color="textSecondary">
|
||||
{`Carregando: ${session.plugged} `}
|
||||
{`${i18n.t("sessionInfo.charging")}${session.plugged} `}
|
||||
</Typography>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user