Bläddra i källkod

translate

production
tommy 2 veckor sedan
förälder
incheckning
2ebd736e8b
4 ändrade filer med 15 tillägg och 1 borttagningar
  1. +4
    -0
      src/components/ItemsSearch/ItemsSearch.tsx
  2. +5
    -0
      src/i18n/en/items.json
  3. +5
    -0
      src/i18n/zh/items.json
  4. +1
    -1
      src/i18n/zh/navigation.json

+ 4
- 0
src/components/ItemsSearch/ItemsSearch.tsx Visa fil

@@ -161,6 +161,10 @@ const ItemsSearch: React.FC<Props> = ({ items }) => {
name: "type",
label: t("Type"),
sx: { width: 120 },
renderCell: (item) => {
const typeKey = item.type?.toString().toLowerCase();
return <span>{t(typeKey) || item.type}</span>;
},
},
{
name: "status",


+ 5
- 0
src/i18n/en/items.json Visa fil

@@ -41,6 +41,11 @@
"Special Type": "Special Type",
"Status": "Status",
"Type": "Type",
"fg": "FG",
"wip": "WIP",
"mat": "MAT",
"cmb": "CMB",
"nm": "NM",
"code": "code",
"countryOfOrigin": "countryOfOrigin",
"description": "description",


+ 5
- 0
src/i18n/zh/items.json Visa fil

@@ -41,6 +41,11 @@
"isEgg": "雞蛋",
"isFee": "費用",
"isBag": "袋子",
"fg": "成品",
"wip": "半成品",
"mat": "材料",
"cmb": "合併",
"nm": "非物料",
"Back": "返回",
"Status": "狀態",
"Complete": "完成",


+ 1
- 1
src/i18n/zh/navigation.json Visa fil

@@ -75,7 +75,7 @@
"nav.settings.importExcel": "Excel 匯入",
"nav.settings.importTesting": "匯入測試",
"nav.settings.items": "物品",
"nav.settings.masterDataIssues": "數據問題",
"nav.settings.masterDataIssues": "BOM / 物料單位問題",
"nav.settings.priceInquiry": "價格查詢",
"nav.settings.printer": "列印機",
"nav.settings.qcCategory": "QC 品檢模板",


Laddar…
Avbryt
Spara