diff --git a/packages/basic-modules/src/locale/zh-CN.ts b/packages/basic-modules/src/locale/zh-CN.ts index cccc6187b..837785b16 100644 --- a/packages/basic-modules/src/locale/zh-CN.ts +++ b/packages/basic-modules/src/locale/zh-CN.ts @@ -43,6 +43,11 @@ export default { header: { title: '标题', text: '正文', + header1: 'H1', + header2: 'H2', + header3: 'H3', + header4: 'H4', + header5: 'H5', }, image: { netImage: '网络图片', diff --git a/packages/basic-modules/src/modules/header/menu/HeaderSelectMenu.ts b/packages/basic-modules/src/modules/header/menu/HeaderSelectMenu.ts index a79031d15..3985016b5 100644 --- a/packages/basic-modules/src/modules/header/menu/HeaderSelectMenu.ts +++ b/packages/basic-modules/src/modules/header/menu/HeaderSelectMenu.ts @@ -19,27 +19,27 @@ class HeaderSelectMenu implements ISelectMenu { // value 和 elemNode.type 对应 { value: 'header1', - text: 'H1', + text: t('header.header1'), styleForRenderMenuList: { 'font-size': '32px', 'font-weight': 'bold' }, }, { value: 'header2', - text: 'H2', + text: t('header.header2'), styleForRenderMenuList: { 'font-size': '24px', 'font-weight': 'bold' }, }, { value: 'header3', - text: 'H3', + text: t('header.header3'), styleForRenderMenuList: { 'font-size': '18px', 'font-weight': 'bold' }, }, { value: 'header4', - text: 'H4', + text: t('header.header4'), styleForRenderMenuList: { 'font-size': '16px', 'font-weight': 'bold' }, }, { value: 'header5', - text: 'H5', + text: t('header.header5'), styleForRenderMenuList: { 'font-size': '13px', 'font-weight': 'bold' }, }, { value: 'paragraph', text: t('header.text') },