chore: bump @halo-dev/richtext-editor version to support i18n (#3613)

#### What type of PR is this?

/kind feature
/area console
/milestone 2.4.x

#### What this PR does / why we need it:

升级 `@halo-dev/richtext-editor` 以支持 i18n。 https://github.com/halo-sigs/richtext-editor/pull/6

<img width="1406" alt="image" src="https://user-images.githubusercontent.com/21301288/228414222-e5014957-1d30-4fdc-9db6-0f79e07a73b5.png">
<img width="1432" alt="image" src="https://user-images.githubusercontent.com/21301288/228414283-a2d401cd-a215-4398-9d8d-b33e7373ee49.png">

#### Which issue(s) this PR fixes:

Ref #3574 

#### Special notes for your reviewer:

在不同语言的浏览器中测试编辑器的语言是否显示正确即可。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/3624/head^2
Ryan Wang 2023-03-29 14:16:12 +08:00 committed by GitHub
parent 79f1393395
commit c9a5a01bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 455 additions and 299 deletions

View File

@ -45,7 +45,7 @@
"@halo-dev/api-client": "workspace:*",
"@halo-dev/components": "workspace:*",
"@halo-dev/console-shared": "workspace:*",
"@halo-dev/richtext-editor": "0.0.0-alpha.19",
"@halo-dev/richtext-editor": "0.0.0-alpha.21",
"@tanstack/vue-query": "^4.24.10",
"@tiptap/extension-character-count": "^2.0.0-beta.202",
"@uppy/core": "^3.1.1",

File diff suppressed because it is too large Load Diff

View File

@ -111,6 +111,7 @@ import type { queueAsPromised } from "fastq";
import type { Attachment } from "@halo-dev/api-client";
import { useFetchAttachmentPolicy } from "@/modules/contents/attachments/composables/use-attachment-policy";
import { useI18n } from "vue-i18n";
import { i18n } from "@/locales";
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
const { t } = useI18n();
@ -543,6 +544,7 @@ watch(
v-if="editor"
:editor="editor"
:toolbar-menu-items="toolbarMenuItems"
:locale="i18n.global.locale.value"
:bubble-menu-items="bubbleMenuItems"
:content-styles="{
width: 'calc(100% - 18rem)',