fix(slides-ui): add type import and annotation for locale files (#7015)

This commit is contained in:
白熱
2026-06-04 19:18:08 +08:00
committed by GitHub
parent 08996e2859
commit 2b15443097
4 changed files with 244 additions and 12 deletions
+61 -3
View File
@@ -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;
+61 -3
View File
@@ -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;
+61 -3
View File
@@ -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;
+61 -3
View File
@@ -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;