Standardize additional translations.
This commit is contained in:
@@ -153,9 +153,9 @@ export function App({
|
|||||||
fallback={
|
fallback={
|
||||||
<LoadingSpinner
|
<LoadingSpinner
|
||||||
message={InstanceRenderMgr({
|
message={InstanceRenderMgr({
|
||||||
imex: "ImEX Online",
|
imex: t("titles.imexonline"),
|
||||||
rome: "Rome Online",
|
rome: t("titles.romeonline"),
|
||||||
promanager: "ProManager",
|
promanager: t("titles.promanager")
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -587,8 +587,9 @@ function Header({
|
|||||||
label: (
|
label: (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={`A more modern ${InstanceRenderManager({
|
title={`A more modern ${InstanceRenderManager({
|
||||||
imex: 'ImEX Online',
|
imex: t("titles.imexonline"),
|
||||||
rome: 'Rome Online',
|
rome: t("titles.romeonline"),
|
||||||
|
promanager: t("titles.promanager")
|
||||||
})} is ready for you to try! You can switch back at any time.`}
|
})} is ready for you to try! You can switch back at any time.`}
|
||||||
>
|
>
|
||||||
<InfoCircleOutlined />
|
<InfoCircleOutlined />
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export async function checkPartnerStatus(bodyshop) {
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("ImEX Online Partner is not running.", error);
|
console.log("Partner is not running.", error);
|
||||||
// notification["error"]({
|
// notification["error"]({
|
||||||
// title: "",
|
// title: "",
|
||||||
// message: i18n.t("general.messages.partnernotrunning"),
|
// message: i18n.t("general.messages.partnernotrunning"),
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export function SignInComponent({
|
|||||||
return (
|
return (
|
||||||
<div className="login-container">
|
<div className="login-container">
|
||||||
<div className="login-logo-container">
|
<div className="login-logo-container">
|
||||||
<img src={InstanceRenderManager({imex:ImEXOnlineLogo, rome:RomeLogo})} width={200} alt="Rome Online"/>
|
<img src={InstanceRenderManager({imex:ImEXOnlineLogo, rome:RomeLogo})} width={200} alt={InstanceRenderManager({imex:t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}/>
|
||||||
<Typography.Title>{
|
<Typography.Title>{
|
||||||
InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})
|
InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})
|
||||||
}</Typography.Title>
|
}</Typography.Title>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function UserRequestResetPw({
|
|||||||
<div className="login-container">
|
<div className="login-container">
|
||||||
<div className="login-logo-container">
|
<div className="login-logo-container">
|
||||||
<img src={InstanceRenderManager({imex: ImEXOnlineLogo, rome: null}) } height="100" width="100"
|
<img src={InstanceRenderManager({imex: ImEXOnlineLogo, rome: null}) } height="100" width="100"
|
||||||
alt={InstanceRenderManager({imex: "ImEX Online", rome:"Rome Online"})}/>
|
alt={InstanceRenderManager({imex: t("titles.imexonline"), rome:t("titles.romeonline"), promanager: t("titles.promanager")})}/>
|
||||||
<Typography.Title>{InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}</Typography.Title>
|
<Typography.Title>{InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}</Typography.Title>
|
||||||
</div>
|
</div>
|
||||||
<Typography.Title level={3}>{t("titles.resetpassword")}</Typography.Title>
|
<Typography.Title level={3}>{t("titles.resetpassword")}</Typography.Title>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {useTranslation} from "react-i18next";
|
|||||||
import {connect} from "react-redux";
|
import {connect} from "react-redux";
|
||||||
import {Link} from "react-router-dom";
|
import {Link} from "react-router-dom";
|
||||||
import {createStructuredSelector} from "reselect";
|
import {createStructuredSelector} from "reselect";
|
||||||
|
import RomeLogo from "../../assets/RomeOnlineBlue.png";
|
||||||
import ImEXOnlineLogo from "../../assets/logo192.png";
|
import ImEXOnlineLogo from "../../assets/logo192.png";
|
||||||
import {auth} from "../../firebase/firebase.utils";
|
import {auth} from "../../firebase/firebase.utils";
|
||||||
import {checkActionCode} from "@firebase/auth";
|
import {checkActionCode} from "@firebase/auth";
|
||||||
@@ -74,7 +75,8 @@ export function UserValidatePwReset({
|
|||||||
return (
|
return (
|
||||||
<div className="reset-container">
|
<div className="reset-container">
|
||||||
<div className="reset-logo-container">
|
<div className="reset-logo-container">
|
||||||
<img src={ImEXOnlineLogo} height="100" width="100" alt="ImEX Online"/>
|
<img src={InstanceRenderManager({imex:ImEXOnlineLogo, rome:RomeLogo})} width={100} alt={InstanceRenderManager({imex:t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}/>
|
||||||
|
|
||||||
<Typography.Title>{InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}</Typography.Title>
|
<Typography.Title>{InstanceRenderManager({imex: t("titles.imexonline"), rome: t("titles.romeonline"), promanager:t("titles.promanager")})}</Typography.Title>
|
||||||
</div>
|
</div>
|
||||||
<Typography.Title level={3}>
|
<Typography.Title level={3}>
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Typography } from "antd";
|
import { Typography } from "antd";
|
||||||
import InstanceRenderMgr from "../../utils/instanceRenderMgr";
|
import InstanceRenderMgr from "../../utils/instanceRenderMgr";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
export default function AboutPage() {
|
export default function AboutPage() {
|
||||||
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<div style={{ textAlign: "center", margin: "1rem 0rem" }}>
|
<div style={{ textAlign: "center", margin: "1rem 0rem" }}>
|
||||||
<Typography.Title level={2}>{`${InstanceRenderMgr({
|
<Typography.Title level={2}>{`${InstanceRenderMgr({
|
||||||
imex: "ImEX Online",
|
imex: t("titles.imexonline"),
|
||||||
rome: "Rome Online",
|
rome: t("titles.romeonline"),
|
||||||
promanager: "ProManager",
|
promanager: t("titles.promanager"),
|
||||||
})}Rome Online V.${import.meta.env.MODE}-${
|
})}Rome Online V.${import.meta.env.MODE}-${
|
||||||
import.meta.env.VITE_APP_GIT_SHA
|
import.meta.env.VITE_APP_GIT_SHA
|
||||||
}`}</Typography.Title>
|
}`}</Typography.Title>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ async function PbsCalculateAllocationsAp(socket, billids) {
|
|||||||
TransactionDate: moment().tz(socket.bodyshop.timezone).toISOString(), //"0001-01-01T00:00:00.0000000Z",
|
TransactionDate: moment().tz(socket.bodyshop.timezone).toISOString(), //"0001-01-01T00:00:00.0000000Z",
|
||||||
//Description: "Bulk AP posting.",
|
//Description: "Bulk AP posting.",
|
||||||
//AdditionalInfo: "String",
|
//AdditionalInfo: "String",
|
||||||
Source: "ImEX Online",
|
Source: "ImEX Online", //TODO:AIO Resolve this for rome online.
|
||||||
Lines: [], //socket.apAllocations,
|
Lines: [], //socket.apAllocations,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ async function InsertAccountPostingData(socket) {
|
|||||||
.toISOString(), //"0001-01-01T00:00:00.0000000Z",
|
.toISOString(), //"0001-01-01T00:00:00.0000000Z",
|
||||||
Description: socket.txEnvelope.story,
|
Description: socket.txEnvelope.story,
|
||||||
//AdditionalInfo: "String",
|
//AdditionalInfo: "String",
|
||||||
Source: InstanceManager({imex: "ImEX Online", rome:"Rome Online"}),
|
Source: InstanceManager({imex: t("titles.imexonline"), rome:t("titles.romeonline")}),
|
||||||
Lines: wips,
|
Lines: wips,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ exports.sendNotification = async (req, res) => {
|
|||||||
.send({
|
.send({
|
||||||
topic: "PRD_PATRICK-messaging",
|
topic: "PRD_PATRICK-messaging",
|
||||||
notification: {
|
notification: {
|
||||||
title: `ImEX Online Message - +16049992002`,
|
title: `ImEX Online Message - ,
|
||||||
body: "Test Noti.",
|
body: "Test Noti.",
|
||||||
//imageUrl: "https://thinkimex.com/img/io-fcm.png",
|
//imageUrl: "https://thinkimex.com/img/io-fcm.png",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ exports.receive = async (req, res) => {
|
|||||||
InstanceManager({
|
InstanceManager({
|
||||||
imex:`ImEX Online Message - ${data.phone_num}` ,
|
imex:`ImEX Online Message - ${data.phone_num}` ,
|
||||||
rome: `Rome Online Message - ${data.phone_num}`,
|
rome: `Rome Online Message - ${data.phone_num}`,
|
||||||
promanager: `Pro Manager Message - ${data.phone_num}`
|
promanager: `ProManager Message - ${data.phone_num}`
|
||||||
})
|
})
|
||||||
,
|
,
|
||||||
body: message.image_path ? `Image ${message.text}` : message.text,
|
body: message.image_path ? `Image ${message.text}` : message.text,
|
||||||
|
|||||||
Reference in New Issue
Block a user