-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(i18n): embed english in editor config (#158)
fix: improve mutli editor use
- Loading branch information
1 parent
3913edf
commit ba5bd1e
Showing
12 changed files
with
261 additions
and
287 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import mi18n from 'mi18n' | ||
import { isIE } from './common/helpers' | ||
import pkg from '../../package.json' | ||
import { FALLBACK_SVG_SPRITE } from './constants' | ||
import { enUS } from 'formeo-i18n' | ||
|
||
export const defaults = { | ||
get editor() { | ||
return { | ||
allowEdit: true, | ||
dataType: 'json', | ||
debug: false, | ||
sessionStorage: false, | ||
editorContainer: `.${pkg.name}-wrap`, | ||
external: {}, // assign external data to be used in conditions autolinker | ||
svgSprite: FALLBACK_SVG_SPRITE, // change to null | ||
iconFont: null, // 'glyphicons' || 'font-awesome' || 'fontello' | ||
config: {}, // stages, rows, columns, fields | ||
events: {}, | ||
actions: {}, | ||
controls: {}, | ||
polyfills: isIE(), // loads csspreloadrel | ||
i18n: { | ||
location: 'https://draggable.github.io/formeo/assets/lang/', | ||
locale: 'en-US', | ||
langs: ['en-US'], | ||
override: { | ||
'en-US': mi18n.processFile(enUS), | ||
}, | ||
}, | ||
} | ||
}, | ||
} |
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.