浏览代码

i18n

master
CANCERYS\kw093 2 个月前
父节点
当前提交
f58ca8144f
共有 6 个文件被更改,包括 25 次插入8 次删除
  1. +1
    -1
      src/components/RoughScheduleDetail/ViewByBomDetails.tsx
  2. +2
    -2
      src/components/SearchResults/EditableSearchResults.tsx
  3. +7
    -4
      src/components/SearchResults/TempInputGridForMockUp.tsx
  4. +4
    -0
      src/i18n/zh/home.json
  5. +8
    -1
      src/i18n/zh/project.json
  6. +3
    -0
      src/i18n/zh/schedule.json

+ 1
- 1
src/components/RoughScheduleDetail/ViewByBomDetails.tsx 查看文件

@@ -509,7 +509,7 @@ const ViewByBomDetails: React.FC<Props> = ({ apiRef, isEdit }) => {
} }
}, },
], ],
[t]
[]
); );


return ( return (


+ 2
- 2
src/components/SearchResults/EditableSearchResults.tsx 查看文件

@@ -159,7 +159,7 @@ function EditableSearchResults<T extends ResultWithId>({
onClick={() => setOpen(!open)} onClick={() => setOpen(!open)}
> >
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />} {open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
<Typography>View BoM</Typography>
<Typography>{t("View BoM")}</Typography>
</IconButton> </IconButton>
} }
</> </>
@@ -184,7 +184,7 @@ function EditableSearchResults<T extends ResultWithId>({
onClick={() => setOpen(!open)} onClick={() => setOpen(!open)}
> >
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />} {open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
<Typography>View BoM</Typography>
<Typography>{t("View BoM")}</Typography>
</IconButton> </IconButton>
} }
</> </>


+ 7
- 4
src/components/SearchResults/TempInputGridForMockUp.tsx 查看文件

@@ -74,7 +74,7 @@ class ProcessRowUpdateError extends Error {
} }


function TempInputGridForMockUp({ stockInLine }: Props) { function TempInputGridForMockUp({ stockInLine }: Props) {
const { t } = useTranslation("home");
const { t } = useTranslation("schedule");
const apiRef = useGridApiRef(); const apiRef = useGridApiRef();
const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({}); const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({});
const getRowId = useCallback<GridRowIdGetter<StockInLineRow>>( const getRowId = useCallback<GridRowIdGetter<StockInLineRow>>(
@@ -169,19 +169,22 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
() => [ () => [
{ {
field: "code", field: "code",
headerName: t("Code"),
flex: 1, flex: 1,
}, },
{ {
field: "name", field: "name",
headerName: t("Name"),
flex: 1, flex: 1,
}, },
{ {
field: "type", field: "type",
headerName: t("type"),
flex: 1, flex: 1,
}, },
{ {
field: "inStockQty", field: "inStockQty",
headerName: "Available Qty",
headerName: t("Available Qty"),
flex: 0.5, flex: 0.5,
type: "number", type: "number",
editable: true, editable: true,
@@ -194,7 +197,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
}, },
{ {
field: "purchaseQty", field: "purchaseQty",
headerName: "Demand Qty",
headerName: t("Demand Qty"),
flex: 0.5, flex: 0.5,
editable: true, editable: true,
align: "right", align: "right",
@@ -205,7 +208,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
}, },
{ {
field: "status", field: "status",
headerName: "status",
headerName: t("status"),
flex: 0.5, flex: 0.5,
editable: true, editable: true,
align: "center", align: "center",


+ 4
- 0
src/i18n/zh/home.json 查看文件

@@ -0,0 +1,4 @@
{
"Demand Qty": "需求數量"
}

+ 8
- 1
src/i18n/zh/project.json 查看文件

@@ -4,5 +4,12 @@
"Release": "發佈", "Release": "發佈",
"Actions": "動作", "Actions": "動作",
"Product": "產品", "Product": "產品",
"Details": "詳情"
"Details": "詳情",
"View BoM": "查看 BoM"





} }

+ 3
- 0
src/i18n/zh/schedule.json 查看文件

@@ -16,8 +16,11 @@
"Search": "搜尋", "Search": "搜尋",
"Reset": "重置", "Reset": "重置",
"name": "名稱", "name": "名稱",
"Name": "名稱",
"type": "類型", "type": "類型",
"code": "編號", "code": "編號",
"Code": "編號",
"CODE": "編號",
"Product Count": "產品數量", "Product Count": "產品數量",
"Scheduled At": "排程時間", "Scheduled At": "排程時間",
"Demand Forecast Period": "需求預測期間", "Demand Forecast Period": "需求預測期間",


正在加载...
取消
保存