فهرست منبع

Update price range labels and localization in partner popup component

- Modified price range IDs and labels in the useFindPartnerPopup composable to reflect new ranges.
- Updated localization strings in English, Indonesian, and Chinese to match the new price range format.
- Changed the title for the price section to "Price range" for clarity.
0es 2 هفته پیش
والد
کامیت
3f05968231
4فایلهای تغییر یافته به همراه34 افزوده شده و 34 حذف شده
  1. 16 16
      app/composables/useFindPartnerPopup.ts
  2. 6 6
      i18n/locales/en.json
  3. 6 6
      i18n/locales/id.json
  4. 6 6
      i18n/locales/zh.json

+ 16 - 16
app/composables/useFindPartnerPopup.ts

@@ -122,24 +122,24 @@ const state = reactive<FindPartnerPopupState>({
           labelKey: 'home.findPartner.sections.price.tags.unlimited',
         },
         {
-          id: '0-1000',
-          labelKey: 'home.findPartner.sections.price.tags.range_0_1000',
+          id: '0-10',
+          labelKey: 'home.findPartner.sections.price.tags.range_0_10',
         },
         {
-          id: '1000-1500',
-          labelKey: 'home.findPartner.sections.price.tags.range_1000_1500',
+          id: '10-15',
+          labelKey: 'home.findPartner.sections.price.tags.range_10_15',
         },
         {
-          id: '1500-2500',
-          labelKey: 'home.findPartner.sections.price.tags.range_1500_2500',
+          id: '15-25',
+          labelKey: 'home.findPartner.sections.price.tags.range_15_25',
         },
         {
-          id: '2500-5000',
-          labelKey: 'home.findPartner.sections.price.tags.range_2500_5000',
+          id: '25-50',
+          labelKey: 'home.findPartner.sections.price.tags.range_25_50',
         },
         {
-          id: '5000+',
-          labelKey: 'home.findPartner.sections.price.tags.range_5000_plus',
+          id: 'over50',
+          labelKey: 'home.findPartner.sections.price.tags.range_over50',
         },
       ],
     },
@@ -199,18 +199,18 @@ const mapRegionToBackend = (id?: string): string => {
 }
 
 const mapPriceToBackend = (id?: string): number => {
-  // 价格区间:-1:无限制,0:0-1000,1:1000-1500,2:1500-2500,3:2500-5000,4:5000以上
+  // 价格区间:-1:无限制,0:[0,10],1:(10,15],2:(15,25],3:(25,50],4:over50
   if (!id || id === 'unlimited')
     return -1
-  if (id === '0-1000')
+  if (id === '0-10')
     return 0
-  if (id === '1000-1500')
+  if (id === '10-15')
     return 1
-  if (id === '1500-2500')
+  if (id === '15-25')
     return 2
-  if (id === '2500-5000')
+  if (id === '25-50')
     return 3
-  if (id === '5000+')
+  if (id === 'over50')
     return 4
   return -1
 }

+ 6 - 6
i18n/locales/en.json

@@ -568,14 +568,14 @@
           }
         },
         "price": {
-          "title": "Price",
+          "title": "Price range",
           "tags": {
             "unlimited": "Unlimited",
-            "range_0_1000": "0-1000",
-            "range_1000_1500": "1000-1500",
-            "range_1500_2500": "1500-2500",
-            "range_2500_5000": "2500-5000",
-            "range_5000_plus": "5000+"
+            "range_0_10": "0-10",
+            "range_10_15": "10-15",
+            "range_15_25": "15-25",
+            "range_25_50": "25-50",
+            "range_over50": "50+"
           }
         }
       }

+ 6 - 6
i18n/locales/id.json

@@ -569,14 +569,14 @@
           }
         },
         "price": {
-          "title": "Harga",
+          "title": "Rentang harga",
           "tags": {
             "unlimited": "Tanpa batas",
-            "range_0_1000": "0-1000",
-            "range_1000_1500": "1000-1500",
-            "range_1500_2500": "1500-2500",
-            "range_2500_5000": "2500-5000",
-            "range_5000_plus": "5000+"
+            "range_0_10": "0-10",
+            "range_10_15": "10-15",
+            "range_15_25": "15-25",
+            "range_25_50": "25-50",
+            "range_over50": "50+"
           }
         }
       }

+ 6 - 6
i18n/locales/zh.json

@@ -569,14 +569,14 @@
           }
         },
         "price": {
-          "title": "价格",
+          "title": "价格区间",
           "tags": {
             "unlimited": "不限",
-            "range_0_1000": "0-1000",
-            "range_1000_1500": "1000-1500",
-            "range_1500_2500": "1500-2500",
-            "range_2500_5000": "2500-5000",
-            "range_5000_plus": "5000以上"
+            "range_0_10": "0-10",
+            "range_10_15": "10-15",
+            "range_15_25": "15-25",
+            "range_25_50": "25-50",
+            "range_over50": "50以上"
           }
         }
       }