Forráskód Böngészése

add i18n in register page

Timmy 1 éve
szülő
commit
09ea630f62

+ 1 - 0
hichina-main-front-mobile-first/src/i18n/en-US/index.js

@@ -35,4 +35,5 @@ export default {
   seasonal_recommendation: "Seasonal Recommendation",
   enter_email: "Enter your email",
   enter_password: "Enter your password",
+  confirm_password: "Confirm your password",
 };

+ 1 - 0
hichina-main-front-mobile-first/src/i18n/th-TH/index.js

@@ -35,4 +35,5 @@ export default {
   seasonal_recommendation: "คำแนะนำตามฤดูกาล",
   enter_email: "กรุณากรอกอีเมลของคุณ",
   enter_password: "กรุณากรอกรหัสผ่านของคุณ",
+  confirm_password: "กรุณายืนยันรหัสผ่านของคุณ",
 };

+ 3 - 3
hichina-main-front-mobile-first/src/pages/RegisterPage.vue

@@ -13,7 +13,7 @@
             :rules="[(val) => !!val || 'Field is required']"
             color="blue-12"
             v-model="username"
-            label="Enter your email/username"
+            :label="$t('enter_email')"
             ref="usernameInput"
           >
             <template v-slot:prepend>
@@ -27,7 +27,7 @@
             color="blue-12"
             v-model="password"
             type="password"
-            label="Enter your password"
+            :label="$t('enter_password')"
             ref="passwordInput"
           >
             <template v-slot:prepend>
@@ -42,7 +42,7 @@
             error-message="Confirm password is not the same with password"
             :error="!correctConfPass"
             type="password"
-            label="Confirm your password"
+            :label="$t('confirm_password')"
             ref="confPasswordInput"
           >
             <template v-slot:prepend>