From 9a301779d1994692a4eeed1fb945ca5040426280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=BA=86=E6=89=8D=E4=B8=A8=E9=9D=99=E8=A7=85?= Date: Tue, 19 Mar 2024 01:34:28 +0800 Subject: [PATCH] Improve experience for Chatdoc (#4) --- ...-bfb7182a-09f2-4fc9-9769-159d86b79d17.json | 7 ++ src/components/chatdoc/CreateRepository.vue | 10 +- src/components/chatdoc/UploadDocument.vue | 5 +- src/i18n/en/api/entity.ts | 15 +++ src/i18n/en/api/index.ts | 9 ++ src/i18n/en/api/message.ts | 8 ++ src/i18n/en/api/unit.ts | 12 ++ src/i18n/en/application/button.ts | 7 ++ src/i18n/en/application/field.ts | 19 +++ src/i18n/en/application/index.ts | 11 ++ src/i18n/en/application/message.ts | 23 ++++ src/i18n/en/application/title.ts | 5 + src/i18n/en/chat/index.ts | 4 + src/i18n/en/chat/message.ts | 31 +++++ src/i18n/en/chat/title.ts | 9 ++ src/i18n/en/chatdoc/button.ts | 3 + src/i18n/en/chatdoc/field.ts | 13 ++ src/i18n/en/chatdoc/index.ts | 7 ++ src/i18n/en/chatdoc/message.ts | 33 ++++++ src/i18n/en/chatdoc/nav.ts | 5 + src/i18n/en/chatdoc/title.ts | 5 + src/i18n/en/common/button.ts | 34 ++++++ src/i18n/en/common/entity.ts | 20 ++++ src/i18n/en/common/index.ts | 13 ++ src/i18n/en/common/message.ts | 12 ++ src/i18n/en/common/nav.ts | 20 ++++ src/i18n/en/common/title.ts | 13 ++ src/i18n/en/console/index.ts | 5 + src/i18n/en/console/menu.ts | 11 ++ src/i18n/en/distribution/button.ts | 4 + src/i18n/en/distribution/field.ts | 12 ++ src/i18n/en/distribution/index.ts | 11 ++ src/i18n/en/distribution/message.ts | 13 ++ src/i18n/en/distribution/title.ts | 13 ++ src/i18n/en/index.ts | 39 +++--- src/i18n/en/midjourney/button.ts | 15 +++ src/i18n/en/midjourney/description.ts | 52 ++++++++ src/i18n/en/midjourney/field.ts | 7 ++ src/i18n/en/midjourney/index.ts | 9 ++ src/i18n/en/midjourney/message.ts | 10 ++ src/i18n/en/midjourney/model.ts | 4 + src/i18n/en/midjourney/name.ts | 28 +++++ src/i18n/en/midjourney/placeholder.ts | 5 + src/i18n/en/order/button.ts | 8 ++ src/i18n/en/order/field.ts | 12 ++ src/i18n/en/order/index.ts | 13 ++ src/i18n/en/order/message.ts | 9 ++ src/i18n/en/order/state.ts | 6 + src/i18n/en/order/title.ts | 7 ++ src/i18n/en/service/button.ts | 7 ++ src/i18n/en/service/field.ts | 6 + src/i18n/en/service/index.ts | 13 ++ src/i18n/en/service/message.ts | 12 ++ src/i18n/en/service/title.ts | 5 + src/i18n/en/service/unit.ts | 12 ++ src/i18n/en/setting/field.ts | 4 + src/i18n/en/setting/index.ts | 3 + src/i18n/en/user/field.ts | 7 ++ src/i18n/en/user/index.ts | 5 + src/i18n/zh/chatdoc/message.ts | 4 +- src/operators/chatdoc.ts | 8 +- src/pages/chatdoc/Conversation.vue | 3 +- src/pages/chatdoc/Manage.vue | 6 +- src/pages/console/application/Buy.vue | 9 +- src/pages/console/application/List.vue | 4 +- src/pages/distribution/Index.vue | 111 ++++++++---------- src/store/chat/actions.ts | 5 +- src/store/chatdoc/actions.ts | 36 +++++- 68 files changed, 805 insertions(+), 101 deletions(-) create mode 100644 change/@acedatacloud-hub-bfb7182a-09f2-4fc9-9769-159d86b79d17.json create mode 100644 src/i18n/en/api/entity.ts create mode 100644 src/i18n/en/api/index.ts create mode 100644 src/i18n/en/api/message.ts create mode 100644 src/i18n/en/api/unit.ts create mode 100644 src/i18n/en/application/button.ts create mode 100644 src/i18n/en/application/field.ts create mode 100644 src/i18n/en/application/index.ts create mode 100644 src/i18n/en/application/message.ts create mode 100644 src/i18n/en/application/title.ts create mode 100644 src/i18n/en/chat/index.ts create mode 100644 src/i18n/en/chat/message.ts create mode 100644 src/i18n/en/chat/title.ts create mode 100644 src/i18n/en/chatdoc/button.ts create mode 100644 src/i18n/en/chatdoc/field.ts create mode 100644 src/i18n/en/chatdoc/index.ts create mode 100644 src/i18n/en/chatdoc/message.ts create mode 100644 src/i18n/en/chatdoc/nav.ts create mode 100644 src/i18n/en/chatdoc/title.ts create mode 100644 src/i18n/en/common/button.ts create mode 100644 src/i18n/en/common/entity.ts create mode 100644 src/i18n/en/common/index.ts create mode 100644 src/i18n/en/common/message.ts create mode 100644 src/i18n/en/common/nav.ts create mode 100644 src/i18n/en/common/title.ts create mode 100644 src/i18n/en/console/index.ts create mode 100644 src/i18n/en/console/menu.ts create mode 100644 src/i18n/en/distribution/button.ts create mode 100644 src/i18n/en/distribution/field.ts create mode 100644 src/i18n/en/distribution/index.ts create mode 100644 src/i18n/en/distribution/message.ts create mode 100644 src/i18n/en/distribution/title.ts create mode 100644 src/i18n/en/midjourney/button.ts create mode 100644 src/i18n/en/midjourney/description.ts create mode 100644 src/i18n/en/midjourney/field.ts create mode 100644 src/i18n/en/midjourney/index.ts create mode 100644 src/i18n/en/midjourney/message.ts create mode 100644 src/i18n/en/midjourney/model.ts create mode 100644 src/i18n/en/midjourney/name.ts create mode 100644 src/i18n/en/midjourney/placeholder.ts create mode 100644 src/i18n/en/order/button.ts create mode 100644 src/i18n/en/order/field.ts create mode 100644 src/i18n/en/order/index.ts create mode 100644 src/i18n/en/order/message.ts create mode 100644 src/i18n/en/order/state.ts create mode 100644 src/i18n/en/order/title.ts create mode 100644 src/i18n/en/service/button.ts create mode 100644 src/i18n/en/service/field.ts create mode 100644 src/i18n/en/service/index.ts create mode 100644 src/i18n/en/service/message.ts create mode 100644 src/i18n/en/service/title.ts create mode 100644 src/i18n/en/service/unit.ts create mode 100644 src/i18n/en/setting/field.ts create mode 100644 src/i18n/en/setting/index.ts create mode 100644 src/i18n/en/user/field.ts create mode 100644 src/i18n/en/user/index.ts diff --git a/change/@acedatacloud-hub-bfb7182a-09f2-4fc9-9769-159d86b79d17.json b/change/@acedatacloud-hub-bfb7182a-09f2-4fc9-9769-159d86b79d17.json new file mode 100644 index 00000000..ab16b74e --- /dev/null +++ b/change/@acedatacloud-hub-bfb7182a-09f2-4fc9-9769-159d86b79d17.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "add localization support", + "packageName": "@acedatacloud/hub", + "email": "cqc@cuiqingcai.com", + "dependentChangeType": "patch" +} diff --git a/src/components/chatdoc/CreateRepository.vue b/src/components/chatdoc/CreateRepository.vue index 178ee1d9..1cc1424c 100644 --- a/src/components/chatdoc/CreateRepository.vue +++ b/src/components/chatdoc/CreateRepository.vue @@ -1,11 +1,11 @@