🐛 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);
|
||||
props.updateGist(m, "settings", "measurements");
|
||||
setDisplay(getDisplay());
|
||||
props.setLanguage(props.userLanguage || "en");
|
||||
}, []);
|
||||
useEffect(() => {
|
||||
if (props.from) props.importGist(props.from);
|
||||
|
|
|
@ -11,7 +11,12 @@ const App = props => {
|
|||
let instance = new Pattern();
|
||||
let config = instance.config;
|
||||
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