IO-1722 added translations

This commit is contained in:
swtmply
2023-05-04 01:18:16 +08:00
parent 0cabd80b94
commit add1eddbc1
4 changed files with 2909 additions and 2904 deletions

View File

@@ -1,7 +1,9 @@
import { Col, List, Space, Typography } from "antd"; import { Col, List, Space, Typography } from "antd";
import React from "react"; import React from "react";
import { useTranslation } from "react-i18next";
const CardColorLegend = ({ bodyshop, cardSettings }) => { const CardColorLegend = ({ bodyshop, cardSettings }) => {
const { t } = useTranslation();
const data = bodyshop.ssbuckets.map((size) => ({ const data = bodyshop.ssbuckets.map((size) => ({
label: size.label, label: size.label,
color: size.color?.hex ?? "white", color: size.color?.hex ?? "white",
@@ -9,7 +11,7 @@ const CardColorLegend = ({ bodyshop, cardSettings }) => {
return ( return (
<Col> <Col>
<Typography>Legend:</Typography> <Typography>{t("production.labels.legend")}</Typography>
<List <List
grid={{ grid={{
gutter: 16, gutter: 16,

View File

@@ -106,7 +106,7 @@ export default function ProductionBoardKanbanCardSettings({
</Form.Item> </Form.Item>
<Form.Item <Form.Item
valuePropName="checked" valuePropName="checked"
label={"Card Colors"} label={t("production.labels.cardcolor")}
name="cardcolor" name="cardcolor"
> >
<Switch /> <Switch />

View File

@@ -279,7 +279,7 @@ export default function ShopInfoSchedulingComponent({ form }) {
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label={"Job Color"} // TODO add translation label={t("bodyshop.fields.ssbuckets.color")}
key={`${index}color`} key={`${index}color`}
name={[field.name, "color"]} name={[field.name, "color"]}
> >

View File

@@ -508,7 +508,8 @@
"id": "ID", "id": "ID",
"label": "Label", "label": "Label",
"lt": "Less than (hrs)", "lt": "Less than (hrs)",
"target": "Target (count)" "target": "Target (count)",
"color": "Job Color"
}, },
"state": "Province/State", "state": "Province/State",
"state_tax_id": "Provincial/State Tax ID (PST, QST)", "state_tax_id": "Provincial/State Tax ID (PST, QST)",
@@ -2385,7 +2386,9 @@
"sublets": "Sublets", "sublets": "Sublets",
"totalhours": "Total Hrs ", "totalhours": "Total Hrs ",
"touchtime": "T/T", "touchtime": "T/T",
"viewname": "View Name" "viewname": "View Name",
"legend": "Legend:",
"cardcolor": "Card Colors"
}, },
"successes": { "successes": {
"removed": "Job removed from production." "removed": "Job removed from production."