diff --git a/public/locales/en/products.json b/public/locales/en/products.json
index 74e08bb..02689b7 100644
--- a/public/locales/en/products.json
+++ b/public/locales/en/products.json
@@ -116,5 +116,26 @@
"Weekdays": "Weekdays"
},
+ "FormTooltip": {
+ "Type": "Product Type",
+ "Title": "Title",
+ "Code": "Code",
+ "City": "City",
+ "Dept": "Department",
+ "Duration": "Duration",
+ "RecommendsRate": "RecommendsRate",
+ "OpenHours": "Open Hours",
+ "OpenWeekdays": "Open Weekdays",
+ "DisplayToC": "Display Type",
+ "KM": "KM",
+ "Description": "Description",
+ "Remarks": "Remarks"
+ },
+
+ "LgcModal": {
+ "title": "Add language",
+ "placeholder": "Pick a language"
+ },
+
"#": "Product"
}
diff --git a/public/locales/zh/products.json b/public/locales/zh/products.json
index fdb7785..1778f9d 100644
--- a/public/locales/zh/products.json
+++ b/public/locales/zh/products.json
@@ -104,5 +104,25 @@
"Weekdays": "周末",
"Operation": "Operation"
},
+ "FormTooltop": {
+ "Type": "Product Type",
+ "Title": "Title",
+ "Code": "Code",
+ "City": "City",
+ "dept": "Department",
+ "Duration": "Duration",
+ "RecommendsRate": "RecommendsRate",
+ "OpenHours": "Open Hours",
+ "OpenWeekdays": "Open Weekdays",
+ "DisplayToC": "Display Type",
+ "KM": "KM",
+ "Description": "Description",
+ "Remarks": "Remarks"
+ },
+
+ "LgcModal": {
+ "title": "添加语种",
+ "placeholder": "选择语种"
+ },
"#": "产品"
}
diff --git a/src/views/products/Detail/NewProductModal.jsx b/src/views/products/Detail/NewProductModal.jsx
index 09ed31e..4903d4e 100644
--- a/src/views/products/Detail/NewProductModal.jsx
+++ b/src/views/products/Detail/NewProductModal.jsx
@@ -10,7 +10,7 @@ import { useDefaultLgc } from '@/i18n/LanguageSwitcher';
import dayjs from 'dayjs'
export const NewProductsForm = ({ initialValues, onFormInstanceReady, ...props }) => {
- const { t } = useTranslation();
+ const { t } = useTranslation('products');
const [form] = Form.useForm();
useEffect(() => {
@@ -21,10 +21,10 @@ export const NewProductsForm = ({ initialValues, onFormInstanceReady, ...props }
return (
+
-
+
diff --git a/src/views/products/Detail/ProductInfoForm.jsx b/src/views/products/Detail/ProductInfoForm.jsx
index 70c8036..5fd5322 100644
--- a/src/views/products/Detail/ProductInfoForm.jsx
+++ b/src/views/products/Detail/ProductInfoForm.jsx
@@ -176,7 +176,7 @@ function getFields(props) {
item(
'title',
99,
-
+
,
fieldProps?.title?.col || midCol
@@ -184,7 +184,7 @@ function getFields(props) {
item(
'code',
99,
-
+
,
fieldProps?.code?.col || midCol
@@ -192,7 +192,7 @@ function getFields(props) {
item(
'city',
99,
-
+
,
fieldProps?.city?.col || midCol
@@ -208,7 +208,7 @@ function getFields(props) {
item(
'duration',
99,
-
+
{/* */}
,
@@ -217,7 +217,7 @@ function getFields(props) {
item(
'km',
99,
-
+
,
fieldProps?.km?.col || midCol
@@ -225,7 +225,7 @@ function getFields(props) {
item(
'recommends_rate',
99,
-
+
{/* */}