-
-
Notifications
You must be signed in to change notification settings - Fork 36
chore: improve paraglide #104
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
Conversation
🦋 Changeset detectedLatest commit: d88f21b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
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.
it would be nice if the injected template code wasn't always appended on every run, though I'm not sure if there's an elegant way to prevent that atm so what we have now will have to do
we could add all of our code inside a div with a special class name and check for that. Although im not sure it's worth the effort.
yea i don't think it is. it only applies to the demo, so I think it's fine in this case |
Added a changeset for the sake of trying to get a release to work! |
there were improvements I wanted to apply before it was merged
things to fix:
onclick
shouldn't be wrapped in a string<button onclick="{() => switchToLanguage('en')}">en</button>
<ParaglideJS>
component was poorly wrappedlang="ts"
is stripped from the<script>
tagswitchToLanguage
isn't readded on subsequent runscreatePrinter
return a tuple instead of an object (nicer that we dont have to name the printers twice)additional notes: