Răsfoiți Sursa

feat: 完善多语言

Jack Zhou 1 săptămână în urmă
părinte
comite
508501e71f

+ 7 - 4
src/locales/en.json

@@ -204,7 +204,12 @@
     "emailSentSuccessfully": "Email sent successfully",
     "failedToSendEmail": "Failed to send email",
 
-   
+    "textSearch": "text search",
+    "created": "Created",
+    "cargoReceived": "Cargo Received",
+    "departed": "Departed",
+    "arrived": "Arrived",
+    "completed": "Completed",
 
     "shareLinkTip": "Copy the link to share this shipment with anyone.",
     "publicSearchPlaceholder": "Enter Booking/HBL/MBL/PO/Container No.",
@@ -348,8 +353,6 @@
   "report": {
     "title": "Report",
     "searchPlaceholder": "Search Report Name",
-    "excelFile": "Excel(.xlsx)",
-    "csvFile": "CSV(.csv)",
     "downloadReport": "Download Report",
     "manageFields": "Manage Fields",
     "filters": "Filters",
@@ -878,7 +881,7 @@
     "unsavedChangesMessageLine2": "Are you sure you want to leave this page?",
     "hobl": "HOBL",
     "communicateWithUs": "Communicate with us",
-    "separatedBySemicolon": "Separated by ;",
+    "separatedBySemicolon": "Separated by",
     "sendEmail": "Send Email",
     "pleaseEnterEmailContent": "Please enter the email content",
     "emailSentSuccessfully": "Email sent successfully",

+ 4 - 3
src/styles/theme.scss

@@ -79,7 +79,7 @@
   --color-tag-approved-bg: rgb(232, 251, 228);
   --color-tag-approved: rgb(91, 180, 98);
 
-  --color-tag-rejected-bg: rgba(201, 53, 63,0.2);
+  --color-tag-rejected-bg: #ffdcde;
   --color-tag-rejected: rgb(201, 53, 63);
 
   --color-tag-checked-bg: rgb(255, 117, 0, 0.1);
@@ -611,7 +611,8 @@
 
   --color-tag-unfinished-approval-bg: rgba(224, 161, 0, 0.2);
   --color-tag-approved-bg: rgba(91, 180, 98, 0.2);
-  --color-tag-rejected-bg: rgb(255, 220, 222);
+
+  --color-tag-rejected-bg: rgba(201, 53, 63,0.2);
 
   --color-tag-checked-bg: rgb(255, 117, 0, 0.2);
   --color-tag-chinese-simplified-bg: rgb(201, 53, 63,0.2);
@@ -630,7 +631,7 @@
   --color-steps-unfinished-line: #6a6d73;
   --color-steps-current-icon-color: #e0a100;
   --color-steps-current-icon-bg: #534b30;
-  --color-steps-rejected-bg: #4f353d;
+  --color-steps-rejected-bg: rgba(201, 53, 63,0.2);
   --color-steps-approved-bg: #394e44;
   --color-steps-cancelled: #c2c4c7;
   --color-steps-cancelled-bg: rgba(240, 241, 243, 0.2);

+ 1 - 1
src/views/Booking/src/components/BookingDetail/src/components/EmailView.vue

@@ -187,7 +187,7 @@ const sendEmail = () => {
             <el-tooltip
               class="box-item"
               effect="dark"
-              :content="t('destinationDelivery.separatedBySemicolon')"
+              :content="t('destinationDelivery.separatedBySemicolon') + ' ;'"
               placement="top-start"
               :offset="-8"
             >

+ 2 - 2
src/views/Dashboard/src/DashboardView.vue

@@ -733,7 +733,7 @@ const ClickParams = (val: string) => {
   })
   if (val === 'Top 10 Origin') {
     filtersStore.updateFilter({
-      title: 'Origin',
+      title: t('tracking.origin'),
       key: 'shipper_city',
       value: [seller_chart_top10_origin.value[0]?.paramscityname],
       keyType: 'array'
@@ -741,7 +741,7 @@ const ClickParams = (val: string) => {
   }
   if (val === 'Top 10 Destination') {
     filtersStore.updateFilter({
-      title: 'Destination',
+      title: t('tracking.destination'),
       key: 'consignee_city',
       value: [seller_chart_top10_destination.value[0]?.paramscityname],
       keyType: 'array'

+ 2 - 4
src/views/Report/src/components/ReportDetail/src/ReportDetail.vue

@@ -99,10 +99,8 @@ const applyNewColumn = () => {
       <span>{{ reportName }}</span>
       <div>
         <el-popover placement="bottom" width="195" :visible="DownloadVisible">
-          <p class="download-item" @click="handleClickDownload('xlsx')">
-            {{ t('report.excelFile') }}
-          </p>
-          <p class="download-item" @click="handleClickDownload('csv')">{{ t('report.csvFile') }}</p>
+          <p class="download-item" @click="handleClickDownload('xlsx')">Excel(.xlsx)</p>
+          <p class="download-item" @click="handleClickDownload('csv')">CSV(.csv)</p>
           <template #reference>
             <el-button
               @blur="DownloadVisible = false"

+ 3 - 3
src/views/Tracking/src/TrackingView.vue

@@ -160,13 +160,13 @@ const initPage = () => {
     })
   } else if (!filtersList.value || (filtersList.value && filtersList.value.length == 0)) {
     filtersStore.updateFilter({
-      title: t('tracking.transportMode'),
+      title: t('booking.transportMode'),
       value: [t('common.all')],
       keyType: 'array',
       key: 'transport_mode'
     })
     filtersStore.updateFilter({
-      title: 'ETD',
+      title: t('tracking.etd'),
       value: [
         dayjs().subtract(2, 'month').startOf('month').format(formatDate),
         dayjs().add(1, 'month').format(formatDate)
@@ -221,7 +221,7 @@ const getTabsList = (list) => {
 // 点击search按钮
 const SearchInput = () => {
   filtersStore.updateFilter({
-    title: 'text search',
+    title: t('tracking.textSearch'),
     value: textSearch.value,
     keyType: 'normal',
     key: '_textSearch',