Skip to content

Commit

Permalink
chore: use english comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sylingd committed Jun 5, 2020
1 parent a8e73c9 commit 46859b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ class Editor extends React.Component<EditorProps, EditorState> {

private static plugins: Plugin[] = [];
/**
* 注册插件
* @param comp 插件
* @param config 其他配置
* Register plugin
* @param {any} comp Plugin component
* @param {any} config Other configs
*/
static use(comp: any, config: any = {}) {
Editor.plugins.push({ comp, config });
}
/**
* 设置所使用的语言文案
* Locales
*/
static addLocale = i18n.add.bind(i18n);
static useLocale = i18n.setCurrent.bind(i18n);
Expand Down

0 comments on commit 46859b4

Please sign in to comment.