feat: import zh_TW locale for uppy component (#3785)

#### 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
```
pull/3744/head
Ryan Wang 2023-04-19 18:40:24 +08:00 committed by GitHub
parent 5477e30781
commit 7afb3b8687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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(() => {