From 962f90de445d7935ad76ea7b74a98f12ce9a7498 Mon Sep 17 00:00:00 2001
From: vben <anncwb@126.com>
Date: 星期二, 01 十二月 2020 23:51:39 +0800
Subject: [PATCH] feat: support vscode i18n-ally plugin

---
 src/components/Form/src/helper.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/Form/src/helper.ts b/src/components/Form/src/helper.ts
index 3070af4..e1c64c3 100644
--- a/src/components/Form/src/helper.ts
+++ b/src/components/Form/src/helper.ts
@@ -1,17 +1,17 @@
 import type { ComponentType } from './types/index';
 import { useI18n } from '/@/hooks/web/useI18n';
 
-const { t } = useI18n('component.form');
+const { t } = useI18n();
 
 /**
  * @description: 鐢熸垚placeholder
  */
 export function createPlaceholderMessage(component: ComponentType) {
   if (component.includes('Input') || component.includes('Complete')) {
-    return t('input');
+    return t('component.form.input');
   }
   if (component.includes('Picker')) {
-    return t('choose');
+    return t('component.form.choose');
   }
   if (
     component.includes('Select') ||
@@ -21,7 +21,7 @@
     component.includes('Switch')
   ) {
     // return `璇烽�夋嫨${label}`;
-    return t('choose');
+    return t('component.form.choose');
   }
   return '';
 }

--
Gitblit v1.8.0