Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(drawing-ui): add missing translations (#6975)

白熱ea36cbbdfeae
diff --git a/packages/drawing-ui/src/locale/ar-SA.ts b/packages/drawing-ui/src/locale/ar-SA.ts
index b7b4ad8813..9681a60448 100644
--- a/packages/drawing-ui/src/locale/ar-SA.ts
+++ b/packages/drawing-ui/src/locale/ar-SA.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'لا يوجد تحديد للكائن',
},
+ 'image-text-wrap': {
+ title: 'التفاف النص',
+ wrappingStyle: 'نمط التفاف',
+ square: 'مربع',
+ topAndBottom: 'أعلى وأسفل',
+ inline: 'في نفس السطر مع النص',
+ behindText: 'خلف النص',
+ inFrontText: 'أمام النص',
+ wrapText: 'تفاف النص',
+ bothSide: 'كلا الجانبين',
+ leftOnly: 'يسار فقط',
+ rightOnly: 'يمين فقط',
+ distanceFromText: 'المسافة من النص',
+ top: 'أعلى(بكسل)',
+ left: 'يسار(بكسل)',
+ bottom: 'أسفل(بكسل)',
+ right: 'يمين(بكسل)',
+ },
+ 'image-popup': {
+ replace: 'استبدال',
+ delete: 'حذف',
+ edit: 'تحرير',
+ crop: 'قص',
+ reset: 'إعادة تعيين الحجم',
+ },
shortcut: {
'drawing-move-down': 'نقل الرسم لأسفل',
'drawing-move-up': 'نقل الرسم لأعلى',
diff --git a/packages/drawing-ui/src/locale/ca-ES.ts b/packages/drawing-ui/src/locale/ca-ES.ts
index 48537b3362..bbfc407292 100644
--- a/packages/drawing-ui/src/locale/ca-ES.ts
+++ b/packages/drawing-ui/src/locale/ca-ES.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Cap objecte seleccionat',
},
+ 'image-text-wrap': {
+ title: 'Ajust del text',
+ wrappingStyle: 'Estil d\'ajust',
+ square: 'Quadrat',
+ topAndBottom: 'A dalt i a baix',
+ inline: 'En línia amb el text',
+ behindText: 'Darrere del text',
+ inFrontText: 'Davant del text',
+ wrapText: 'Ajusta el text',
+ bothSide: 'Ambdós costats',
+ leftOnly: 'Només esquerra',
+ rightOnly: 'Només dreta',
+ distanceFromText: 'Distància del text',
+ top: 'A dalt(px)',
+ left: 'Esquerra(px)',
+ bottom: 'A baix(px)',
+ right: 'Dreta(px)',
+ },
+ 'image-popup': {
+ replace: 'Reemplaça',
+ delete: 'Elimina',
+ edit: 'Edita',
+ crop: 'Retalla',
+ reset: 'Restableix la mida',
+ },
shortcut: {
'drawing-move-down': 'Mou el dibuix cap avall',
'drawing-move-up': 'Mou el dibuix cap amunt',
diff --git a/packages/drawing-ui/src/locale/de-DE.ts b/packages/drawing-ui/src/locale/de-DE.ts
index 02beca6926..78f78fed19 100644
--- a/packages/drawing-ui/src/locale/de-DE.ts
+++ b/packages/drawing-ui/src/locale/de-DE.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Keine Objektauswahl',
},
+ 'image-text-wrap': {
+ title: 'Textumbruch',
+ wrappingStyle: 'Umbruchstil',
+ square: 'Quadratisch',
+ topAndBottom: 'Oben und unten',
+ inline: 'Im Textfluss',
+ behindText: 'Hinter dem Text',
+ inFrontText: 'Vor dem Text',
+ wrapText: 'Text umbrechen',
+ bothSide: 'Beide Seiten',
+ leftOnly: 'Nur links',
+ rightOnly: 'Nur rechts',
+ distanceFromText: 'Abstand vom Text',
+ top: 'Oben(px)',
+ left: 'Links(px)',
+ bottom: 'Unten(px)',
+ right: 'Rechts(px)',
+ },
+ 'image-popup': {
+ replace: 'Ersetzen',
+ delete: 'Löschen',
+ edit: 'Bearbeiten',
+ crop: 'Zuschneiden',
+ reset: 'Größe zurücksetzen',
+ },
shortcut: {
'drawing-move-down': 'Zeichnung nach unten verschieben',
'drawing-move-up': 'Zeichnung nach oben verschieben',
diff --git a/packages/drawing-ui/src/locale/en-US.ts b/packages/drawing-ui/src/locale/en-US.ts
index 0c4df66b73..182aecdb02 100644
--- a/packages/drawing-ui/src/locale/en-US.ts
+++ b/packages/drawing-ui/src/locale/en-US.ts
@@ -60,6 +60,31 @@ const locale = {
},
null: 'No Object Selection',
},
+ 'image-popup': {
+ replace: 'Replace',
+ delete: 'Delete',
+ edit: 'Edit',
+ crop: 'Crop',
+ reset: 'Reset Size',
+ },
+ 'image-text-wrap': {
+ title: 'Text Wrapping',
+ wrappingStyle: 'Wrapping Style',
+ square: 'Square',
+ topAndBottom: 'Top and Bottom',
+ inline: 'In line with text',
+ behindText: 'Behind text',
+ inFrontText: 'In front of text',
+ wrapText: 'Wrap text',
+ bothSide: 'Both sides',
+ leftOnly: 'Left only',
+ rightOnly: 'Right only',
+ distanceFromText: 'Distance from text',
+ top: 'Top(px)',
+ left: 'Left(px)',
+ bottom: 'Bottom(px)',
+ right: 'Right(px)',
+ },
shortcut: {
'drawing-move-down': 'Move Drawing down',
'drawing-move-up': 'Move Drawing up',
diff --git a/packages/drawing-ui/src/locale/es-ES.ts b/packages/drawing-ui/src/locale/es-ES.ts
index 3143c58441..67c1360f32 100644
--- a/packages/drawing-ui/src/locale/es-ES.ts
+++ b/packages/drawing-ui/src/locale/es-ES.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Ningún objeto seleccionado',
},
+ 'image-text-wrap': {
+ title: 'Ajuste de texto',
+ wrappingStyle: 'Estilo de ajuste',
+ square: 'Cuadrado',
+ topAndBottom: 'Arriba y abajo',
+ inline: 'En línea con el texto',
+ behindText: 'Detrás del texto',
+ inFrontText: 'Delante del texto',
+ wrapText: 'Ajustar texto',
+ bothSide: 'Ambos lados',
+ leftOnly: 'Solo izquierda',
+ rightOnly: 'Solo derecha',
+ distanceFromText: 'Distancia del texto',
+ top: 'Arriba(px)',
+ left: 'Izquierda(px)',
+ bottom: 'Abajo(px)',
+ right: 'Derecha(px)',
+ },
+ 'image-popup': {
+ replace: 'Reemplazar',
+ delete: 'Eliminar',
+ edit: 'Editar',
+ crop: 'Recortar',
+ reset: 'Restablecer tamaño',
+ },
shortcut: {
'drawing-move-down': 'Mover dibujo hacia abajo',
'drawing-move-up': 'Mover dibujo hacia arriba',
diff --git a/packages/drawing-ui/src/locale/fa-IR.ts b/packages/drawing-ui/src/locale/fa-IR.ts
index d15d37a21d..221f707800 100644
--- a/packages/drawing-ui/src/locale/fa-IR.ts
+++ b/packages/drawing-ui/src/locale/fa-IR.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'هیچ شیئی انتخاب نشده است',
},
+ 'image-text-wrap': {
+ title: 'پیچش متن',
+ wrappingStyle: 'سبک پیچش',
+ square: 'مربع',
+ topAndBottom: 'بالا و پایین',
+ inline: 'در یک خط با متن',
+ behindText: 'پشت متن',
+ inFrontText: 'جلوی متن',
+ wrapText: 'پیچش متن',
+ bothSide: 'هر دو طرف',
+ leftOnly: 'فقط سمت چپ',
+ rightOnly: 'فقط سمت راست',
+ distanceFromText: 'فاصله از متن',
+ top: 'بالا(px)',
+ left: 'چپ(px)',
+ bottom: 'پایین(px)',
+ right: 'راست(px)',
+ },
+ 'image-popup': {
+ replace: 'تعویض',
+ delete: 'حذف',
+ edit: 'ویرایش',
+ crop: 'کراپ',
+ reset: 'بازنشانی اندازه',
+ },
shortcut: {
'drawing-move-down': 'جابه‌جایی طراحی به پایین',
'drawing-move-up': 'جابه‌جایی طراحی به بالا',
diff --git a/packages/drawing-ui/src/locale/fr-FR.ts b/packages/drawing-ui/src/locale/fr-FR.ts
index c0c6b798e9..1cc3f8f870 100644
--- a/packages/drawing-ui/src/locale/fr-FR.ts
+++ b/packages/drawing-ui/src/locale/fr-FR.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Aucune sélection d\'objet',
},
+ 'image-text-wrap': {
+ title: 'Habillage du texte',
+ wrappingStyle: 'Style d\'habillage',
+ square: 'Carré',
+ topAndBottom: 'Haut et bas',
+ inline: 'Aligné avec le texte',
+ behindText: 'Derrière le texte',
+ inFrontText: 'Devant le texte',
+ wrapText: 'Habiller le texte',
+ bothSide: 'Des deux côtés',
+ leftOnly: 'Seulement à gauche',
+ rightOnly: 'Seulement à droite',
+ distanceFromText: 'Distance du texte',
+ top: 'Haut(px)',
+ left: 'Gauche(px)',
+ bottom: 'Bas(px)',
+ right: 'Droite(px)',
+ },
+ 'image-popup': {
+ replace: 'Remplacer',
+ delete: 'Supprimer',
+ edit: 'Modifier',
+ crop: 'Rogner',
+ reset: 'Réinitialiser la taille',
+ },
shortcut: {
'drawing-move-down': 'Déplacer le dessin vers le bas',
'drawing-move-up': 'Déplacer le dessin vers le haut',
diff --git a/packages/drawing-ui/src/locale/id-ID.ts b/packages/drawing-ui/src/locale/id-ID.ts
index 75aa74b91e..151e150b0d 100644
--- a/packages/drawing-ui/src/locale/id-ID.ts
+++ b/packages/drawing-ui/src/locale/id-ID.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Tidak Ada Objek yang Dipilih',
},
+ 'image-text-wrap': {
+ title: 'Pembungkus Teks',
+ wrappingStyle: 'Gaya Pembungkus',
+ square: 'Kotak',
+ topAndBottom: 'Atas dan Bawah',
+ inline: 'Sejajar dengan teks',
+ behindText: 'Di belakang teks',
+ inFrontText: 'Di depan teks',
+ wrapText: 'Bungkus teks',
+ bothSide: 'Kedua sisi',
+ leftOnly: 'Kiri saja',
+ rightOnly: 'Kanan saja',
+ distanceFromText: 'Jarak dari teks',
+ top: 'Atas(px)',
+ left: 'Kiri(px)',
+ bottom: 'Bawah(px)',
+ right: 'Kanan(px)',
+ },
+ 'image-popup': {
+ replace: 'Ganti',
+ delete: 'Hapus',
+ edit: 'Edit',
+ crop: 'Pangkas',
+ reset: 'Atur Ulang Ukuran',
+ },
shortcut: {
'drawing-move-down': 'Pindahkan Gambar ke Bawah',
'drawing-move-up': 'Pindahkan Gambar ke Atas',
diff --git a/packages/drawing-ui/src/locale/it-IT.ts b/packages/drawing-ui/src/locale/it-IT.ts
index d795017b3d..e16951003f 100644
--- a/packages/drawing-ui/src/locale/it-IT.ts
+++ b/packages/drawing-ui/src/locale/it-IT.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Nessun oggetto selezionato',
},
+ 'image-text-wrap': {
+ title: 'Testo a capo',
+ wrappingStyle: 'Stile a capo',
+ square: 'Quadrato',
+ topAndBottom: 'Superiore e inferiore',
+ inline: 'In linea con il testo',
+ behindText: 'Dietro il testo',
+ inFrontText: 'Davanti al testo',
+ wrapText: 'Testo a capo',
+ bothSide: 'Entrambi i lati',
+ leftOnly: 'Solo sinistra',
+ rightOnly: 'Solo destra',
+ distanceFromText: 'Distanza dal testo',
+ top: 'Superiore(px)',
+ left: 'Sinistra(px)',
+ bottom: 'Inferiore(px)',
+ right: 'Destra(px)',
+ },
+ 'image-popup': {
+ replace: 'Sostituisci',
+ delete: 'Elimina',
+ edit: 'Modifica',
+ crop: 'Ritaglia',
+ reset: 'Reimposta dimensione',
+ },
shortcut: {
'drawing-move-down': 'Sposta disegno in basso',
'drawing-move-up': 'Sposta disegno in alto',
diff --git a/packages/drawing-ui/src/locale/ja-JP.ts b/packages/drawing-ui/src/locale/ja-JP.ts
index bd55711d69..b62c3201d9 100644
--- a/packages/drawing-ui/src/locale/ja-JP.ts
+++ b/packages/drawing-ui/src/locale/ja-JP.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: '選択されたオブジェクトがありません',
},
+ 'image-text-wrap': {
+ title: '文字列の折り返し',
+ wrappingStyle: '折り返しのスタイル',
+ square: '四角形',
+ topAndBottom: '上下',
+ inline: '行内',
+ behindText: '文字列の背面',
+ inFrontText: '文字列の前面',
+ wrapText: '文字列の折り返し',
+ bothSide: '両側',
+ leftOnly: '左のみ',
+ rightOnly: '右のみ',
+ distanceFromText: '文字列からの距離',
+ top: '上(px)',
+ left: '左(px)',
+ bottom: '下(px)',
+ right: '右(px)',
+ },
+ 'image-popup': {
+ replace: '置換',
+ delete: '削除',
+ edit: '編集',
+ crop: 'トリミング',
+ reset: 'サイズをリセット',
+ },
shortcut: {
'drawing-move-down': '図形を下へ移動',
'drawing-move-up': '図形を上へ移動',
diff --git a/packages/drawing-ui/src/locale/ko-KR.ts b/packages/drawing-ui/src/locale/ko-KR.ts
index 2edb56664d..69142b9603 100644
--- a/packages/drawing-ui/src/locale/ko-KR.ts
+++ b/packages/drawing-ui/src/locale/ko-KR.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: '선택된 객체가 없습니다',
},
+ 'image-text-wrap': {
+ title: '텍스트 감싸기',
+ wrappingStyle: '감싸기 스타일',
+ square: '사각형',
+ topAndBottom: '위아래',
+ inline: '텍스트와 같은 줄',
+ behindText: '텍스트 뒤',
+ inFrontText: '텍스트 앞',
+ wrapText: '텍스트 감싸기',
+ bothSide: '양쪽',
+ leftOnly: '왼쪽만',
+ rightOnly: '오른쪽만',
+ distanceFromText: '텍스트와 거리',
+ top: '위(px)',
+ left: '왼쪽(px)',
+ bottom: '아래(px)',
+ right: '오른쪽(px)',
+ },
+ 'image-popup': {
+ replace: '교체',
+ delete: '삭제',
+ edit: '편집',
+ crop: '자르기',
+ reset: '크기 초기화',
+ },
shortcut: {
'drawing-move-down': '그리기 아래로 이동',
'drawing-move-up': '그리기 위로 이동',
diff --git a/packages/drawing-ui/src/locale/pl-PL.ts b/packages/drawing-ui/src/locale/pl-PL.ts
index 77bc619313..8bfbd66c88 100644
--- a/packages/drawing-ui/src/locale/pl-PL.ts
+++ b/packages/drawing-ui/src/locale/pl-PL.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Brak zaznaczonego obiektu',
},
+ 'image-text-wrap': {
+ title: 'Zawijanie tekstu',
+ wrappingStyle: 'Styl zawijania',
+ square: 'Kwadrat',
+ topAndBottom: 'Góra i dół',
+ inline: 'W linii z tekstem',
+ behindText: 'Za tekstem',
+ inFrontText: 'Przed tekstem',
+ wrapText: 'Zawijaj tekst',
+ bothSide: 'Obie strony',
+ leftOnly: 'Tylko lewa',
+ rightOnly: 'Tylko prawa',
+ distanceFromText: 'Odległość od tekstu',
+ top: 'Góra(px)',
+ left: 'Lewo(px)',
+ bottom: 'Dół(px)',
+ right: 'Prawo(px)',
+ },
+ 'image-popup': {
+ replace: 'Zamień',
+ delete: 'Usuń',
+ edit: 'Edytuj',
+ crop: 'Przytnij',
+ reset: 'Resetuj rozmiar',
+ },
shortcut: {
'drawing-move-down': 'Przesuń rysunek w dół',
'drawing-move-up': 'Przesuń rysunek w górę',
diff --git a/packages/drawing-ui/src/locale/pt-BR.ts b/packages/drawing-ui/src/locale/pt-BR.ts
index 4b767ac1a0..2313b122f8 100644
--- a/packages/drawing-ui/src/locale/pt-BR.ts
+++ b/packages/drawing-ui/src/locale/pt-BR.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Nenhum objeto selecionado',
},
+ 'image-text-wrap': {
+ title: 'Quebra de texto',
+ wrappingStyle: 'Estilo de quebra',
+ square: 'Quadrado',
+ topAndBottom: 'Superior e inferior',
+ inline: 'Em linha com o texto',
+ behindText: 'Atrás do texto',
+ inFrontText: 'À frente do texto',
+ wrapText: 'Quebrar texto automaticamente',
+ bothSide: 'Ambos os lados',
+ leftOnly: 'Somente esquerda',
+ rightOnly: 'Somente direita',
+ distanceFromText: 'Distância do texto',
+ top: 'Superior(px)',
+ left: 'Esquerda(px)',
+ bottom: 'Inferior(px)',
+ right: 'Direita(px)',
+ },
+ 'image-popup': {
+ replace: 'Substituir',
+ delete: 'Excluir',
+ edit: 'Editar',
+ crop: 'Cortar',
+ reset: 'Redefinir tamanho',
+ },
shortcut: {
'drawing-move-down': 'Mover desenho para baixo',
'drawing-move-up': 'Mover desenho para cima',
diff --git a/packages/drawing-ui/src/locale/ru-RU.ts b/packages/drawing-ui/src/locale/ru-RU.ts
index d35d2b1eae..7daef705e6 100644
--- a/packages/drawing-ui/src/locale/ru-RU.ts
+++ b/packages/drawing-ui/src/locale/ru-RU.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Нет выбранных объектов',
},
+ 'image-text-wrap': {
+ title: 'Text Wrapping',
+ wrappingStyle: 'Wrapping Style',
+ square: 'Square',
+ topAndBottom: 'Top and Bottom',
+ inline: 'In line with text',
+ behindText: 'Behind text',
+ inFrontText: 'In front of text',
+ wrapText: 'Wrap text',
+ bothSide: 'Both sides',
+ leftOnly: 'Left only',
+ rightOnly: 'Right only',
+ distanceFromText: 'Distance from text',
+ top: 'Top(px)',
+ left: 'Left(px)',
+ bottom: 'Bottom(px)',
+ right: 'Right(px)',
+ },
+ 'image-popup': {
+ replace: 'Заменить',
+ delete: 'Удалить',
+ edit: 'Редактировать',
+ crop: 'Обрезать',
+ reset: 'Сбросить размер',
+ },
shortcut: {
'drawing-move-down': 'Переместить изображение вниз',
'drawing-move-up': 'Переместить изображение вверх',
diff --git a/packages/drawing-ui/src/locale/sk-SK.ts b/packages/drawing-ui/src/locale/sk-SK.ts
index 8663078201..d05808a869 100644
--- a/packages/drawing-ui/src/locale/sk-SK.ts
+++ b/packages/drawing-ui/src/locale/sk-SK.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Nie je vybraný žiadny objekt',
},
+ 'image-text-wrap': {
+ title: 'Obtekanie textu',
+ wrappingStyle: 'Štýl obtekania',
+ square: 'Obdĺžnikové',
+ topAndBottom: 'Hore a dole',
+ inline: 'V riadku s textom',
+ behindText: 'Za textom',
+ inFrontText: 'Pred textom',
+ wrapText: 'Obtekať text',
+ bothSide: 'Obe strany',
+ leftOnly: 'Len ľavá',
+ rightOnly: 'Len pravá',
+ distanceFromText: 'Vzdialenosť od textu',
+ top: 'Hore (px)',
+ left: 'Vľavo (px)',
+ bottom: 'Dole (px)',
+ right: 'Vpravo (px)',
+ },
+ 'image-popup': {
+ replace: 'Nahradiť',
+ delete: 'Odstrániť',
+ edit: 'Upraviť',
+ crop: 'Orezať',
+ reset: 'Obnoviť veľkosť',
+ },
shortcut: {
'drawing-move-down': 'Posunúť kresbu nadol',
'drawing-move-up': 'Posunúť kresbu nahor',
diff --git a/packages/drawing-ui/src/locale/vi-VN.ts b/packages/drawing-ui/src/locale/vi-VN.ts
index 2fbe00eb1e..d90a7d2087 100644
--- a/packages/drawing-ui/src/locale/vi-VN.ts
+++ b/packages/drawing-ui/src/locale/vi-VN.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: 'Không có đối tượng nào được chọn',
},
+ 'image-text-wrap': {
+ title: 'Text Wrapping',
+ wrappingStyle: 'Wrapping Style',
+ square: 'Square',
+ topAndBottom: 'Top and Bottom',
+ inline: 'In line with text',
+ behindText: 'Behind text',
+ inFrontText: 'In front of text',
+ wrapText: 'Wrap text',
+ bothSide: 'Both sides',
+ leftOnly: 'Left only',
+ rightOnly: 'Right only',
+ distanceFromText: 'Distance from text',
+ top: 'Top(px)',
+ left: 'Left(px)',
+ bottom: 'Bottom(px)',
+ right: 'Right(px)',
+ },
+ 'image-popup': {
+ replace: 'Thay thế',
+ delete: 'Xóa',
+ edit: 'Chỉnh sửa',
+ crop: 'Cắt',
+ reset: 'Đặt lại kích thước',
+ },
shortcut: {
'drawing-move-down': 'Move Drawing down',
'drawing-move-up': 'Move Drawing up',
diff --git a/packages/drawing-ui/src/locale/zh-CN.ts b/packages/drawing-ui/src/locale/zh-CN.ts
index 316964be2a..e90c9c220a 100644
--- a/packages/drawing-ui/src/locale/zh-CN.ts
+++ b/packages/drawing-ui/src/locale/zh-CN.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: '未选中任何对象',
},
+ 'image-text-wrap': {
+ title: '文字环绕',
+ wrappingStyle: '环绕方式',
+ square: '四周型',
+ topAndBottom: '上下型',
+ inline: '嵌入型',
+ behindText: '衬于文字下方',
+ inFrontText: '浮于文字上方',
+ wrapText: '自动换行',
+ bothSide: '两侧',
+ leftOnly: '左侧',
+ rightOnly: '右侧',
+ distanceFromText: '距正文',
+ top: '上(px)',
+ left: '左(px)',
+ bottom: '下(px)',
+ right: '右(px)',
+ },
+ 'image-popup': {
+ replace: '替换',
+ delete: '删除',
+ edit: '编辑',
+ crop: '裁剪',
+ reset: '重置大小',
+ },
shortcut: {
'drawing-move-down': '下移绘图',
'drawing-move-up': '上移绘图',
diff --git a/packages/drawing-ui/src/locale/zh-HK.ts b/packages/drawing-ui/src/locale/zh-HK.ts
index 15b4fcb2e6..c86498c08c 100644
--- a/packages/drawing-ui/src/locale/zh-HK.ts
+++ b/packages/drawing-ui/src/locale/zh-HK.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: '未選取任何物件',
},
+ 'image-text-wrap': {
+ title: '文繞圖',
+ wrappingStyle: '文繞圖方式',
+ square: '矩形',
+ topAndBottom: '上及下',
+ inline: '與文字排列',
+ behindText: '文字在前',
+ inFrontText: '文字在後',
+ wrapText: '自動換行',
+ bothSide: '兩側',
+ leftOnly: '僅左側',
+ rightOnly: '僅右側',
+ distanceFromText: '與文字距離',
+ top: '上(px)',
+ left: '左(px)',
+ bottom: '下(px)',
+ right: '右(px)',
+ },
+ 'image-popup': {
+ replace: '替換',
+ delete: '刪除',
+ edit: '編輯',
+ crop: '裁切',
+ reset: '重置大小',
+ },
shortcut: {
'drawing-move-down': '下移繪圖',
'drawing-move-up': '上移繪圖',
diff --git a/packages/drawing-ui/src/locale/zh-TW.ts b/packages/drawing-ui/src/locale/zh-TW.ts
index 15b4fcb2e6..c86498c08c 100644
--- a/packages/drawing-ui/src/locale/zh-TW.ts
+++ b/packages/drawing-ui/src/locale/zh-TW.ts
@@ -62,6 +62,31 @@ const locale: typeof enUS = {
},
null: '未選取任何物件',
},
+ 'image-text-wrap': {
+ title: '文繞圖',
+ wrappingStyle: '文繞圖方式',
+ square: '矩形',
+ topAndBottom: '上及下',
+ inline: '與文字排列',
+ behindText: '文字在前',
+ inFrontText: '文字在後',
+ wrapText: '自動換行',
+ bothSide: '兩側',
+ leftOnly: '僅左側',
+ rightOnly: '僅右側',
+ distanceFromText: '與文字距離',
+ top: '上(px)',
+ left: '左(px)',
+ bottom: '下(px)',
+ right: '右(px)',
+ },
+ 'image-popup': {
+ replace: '替換',
+ delete: '刪除',
+ edit: '編輯',
+ crop: '裁切',
+ reset: '重置大小',
+ },
shortcut: {
'drawing-move-down': '下移繪圖',
'drawing-move-up': '上移繪圖',
diff --git a/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx b/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx
index 6304111014..50e652756c 100644
--- a/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx
+++ b/packages/drawing-ui/src/views/image-popup-menu/ImagePopupMenu.tsx
@@ -323,15 +323,15 @@ function DocImageFloatingToolbar(props: IDocImageFloatingToolbarProps) {
const [hidden, setHidden] = useState(false);
const getMenuItem = (label: string) => props.menuItems.find((item) => item.label === label);
- const editItem = getMenuItem('image-popup.edit');
- const cropItem = getMenuItem('image-popup.crop');
- const deleteItem = getMenuItem('image-popup.delete');
+ const editItem = getMenuItem('drawing-ui.image-popup.edit');
+ const cropItem = getMenuItem('drawing-ui.image-popup.crop');
+ const deleteItem = getMenuItem('drawing-ui.image-popup.delete');
const wrappingStyleOptions = [
- { label: localeService.t('image-text-wrap.inline'), value: TextWrappingStyle.INLINE, icon: <TextWrapShapeIcon /> },
- { label: localeService.t('image-text-wrap.square'), value: TextWrappingStyle.WRAP_SQUARE, icon: <TextWrapShapeIcon /> },
- { label: localeService.t('image-text-wrap.topAndBottom'), value: TextWrappingStyle.WRAP_TOP_AND_BOTTOM, icon: <TextWrapShapeIcon /> },
- { label: localeService.t('image-text-wrap.behindText'), value: TextWrappingStyle.BEHIND_TEXT, icon: <TextWrapShapeIcon /> },
- { label: localeService.t('image-text-wrap.inFrontText'), value: TextWrappingStyle.IN_FRONT_OF_TEXT, icon: <TextWrapShapeIcon /> },
+ { label: localeService.t('drawing-ui.image-text-wrap.inline'), value: TextWrappingStyle.INLINE, icon: <TextWrapShapeIcon /> },
+ { label: localeService.t('drawing-ui.image-text-wrap.square'), value: TextWrappingStyle.WRAP_SQUARE, icon: <TextWrapShapeIcon /> },
+ { label: localeService.t('drawing-ui.image-text-wrap.topAndBottom'), value: TextWrappingStyle.WRAP_TOP_AND_BOTTOM, icon: <TextWrapShapeIcon /> },
+ { label: localeService.t('drawing-ui.image-text-wrap.behindText'), value: TextWrappingStyle.BEHIND_TEXT, icon: <TextWrapShapeIcon /> },
+ { label: localeService.t('drawing-ui.image-text-wrap.inFrontText'), value: TextWrappingStyle.IN_FRONT_OF_TEXT, icon: <TextWrapShapeIcon /> },
];
const executeMenuItem = (item: IImagePopupMenuItem | undefined) => {
@@ -370,7 +370,7 @@ function DocImageFloatingToolbar(props: IDocImageFloatingToolbarProps) {
>
<ToolbarGroup>
<ToolbarDropdownButton
- title={wrappingStyleOptions.find((option) => option.value === wrappingStyle)?.label ?? localeService.t('image-text-wrap.inline')}
+ title={wrappingStyleOptions.find((option) => option.value === wrappingStyle)?.label ?? localeService.t('drawing-ui.image-text-wrap.inline')}
value={wrappingStyle}
options={wrappingStyleOptions}
onChange={updateWrappingStyle}
@@ -379,7 +379,7 @@ function DocImageFloatingToolbar(props: IDocImageFloatingToolbarProps) {
<Divider />
<ToolbarGroup>
<ToolbarButton
- title={editItem ? localeService.t(editItem.label) : localeService.t('image-popup.edit')}
+ title={editItem ? localeService.t(editItem.label) : localeService.t('drawing-ui.image-popup.edit')}
disabled={!editItem || editItem.disable}
onClick={() => {
setHidden(true);
@@ -389,7 +389,7 @@ function DocImageFloatingToolbar(props: IDocImageFloatingToolbarProps) {
<DocSettingIcon />
</ToolbarButton>
<ToolbarButton
- title={cropItem ? localeService.t(cropItem.label) : localeService.t('image-popup.crop')}
+ title={cropItem ? localeService.t(cropItem.label) : localeService.t('drawing-ui.image-popup.crop')}
disabled={!cropItem || cropItem.disable}
onClick={() => executeMenuItem(cropItem)}
>
@@ -399,7 +399,7 @@ function DocImageFloatingToolbar(props: IDocImageFloatingToolbarProps) {
<Divider />
<ToolbarGroup>
<ToolbarButton
- title={deleteItem ? localeService.t(deleteItem.label) : localeService.t('image-popup.delete')}
+ title={deleteItem ? localeService.t(deleteItem.label) : localeService.t('drawing-ui.image-popup.delete')}
disabled={!deleteItem || deleteItem.disable}
onClick={() => executeMenuItem(deleteItem)}
>
diff --git a/packages/ui/src/controllers/menus/menus.ts b/packages/ui/src/controllers/menus/menus.ts
index 345202e3cc..3a55d3b2b5 100644
--- a/packages/ui/src/controllers/menus/menus.ts
+++ b/packages/ui/src/controllers/menus/menus.ts
@@ -40,7 +40,7 @@ export function UndoMenuItemFactory(accessor: IAccessor): IMenuButtonItem {
type: MenuItemType.BUTTON,
icon: 'UndoIcon',
title: 'Undo',
- tooltip: 'ui.toolbar.undo',
+ tooltip: 'ui.shortcut.undo',
disabled$: undoRedoDisableFactory$(accessor, true),
};
}
@@ -51,7 +51,7 @@ export function RedoMenuItemFactory(accessor: IAccessor): IMenuButtonItem {
type: MenuItemType.BUTTON,
icon: 'RedoIcon',
title: 'Redo',
- tooltip: 'ui.toolbar.redo',
+ tooltip: 'ui.shortcut.redo',
disabled$: undoRedoDisableFactory$(accessor, false),
};
}