Skip to content

Commit

Permalink
refactor: merge config file (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored Oct 22, 2024
1 parent 403efdc commit 8b5815f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { isNullOrUndefined } from './config/editor.utils'
import { EN_US } from './config/i18n/en-us'

import { ZH_CN } from './config/i18n/zh-cn'
import { isNullOrUndefined } from './editor.utils'
import { LANG_CONF } from './editor.config'
import {
ALIGN_CENTER_ICON,
ALIGN_LEFT_ICON,
Expand Down Expand Up @@ -32,10 +30,9 @@ import {
TRIANGLE_DOWN_ICON,
UNDERLINE_ICON,
UNDO_ICON,
} from './config/icons.config'
} from './icons.config'

const localLang = localStorage.getItem('lang') || 'zh-cn'
export const LANG_CONF = localLang === 'en-us' ? EN_US : ZH_CN
export * from './editor.config'

export const ICONS_CONFIG: { [key: string]: any } = {
'undo': UNDO_ICON,
Expand Down
5 changes: 2 additions & 3 deletions packages/fluent-editor/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// 后面合并两个配置
// export * from './config/editor.config'
// export * from './config'
import FluentEditor from './fluent-editor'

export * from './config'

export default FluentEditor

0 comments on commit 8b5815f

Please sign in to comment.