fix(i18n): correct translation bugs

merge-socket
adriano 2024-07-26 15:23:02 -05:00
parent c39cae9f81
commit 814c892e08
7 changed files with 23 additions and 26 deletions

View File

@ -6,4 +6,4 @@ app.use(express.static(path.join(__dirname, "build")));
app.get("/*", function (req, res) { app.get("/*", function (req, res) {
res.sendFile(path.join(__dirname, "build", "index.html")); res.sendFile(path.join(__dirname, "build", "index.html"));
}); });
app.listen(3337); app.listen(3333);

View File

@ -13,8 +13,6 @@ import DateFnsUtils from '@date-io/date-fns'
import ptBrLocale from "date-fns/locale/pt-BR" import ptBrLocale from "date-fns/locale/pt-BR"
import esLocale from 'date-fns/locale/es'; import esLocale from 'date-fns/locale/es';
import { i18n } from '../../../translate/i18n';
import { WhatsAppsContext } from "../../context/WhatsApp/WhatsAppsContext" import { WhatsAppsContext } from "../../context/WhatsApp/WhatsAppsContext"
import { import {

View File

@ -75,7 +75,7 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
<MenuItem value={null}>Todos</MenuItem> <MenuItem value={null}>Todos</MenuItem>
<MenuItem value={"online"}>Online</MenuItem> <MenuItem value={"online"}>Online</MenuItem>
<MenuItem value={"offline"}>Offline</MenuItem> <MenuItem value={"offline"}>Offline</MenuItem>
<MenuItem value={"not"}>Não entrou</MenuItem> <MenuItem value={"not"}>{i18n.t('dashboard.titles.notEnter')}</MenuItem>
</Select> </Select>
</FormControl> </FormControl>
</Box> </Box>
@ -221,7 +221,7 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
</div> </div>
</TableCell> </TableCell>
<TableCell> <TableCell>
{user.sumOnlineTime ? user.sumOnlineTime.sum : "Não entrou"} {user.sumOnlineTime ? user.sumOnlineTime.sum : i18n.t('dashboard.titles.notEnter')}
</TableCell> </TableCell>
<TableCell> <TableCell>
{user.statusOnline && user.statusOnline.status === "online" ? ( {user.statusOnline && user.statusOnline.status === "online" ? (

View File

@ -5,9 +5,6 @@ import { Formik, Form, Field } from "formik"
import { toast } from "react-toastify" import { toast } from "react-toastify"
import openSocket from 'socket.io-client' import openSocket from 'socket.io-client'
import { i18n } from "../../translate/i18n";
import { import {
makeStyles, makeStyles,
Button, Button,

View File

@ -348,7 +348,9 @@ const messages = {
title0_1: "Reminders/Schedulings", title0_1: "Reminders/Schedulings",
title1_1: "Calls by attendants", title1_1: "Calls by attendants",
title2_1: "Whatsapp chat", title2_1: "Whatsapp chat",
title3_1: "Users online/offline" title3_1: "Users online/offline",
title4_1: "Attendance report by numbers",
title5_1: "Queue service report"
}, },
listColumns: { listColumns: {
column0_1: 'Actions', column0_1: 'Actions',

View File

@ -71,8 +71,8 @@ const messages = {
attendant: 'Agente', attendant: 'Agente',
dialogTitle: 'Reportes', dialogTitle: 'Reportes',
dialogContentText: 'Escoja una opción de reporte abajo.', dialogContentText: 'Escoja una opción de reporte abajo.',
transfer: 'Transferir para outras filas', transfer: 'Transferir para otras Colas',
title: 'Entradas de cierre', title: 'Cierre de Tickets',
confirmationModal: 'Está seguro de que desea eliminar este estado de cierre: ', confirmationModal: 'Está seguro de que desea eliminar este estado de cierre: ',
status: 'Status de cierre', status: 'Status de cierre',
listUser: 'Lista de Usuarios', listUser: 'Lista de Usuarios',
@ -356,8 +356,8 @@ const messages = {
title1_1: "Atención por agentes", title1_1: "Atención por agentes",
title2_1: "Chat de whatsapp", title2_1: "Chat de whatsapp",
title3_1: "Usuarios online/offline", title3_1: "Usuarios online/offline",
title4_1: "Relatório de atendimento por números", title4_1: "Reporte de atención por números",
title5_1: "Relatório de atendimento por filas" title5_1: "Reporte de atención por colas"
}, },
listColumns: { listColumns: {
column0_1: 'Acción', column0_1: 'Acción',

View File

@ -75,8 +75,8 @@ const messages = {
status: 'Status de encerramento', status: 'Status de encerramento',
listUser: 'Lista de Usuarios', listUser: 'Lista de Usuarios',
user: 'Usuario', user: 'Usuario',
notEnter: 'No ingresó', notEnter: 'Não entrou',
notEnterToday: 'Não entrou' notEnterToday: 'Não entrou hoje'
} }
}, },
reportOptType: { reportOptType: {