-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44097b0
commit c11b244
Showing
86 changed files
with
675 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/** | ||
* @description i18n en | ||
* @author wangfupeng | ||
*/ | ||
|
||
export default { | ||
// 通用的词 | ||
common: { | ||
ok: 'OK', | ||
}, | ||
|
||
blockQuote: { | ||
title: 'Quote', | ||
}, | ||
codeBlock: { | ||
title: 'Code block', | ||
}, | ||
color: { | ||
color: 'Font color', | ||
bgColor: 'Back color', | ||
default: 'Default color', | ||
clear: 'Clear back color', | ||
}, | ||
divider: { | ||
title: 'Divider', | ||
}, | ||
emotion: { | ||
title: 'Emotion', | ||
}, | ||
fontSize: { | ||
title: 'Font size', | ||
default: 'Default', | ||
}, | ||
fontFamily: { | ||
title: 'Font family', | ||
default: 'Default', | ||
}, | ||
fullScreen: { | ||
title: 'Full screen', | ||
}, | ||
header: { | ||
title: 'Header', | ||
text: 'Text', | ||
}, | ||
image: { | ||
netImage: 'Net image', | ||
delete: 'Delete image', | ||
edit: 'Edit image', | ||
viewLink: 'View link', | ||
src: 'Image src', | ||
desc: 'Description', | ||
link: 'Image link', | ||
}, | ||
indent: { | ||
decrease: 'Decrease', | ||
increase: 'Increase', | ||
}, | ||
justify: { | ||
left: 'Left', | ||
right: 'Right', | ||
center: 'Center', | ||
justify: 'Justify', | ||
}, | ||
lineHeight: { | ||
title: 'Line height', | ||
default: 'Default', | ||
}, | ||
link: { | ||
insert: 'Insert link', | ||
text: 'Link text', | ||
url: 'Link source', | ||
unLink: 'Unlink', | ||
update: 'Update link', | ||
view: 'View link', | ||
}, | ||
textStyle: { | ||
bold: 'Bold', | ||
clear: 'Clear styles', | ||
code: 'Inline code', | ||
italic: 'Italic', | ||
sub: 'Sub', | ||
sup: 'Sup', | ||
through: 'Through', | ||
underline: 'Underline', | ||
}, | ||
undo: { | ||
undo: 'undo', | ||
redo: 'Redo', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @description i18n entry | ||
* @author wangfupeng | ||
*/ | ||
|
||
import { i18nAddResources } from '@wangeditor/core' | ||
import enResources from './en' | ||
import zhResources from './zh-CN' | ||
|
||
i18nAddResources('en', enResources) | ||
i18nAddResources('zh-CN', zhResources) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/** | ||
* @description i18n zh-CN | ||
* @author wangfupeng | ||
*/ | ||
|
||
export default { | ||
// 通用的词 | ||
common: { | ||
ok: '确定', | ||
}, | ||
|
||
blockQuote: { | ||
title: '引用', | ||
}, | ||
codeBlock: { | ||
title: '代码块', | ||
}, | ||
color: { | ||
color: '文字颜色', | ||
bgColor: '背景色', | ||
default: '默认颜色', | ||
clear: '清除背景色', | ||
}, | ||
divider: { | ||
title: '分割线', | ||
}, | ||
emotion: { | ||
title: '表情', | ||
}, | ||
fontSize: { | ||
title: '字号', | ||
default: '默认字号', | ||
}, | ||
fontFamily: { | ||
title: '字体', | ||
default: '默认字体', | ||
}, | ||
fullScreen: { | ||
title: '全屏', | ||
}, | ||
header: { | ||
title: '标题', | ||
text: '正文', | ||
}, | ||
image: { | ||
netImage: '网络图片', | ||
delete: '删除图片', | ||
edit: '编辑图片', | ||
viewLink: '查看链接', | ||
src: '图片地址', | ||
desc: '图片描述', | ||
link: '图片链接', | ||
}, | ||
indent: { | ||
decrease: '减少缩进', | ||
increase: '增加缩进', | ||
}, | ||
justify: { | ||
left: '左对齐', | ||
right: '右对齐', | ||
center: '居中对齐', | ||
justify: '两端对齐', | ||
}, | ||
lineHeight: { | ||
title: '行高', | ||
default: '默认行高', | ||
}, | ||
link: { | ||
insert: '插入链接', | ||
text: '链接文本', | ||
url: '链接地址', | ||
unLink: '取消链接', | ||
update: '修改链接', | ||
view: '查看链接', | ||
}, | ||
textStyle: { | ||
bold: '粗体', | ||
clear: '清除格式', | ||
code: '行内代码', | ||
italic: '斜体', | ||
sub: '上标', | ||
sup: '下标', | ||
through: '删除线', | ||
underline: '下划线', | ||
}, | ||
undo: { | ||
undo: '撤销', | ||
redo: '重做', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.