2019-08-03 15:03:33 +02:00
|
|
|
import React from 'react'
|
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import Workbench from '@freesewing/components/Workbench'
|
|
|
|
import 'typeface-roboto-condensed'
|
|
|
|
import '@freesewing/css-theme'
|
2018-03-04 15:43:18 -05:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
import Pattern from 'pattern'
|
2018-03-04 15:43:18 -05:00
|
|
|
|
2020-04-26 11:18:51 +02:00
|
|
|
const App = (props) => {
|
2019-08-03 15:03:33 +02:00
|
|
|
let instance = new Pattern()
|
|
|
|
let config = instance.config
|
2019-10-13 15:10:51 +02:00
|
|
|
|
2020-04-26 11:18:51 +02:00
|
|
|
// You can use this to add transations
|
2020-08-02 19:17:06 +02:00
|
|
|
/*
|
2020-04-26 11:18:51 +02:00
|
|
|
let translations = {
|
|
|
|
JSON: 'JSON',
|
|
|
|
someOtherString: 'Some other string that needs translation'
|
|
|
|
}
|
2020-08-02 19:17:06 +02:00
|
|
|
*/
|
2020-04-26 11:18:51 +02:00
|
|
|
|
2019-05-03 14:21:23 +02:00
|
|
|
return (
|
2019-05-10 10:26:52 +02:00
|
|
|
<Workbench
|
|
|
|
freesewing={freesewing}
|
|
|
|
Pattern={Pattern}
|
|
|
|
config={config}
|
|
|
|
userLanguage="{{language}}"
|
2020-08-02 19:17:06 +02:00
|
|
|
//translations={translations}
|
2019-05-10 10:26:52 +02:00
|
|
|
/>
|
2019-08-03 15:03:33 +02:00
|
|
|
)
|
|
|
|
}
|
2019-03-02 11:37:17 -05:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
export default App
|