Skip to content

Conversation

@tbleckert
Copy link
Contributor

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.

@tgreenx tgreenx added V-Minor Versioning: The change gives an update of minor in version. RC-Features Release category: Features. labels Dec 11, 2025
@tgreenx tgreenx added this to the v2025.2 milestone Dec 11, 2025
@matsduf
Copy link
Contributor

matsduf commented Dec 11, 2025

@tbleckert, can you look at the conflicts?

Copy link
Contributor

@matsduf matsduf left a 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.

@matsduf matsduf added V-Patch Versioning: The change gives an update of patch in version. RC-None Release category: Not to be included in Changes file. and removed V-Minor Versioning: The change gives an update of minor in version. RC-Features Release category: Features. labels Dec 12, 2025
Copy link
Contributor

@marc-vanderwal marc-vanderwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a local branch, I merged #520, #523 then #521 in this order before testing. When I serve the GUI from a subdirectory, the code for detecting the locale in use no longer works. After implementing a fix (see review suggestion), everything works fine again.

Copy link
Contributor

@marc-vanderwal marc-vanderwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@matsduf matsduf merged commit 7594300 into zonemaster:releases/ssg-standalone-components Dec 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RC-None Release category: Not to be included in Changes file. V-Patch Versioning: The change gives an update of patch in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants