-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor/extract openscd dependencies #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/extract openscd dependencies #5
Conversation
…tract-openscd-dependencies Refactor/extract openscd dependencies
…tract-openscd-dependencies feature: add translations for editor-plugins
…tract-openscd-dependencies feature: add translations for editor-plugins
| const language = localStorage.getItem('language') || 'en'; | ||
| console.log("SETTING LANGUAGE TO", language); | ||
| use(language); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how plugins know which language to use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. It's pretty much how OpenSCD does it when loading plugins internally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of the files are not needed, you just copied in the whole thing, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes i would need to refactor this and strip the imports i don't need 👍.
| }, | ||
| build: { | ||
| lib: { | ||
| entry: path.resolve(__dirname, 'apps/plugins/src/editors/Substation.ts'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this is not relevant as we build the plugins with the script right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. This is just in the application for testing purposes right now. So i can quickly build a single plugin.
Will be removed when final version is ready.
…tract-openscd-dependencies Refactor/extract openscd dependencies
…tract-openscd-dependencies refactor: update gh workflow
…tract-openscd-dependencies refactor: update gh workflow
…tract-openscd-dependencies fix: removed unnecessary renaming of wizard textfield
…tract-openscd-dependencies fix: remove snowpack
No description provided.