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(slides-ui): add type import and annotation for locale files (#7015)
白熱2b1544309773
diff --git a/packages/slides-ui/src/locale/ru-RU.ts b/packages/slides-ui/src/locale/ru-RU.tsindex 6e8cfdea76..0a5cd1ff90 100644--- a/packages/slides-ui/src/locale/ru-RU.ts+++ b/packages/slides-ui/src/locale/ru-RU.ts@@ -14,9 +14,67 @@* limitations under the License.*/-import type zhCN from './zh-CN';-import enUS from './en-US';+import type enUS from './en-US';-const locale: typeof zhCN = enUS;+const locale: typeof enUS = {+ 'slides-ui': {+ append: 'Append Slide',++ text: {+ insert: {+ title: 'Insert Text',+ },+ },++ shape: {+ insert: {+ title: 'Insert Shape',+ rectangle: 'Insert Rectangle',+ ellipse: 'Insert Ellipse',+ },+ },++ image: {+ insert: {+ title: 'Insert Image',+ float: 'Insert Float Image',+ },+ },++ popup: {+ edit: 'Edit',+ delete: 'Delete',+ },++ sidebar: {+ text: 'Edit Text',+ shape: 'Edit Shape',+ image: 'Edit Image',+ },++ 'image-panel': {+ arrange: {+ title: 'Arrange',+ forward: 'Bring Forward',+ backward: 'Send Backward',+ front: 'Bring to Front',+ back: 'Send to Back',+ },+ transform: {+ title: 'Transform',+ width: 'Width (px)',+ height: 'Height (px)',+ x: 'X (px)',+ y: 'Y (px)',+ rotate: 'Rotate (°)',+ },+ },+ panel: {+ fill: {+ title: 'Fill Color',+ },+ },+ },+};export default locale;diff --git a/packages/slides-ui/src/locale/vi-VN.ts b/packages/slides-ui/src/locale/vi-VN.tsindex 6e8cfdea76..0a5cd1ff90 100644--- a/packages/slides-ui/src/locale/vi-VN.ts+++ b/packages/slides-ui/src/locale/vi-VN.ts@@ -14,9 +14,67 @@* limitations under the License.*/-import type zhCN from './zh-CN';-import enUS from './en-US';+import type enUS from './en-US';-const locale: typeof zhCN = enUS;+const locale: typeof enUS = {+ 'slides-ui': {+ append: 'Append Slide',++ text: {+ insert: {+ title: 'Insert Text',+ },+ },++ shape: {+ insert: {+ title: 'Insert Shape',+ rectangle: 'Insert Rectangle',+ ellipse: 'Insert Ellipse',+ },+ },++ image: {+ insert: {+ title: 'Insert Image',+ float: 'Insert Float Image',+ },+ },++ popup: {+ edit: 'Edit',+ delete: 'Delete',+ },++ sidebar: {+ text: 'Edit Text',+ shape: 'Edit Shape',+ image: 'Edit Image',+ },++ 'image-panel': {+ arrange: {+ title: 'Arrange',+ forward: 'Bring Forward',+ backward: 'Send Backward',+ front: 'Bring to Front',+ back: 'Send to Back',+ },+ transform: {+ title: 'Transform',+ width: 'Width (px)',+ height: 'Height (px)',+ x: 'X (px)',+ y: 'Y (px)',+ rotate: 'Rotate (°)',+ },+ },+ panel: {+ fill: {+ title: 'Fill Color',+ },+ },+ },+};export default locale;diff --git a/packages/slides-ui/src/locale/zh-HK.ts b/packages/slides-ui/src/locale/zh-HK.tsindex 6e8cfdea76..0a5cd1ff90 100644--- a/packages/slides-ui/src/locale/zh-HK.ts+++ b/packages/slides-ui/src/locale/zh-HK.ts@@ -14,9 +14,67 @@* limitations under the License.*/-import type zhCN from './zh-CN';-import enUS from './en-US';+import type enUS from './en-US';-const locale: typeof zhCN = enUS;+const locale: typeof enUS = {+ 'slides-ui': {+ append: 'Append Slide',++ text: {+ insert: {+ title: 'Insert Text',+ },+ },++ shape: {+ insert: {+ title: 'Insert Shape',+ rectangle: 'Insert Rectangle',+ ellipse: 'Insert Ellipse',+ },+ },++ image: {+ insert: {+ title: 'Insert Image',+ float: 'Insert Float Image',+ },+ },++ popup: {+ edit: 'Edit',+ delete: 'Delete',+ },++ sidebar: {+ text: 'Edit Text',+ shape: 'Edit Shape',+ image: 'Edit Image',+ },++ 'image-panel': {+ arrange: {+ title: 'Arrange',+ forward: 'Bring Forward',+ backward: 'Send Backward',+ front: 'Bring to Front',+ back: 'Send to Back',+ },+ transform: {+ title: 'Transform',+ width: 'Width (px)',+ height: 'Height (px)',+ x: 'X (px)',+ y: 'Y (px)',+ rotate: 'Rotate (°)',+ },+ },+ panel: {+ fill: {+ title: 'Fill Color',+ },+ },+ },+};export default locale;diff --git a/packages/slides-ui/src/locale/zh-TW.ts b/packages/slides-ui/src/locale/zh-TW.tsindex 6e8cfdea76..0a5cd1ff90 100644--- a/packages/slides-ui/src/locale/zh-TW.ts+++ b/packages/slides-ui/src/locale/zh-TW.ts@@ -14,9 +14,67 @@* limitations under the License.*/-import type zhCN from './zh-CN';-import enUS from './en-US';+import type enUS from './en-US';-const locale: typeof zhCN = enUS;+const locale: typeof enUS = {+ 'slides-ui': {+ append: 'Append Slide',++ text: {+ insert: {+ title: 'Insert Text',+ },+ },++ shape: {+ insert: {+ title: 'Insert Shape',+ rectangle: 'Insert Rectangle',+ ellipse: 'Insert Ellipse',+ },+ },++ image: {+ insert: {+ title: 'Insert Image',+ float: 'Insert Float Image',+ },+ },++ popup: {+ edit: 'Edit',+ delete: 'Delete',+ },++ sidebar: {+ text: 'Edit Text',+ shape: 'Edit Shape',+ image: 'Edit Image',+ },++ 'image-panel': {+ arrange: {+ title: 'Arrange',+ forward: 'Bring Forward',+ backward: 'Send Backward',+ front: 'Bring to Front',+ back: 'Send to Back',+ },+ transform: {+ title: 'Transform',+ width: 'Width (px)',+ height: 'Height (px)',+ x: 'X (px)',+ y: 'Y (px)',+ rotate: 'Rotate (°)',+ },+ },+ panel: {+ fill: {+ title: 'Fill Color',+ },+ },+ },+};export default locale;