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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheets-ui): add missing pasteFormula label to contextmenu locale (#7052)
白熱26e874584047
diff --git a/packages/sheets-ui/src/locale/ar-SA.ts b/packages/sheets-ui/src/locale/ar-SA.tsindex 625104d0bd..489f18cab9 100644--- a/packages/sheets-ui/src/locale/ar-SA.ts+++ b/packages/sheets-ui/src/locale/ar-SA.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'لصق التنسيق',pasteColWidth: 'لصق عرض العمود',pasteBesidesBorder: 'لصق باستثناء أنماط الحدود',+ pasteFormula: 'لصق الصيغة',insert: 'إدراج',insertRow: 'إدراج صف',insertRowBefore: 'إدراج صف قبل',diff --git a/packages/sheets-ui/src/locale/ca-ES.ts b/packages/sheets-ui/src/locale/ca-ES.tsindex 2c06f04bd1..e4f580f0f3 100644--- a/packages/sheets-ui/src/locale/ca-ES.ts+++ b/packages/sheets-ui/src/locale/ca-ES.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Enganxar només el format',pasteColWidth: 'Enganxar l\'amplada de la columna',pasteBesidesBorder: 'Enganxar excepte les vores',+ pasteFormula: 'Enganxa la fórmula',insert: 'Inserir',insertRow: 'Inserir fila',insertRowBefore: 'Inserir fila abans',diff --git a/packages/sheets-ui/src/locale/de-DE.ts b/packages/sheets-ui/src/locale/de-DE.tsindex 87dcc8facd..276680d38f 100644--- a/packages/sheets-ui/src/locale/de-DE.ts+++ b/packages/sheets-ui/src/locale/de-DE.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Formatierung einfügen',pasteColWidth: 'Spaltenbreite einfügen',pasteBesidesBorder: 'Rahmenstile einfügen',+ pasteFormula: 'Formel einfügen',insert: 'Einfügen',insertRow: 'Zeile einfügen',insertRowBefore: 'Zeile davor einfügen',diff --git a/packages/sheets-ui/src/locale/en-US.ts b/packages/sheets-ui/src/locale/en-US.tsindex dbde42095c..7c88af43d4 100644--- a/packages/sheets-ui/src/locale/en-US.ts+++ b/packages/sheets-ui/src/locale/en-US.ts@@ -162,6 +162,7 @@ const locale = {pasteFormat: 'Paste Format',pasteColWidth: 'Paste Column Width',pasteBesidesBorder: 'Paste Besides Border Styles',+ pasteFormula: 'Paste Formula',insert: 'Insert',insertRow: 'Insert Row',insertRowBefore: 'Insert Row Before',diff --git a/packages/sheets-ui/src/locale/es-ES.ts b/packages/sheets-ui/src/locale/es-ES.tsindex b381b9e8f6..3509c5ae97 100644--- a/packages/sheets-ui/src/locale/es-ES.ts+++ b/packages/sheets-ui/src/locale/es-ES.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Pegar solo formato',pasteColWidth: 'Pegar ancho de columna',pasteBesidesBorder: 'Pegar todo excepto los bordes',+ pasteFormula: 'Pegar fórmula',insert: 'Insertar',insertRow: 'Insertar fila',insertRowBefore: 'Insertar fila antes',diff --git a/packages/sheets-ui/src/locale/fa-IR.ts b/packages/sheets-ui/src/locale/fa-IR.tsindex 5935a7f209..d5cc2ab3b5 100644--- a/packages/sheets-ui/src/locale/fa-IR.ts+++ b/packages/sheets-ui/src/locale/fa-IR.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'چسباندن قالب',pasteColWidth: 'چسباندن عرض ستون',pasteBesidesBorder: 'چسباندن کنار سبکهای مرز',+ pasteFormula: 'چسباندن فرمول',insert: 'درج',insertRow: 'درج سطر',insertRowBefore: 'درج سطر قبل از',diff --git a/packages/sheets-ui/src/locale/fr-FR.ts b/packages/sheets-ui/src/locale/fr-FR.tsindex 5c50178502..aae0006257 100644--- a/packages/sheets-ui/src/locale/fr-FR.ts+++ b/packages/sheets-ui/src/locale/fr-FR.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Coller le format',pasteColWidth: 'Coller la largeur de la colonne',pasteBesidesBorder: 'Coller à côté des styles de bordure',+ pasteFormula: 'Coller la formule',insert: 'Insérer',insertRow: 'Insérer une ligne',insertRowBefore: 'Insérer une ligne avant',diff --git a/packages/sheets-ui/src/locale/id-ID.ts b/packages/sheets-ui/src/locale/id-ID.tsindex cd4b9b2038..2b98ee13fb 100644--- a/packages/sheets-ui/src/locale/id-ID.ts+++ b/packages/sheets-ui/src/locale/id-ID.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Tempel Format',pasteColWidth: 'Tempel Lebar Kolom',pasteBesidesBorder: 'Tempel Tanpa Gaya Batas',+ pasteFormula: 'Tempel Rumus',insert: 'Sisipkan',insertRow: 'Sisipkan Baris',insertRowBefore: 'Sisipkan Baris Sebelum',diff --git a/packages/sheets-ui/src/locale/it-IT.ts b/packages/sheets-ui/src/locale/it-IT.tsindex 445492dc50..d3c587820b 100644--- a/packages/sheets-ui/src/locale/it-IT.ts+++ b/packages/sheets-ui/src/locale/it-IT.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Incolla formato',pasteColWidth: 'Incolla larghezza colonna',pasteBesidesBorder: 'Incolla esclusi stili bordo',+ pasteFormula: 'Incolla formula',insert: 'Inserisci',insertRow: 'Inserisci riga',insertRowBefore: 'Inserisci riga prima',diff --git a/packages/sheets-ui/src/locale/ja-JP.ts b/packages/sheets-ui/src/locale/ja-JP.tsindex dfb94509b6..bcf309848e 100644--- a/packages/sheets-ui/src/locale/ja-JP.ts+++ b/packages/sheets-ui/src/locale/ja-JP.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: '書式を貼り付け',pasteColWidth: '列幅を貼り付け',pasteBesidesBorder: '罫線スタイルを貼り付け',+ pasteFormula: '数式を貼り付け',insert: '挿入',insertRow: '行を挿入',insertRowBefore: '前に行を挿入',diff --git a/packages/sheets-ui/src/locale/ko-KR.ts b/packages/sheets-ui/src/locale/ko-KR.tsindex 886122f87d..c85936075a 100644--- a/packages/sheets-ui/src/locale/ko-KR.ts+++ b/packages/sheets-ui/src/locale/ko-KR.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: '서식 붙여넣기',pasteColWidth: '열 너비 붙여넣기',pasteBesidesBorder: '테두리 스타일 붙여넣기',+ pasteFormula: '수식 붙여넣기',insert: '삽입',insertRow: '행 삽입',insertRowBefore: '앞에 행 삽입',diff --git a/packages/sheets-ui/src/locale/pl-PL.ts b/packages/sheets-ui/src/locale/pl-PL.tsindex 0d247f38f0..71b5ae4719 100644--- a/packages/sheets-ui/src/locale/pl-PL.ts+++ b/packages/sheets-ui/src/locale/pl-PL.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Wklej format',pasteColWidth: 'Wklej szerokość kolumny',pasteBesidesBorder: 'Wklej oprócz stylów obramowania',+ pasteFormula: 'Wklej formułę',insert: 'Wstaw',insertRow: 'Wstaw wiersz',insertRowBefore: 'Wstaw wiersz przed',diff --git a/packages/sheets-ui/src/locale/pt-BR.ts b/packages/sheets-ui/src/locale/pt-BR.tsindex 3507c05c34..528628b5dc 100644--- a/packages/sheets-ui/src/locale/pt-BR.ts+++ b/packages/sheets-ui/src/locale/pt-BR.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Colar formatação',pasteColWidth: 'Colar largura da coluna',pasteBesidesBorder: 'Colar exceto estilos de borda',+ pasteFormula: 'Colar Fórmula',insert: 'Inserir',insertRow: 'Inserir linha',insertRowBefore: 'Inserir linha antes',diff --git a/packages/sheets-ui/src/locale/ru-RU.ts b/packages/sheets-ui/src/locale/ru-RU.tsindex 52994daa3c..db4de1d37e 100644--- a/packages/sheets-ui/src/locale/ru-RU.ts+++ b/packages/sheets-ui/src/locale/ru-RU.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Вставить формат',pasteColWidth: 'Вставить ширину столбца',pasteBesidesBorder: 'Вставить кроме стилей границы',+ pasteFormula: 'Вставить Формулу',insert: 'Вставить',insertRow: 'Вставить строку',insertRowBefore: 'Вставить строку выше',diff --git a/packages/sheets-ui/src/locale/sk-SK.ts b/packages/sheets-ui/src/locale/sk-SK.tsindex d14eca5d27..67d687b3b8 100644--- a/packages/sheets-ui/src/locale/sk-SK.ts+++ b/packages/sheets-ui/src/locale/sk-SK.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Prilepiť formát',pasteColWidth: 'Prilepiť šírku stĺpca',pasteBesidesBorder: 'Prilepiť bez štýlov ohraničenia',+ pasteFormula: 'Prilepiť vzorec',insert: 'Vložiť',insertRow: 'Vložiť riadok',insertRowBefore: 'Vložiť riadok pred',diff --git a/packages/sheets-ui/src/locale/vi-VN.ts b/packages/sheets-ui/src/locale/vi-VN.tsindex f94d6da46e..51c5e3361b 100644--- a/packages/sheets-ui/src/locale/vi-VN.ts+++ b/packages/sheets-ui/src/locale/vi-VN.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: 'Chỉ dán định dạng',pasteColWidth: 'Chỉ dán độ rộng cột',pasteBesidesBorder: 'Chỉ dán nội dung ngoài đường viền',+ pasteFormula: 'Chỉ dán công thức',insert: 'Chèn',insertRow: 'Chèn hàng',insertRowBefore: 'Chèn hàng phía trên',diff --git a/packages/sheets-ui/src/locale/zh-CN.ts b/packages/sheets-ui/src/locale/zh-CN.tsindex 011f11e2f9..55744b2a6d 100644--- a/packages/sheets-ui/src/locale/zh-CN.ts+++ b/packages/sheets-ui/src/locale/zh-CN.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: '仅粘贴格式',pasteColWidth: '仅粘贴列宽',pasteBesidesBorder: '仅粘贴边框以外内容',+ pasteFormula: '仅粘贴公式',insert: '插入',insertRow: '插入行',insertRowBefore: '在上方插入行',diff --git a/packages/sheets-ui/src/locale/zh-HK.ts b/packages/sheets-ui/src/locale/zh-HK.tsindex aa730a1f14..bfbb6e9c64 100644--- a/packages/sheets-ui/src/locale/zh-HK.ts+++ b/packages/sheets-ui/src/locale/zh-HK.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: '僅貼上格式',pasteColWidth: '僅貼上欄寬',pasteBesidesBorder: '僅貼上邊框以外內容',+ pasteFormula: '僅貼上公式',insert: '插入',insertRow: '插入列',insertRowBefore: '上方插入列',diff --git a/packages/sheets-ui/src/locale/zh-TW.ts b/packages/sheets-ui/src/locale/zh-TW.tsindex aa730a1f14..bfbb6e9c64 100644--- a/packages/sheets-ui/src/locale/zh-TW.ts+++ b/packages/sheets-ui/src/locale/zh-TW.ts@@ -164,6 +164,7 @@ const locale: typeof enUS = {pasteFormat: '僅貼上格式',pasteColWidth: '僅貼上欄寬',pasteBesidesBorder: '僅貼上邊框以外內容',+ pasteFormula: '僅貼上公式',insert: '插入',insertRow: '插入列',insertRowBefore: '上方插入列',diff --git a/packages/sheets-ui/src/views/clipboard/ClipboardPopupMenu.tsx b/packages/sheets-ui/src/views/clipboard/ClipboardPopupMenu.tsxindex 17bc755822..9158040196 100644--- a/packages/sheets-ui/src/views/clipboard/ClipboardPopupMenu.tsx+++ b/packages/sheets-ui/src/views/clipboard/ClipboardPopupMenu.tsx@@ -37,7 +37,7 @@ const SheetPasteOptions = [{ value: 'SPECIAL_PASTE_FORMAT', label: 'sheets-ui.rightClick.pasteFormat' },{ value: 'SPECIAL_PASTE_COL_WIDTH', label: 'sheets-ui.rightClick.pasteColWidth' },{ value: 'SPECIAL_PASTE_BESIDES_BORDER', label: 'sheets-ui.rightClick.pasteBesidesBorder' },- { value: 'SPECIAL_PASTE_FORMULA', label: 'formula.operation.pasteFormula' },+ { value: 'SPECIAL_PASTE_FORMULA', label: 'sheets-ui.rightClick.pasteFormula' },];const useMenuPosition = (range?: IDiscreteRange) => {