🐛 Made sure the CFP selected language is loaded in workbench as default
This commit is contained in:
parent
1907c193fb
commit
1d7fdaa7e2
2 changed files with 7 additions and 1 deletions
|
@ -29,6 +29,7 @@ const Workbench = props => {
|
||||||
setMeasurements(m);
|
setMeasurements(m);
|
||||||
props.updateGist(m, "settings", "measurements");
|
props.updateGist(m, "settings", "measurements");
|
||||||
setDisplay(getDisplay());
|
setDisplay(getDisplay());
|
||||||
|
props.setLanguage(props.userLanguage || "en");
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (props.from) props.importGist(props.from);
|
if (props.from) props.importGist(props.from);
|
||||||
|
|
|
@ -11,7 +11,12 @@ const App = props => {
|
||||||
let instance = new Pattern();
|
let instance = new Pattern();
|
||||||
let config = instance.config;
|
let config = instance.config;
|
||||||
return (
|
return (
|
||||||
<Workbench freesewing={freesewing} Pattern={Pattern} config={config} />
|
<Workbench
|
||||||
|
freesewing={freesewing}
|
||||||
|
Pattern={Pattern}
|
||||||
|
config={config}
|
||||||
|
userLanguage="{{language}}"
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue