-
Notifications
You must be signed in to change notification settings - Fork 26
Replace paraglide #521
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
Replace paraglide #521
Conversation
|
@tbleckert, can you look at the conflicts? |
aa48a12 to
48fd347
Compare
matsduf
left a comment
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.
I see no issues. Translations work as they should when testing.
48fd347 to
4e22629
Compare
marc-vanderwal
left a comment
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.
Co-authored-by: Marc van der Wal <[email protected]>
0f90f73 to
bc332a8
Compare
marc-vanderwal
left a comment
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.
Looks good. Thanks!
7594300
into
zonemaster:releases/ssg-standalone-components
Purpose
Replace the current outdated i18n solution Paraglide with a custom built Vite plugin. Reduces dependencies and easy to maintain.
Context
Paraglide released a new major version that dropped support for SSG in Astro. While possible to make it work with some digging and manual work, we can see this as an opportunity to reduce some dependencies in favour of a simpler custom built solution. Paraglide was also indirectly affected by the Shai-Hulud worm as it had posthog as a dependency.
Changes
Introduces a custom built Vite plugin instead of Paraglide. Translation files stays intact except for the removal of the schema definition. Some references has been replaced as well.
Also upgraded Astro and other dependencies to remove all remaining vulnerabilities and have all packages up to date.
How to test this PR
Just some general testing to make sure translations still work.