From 7afb3b86870748d28df9b2487908dcdfeb0b6637 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 19 Apr 2023 18:40:24 +0800 Subject: [PATCH] feat: import zh_TW locale for uppy component (#3785) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind feature /area console /milestone 2.5.x #### What this PR does / why we need it: 为上传组件 Uppy 导入中文繁体的语言包。 #### Which issue(s) this PR fixes: Ref https://github.com/halo-dev/halo/pull/3672 #### Does this PR introduce a user-facing change? ```release-note None ``` --- console/src/components/upload/UppyUpload.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console/src/components/upload/UppyUpload.vue b/console/src/components/upload/UppyUpload.vue index 4ecb3a151..7d1c25211 100644 --- a/console/src/components/upload/UppyUpload.vue +++ b/console/src/components/upload/UppyUpload.vue @@ -6,6 +6,7 @@ import Uppy, { type SuccessResponse } from "@uppy/core"; import type { Restrictions } from "@uppy/core"; import XHRUpload from "@uppy/xhr-upload"; import zh_CN from "@uppy/locales/lib/zh_CN"; +import zh_TW from "@uppy/locales/lib/zh_TW"; import en_US from "@uppy/locales/lib/en_US"; import { computed, onUnmounted } from "vue"; import { Toast } from "@halo-dev/components"; @@ -46,6 +47,7 @@ const locales = { zh: zh_CN, "en-US": en_US, "zh-CN": zh_CN, + "zh-TW": zh_TW, }; const uppy = computed(() => {