Skip to content

Feature: Example With Paraglide JS#1915

Closed
italoalmeida0 wants to merge 5 commits intosolidjs:mainfrom
italoalmeida0:main
Closed

Feature: Example With Paraglide JS#1915
italoalmeida0 wants to merge 5 commits intosolidjs:mainfrom
italoalmeida0:main

Conversation

@italoalmeida0
Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

  • Addresses an existing open issue: fixes #___ (if applicable)
  • Tests for the changes have been added (for bug fixes / features)

What is the current behavior?

Currently, there is no official example in the SolidStart repository demonstrating how to implement internationalization (i18n) with Paraglide JS. Developers need to figure out the integration on their own, which can be time-consuming and error-prone.

What is the new behavior?

This PR adds a new example to the SolidStart examples directory that demonstrates:

  • ✅ Complete integration of Paraglide JS with SolidStart
  • Full SSR support with server-side language detection
  • ✅ URL-based language routing (e.g., /en/, /pt/, /de/)
  • ✅ Automatic browser language detection
  • ✅ Type-safe message system with interpolation
  • ✅ Language switcher component
  • ✅ Server-side language detection via middleware
  • ✅ Proper HTML lang attribute updates (both server and client)
  • ✅ SEO-friendly implementation with SSR
  • ✅ Modern, responsive UI with dark mode support
  • ✅ Organized code structure following best practices

The example includes:

  • Core language system (lang/core.ts)
  • SSR-friendly language middleware
  • Language-aware routing layout
  • Localized pages (Home, About, 404)
  • Professional CSS with animations
  • Message files structure for easy translation

Other information

This example provides a production-ready foundation for building multilingual SolidStart applications. It's fully SSR-compatible, ensuring fast initial page loads and excellent SEO performance. The implementation follows the official Paraglide JS patterns while being fully integrated with SolidStart's routing and SSR systems.

The implementation is lightweight, type-safe, and provides excellent developer experience with auto-completion for all translation keys.

Perfect for developers who need to build international applications with SolidStart! 🌍

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 5, 2025

⚠️ No Changeset found

Latest commit: e099bc9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 5, 2025

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit e099bc9
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/68b809c96ec011000834f690
😎 Deploy Preview https://deploy-preview-1915--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -0,0 +1 @@
ilUDEMg7qcdswMDx3J No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is this project id?

Copy link
Copy Markdown
Author

@italoalmeida0 italoalmeida0 Sep 3, 2025

Choose a reason for hiding this comment

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

This is auto-generated, probably by the library to identify the project in their tool.

@atilafassina
Copy link
Copy Markdown
Member

Hello.

First of all, sorry it took us so long to look at this.

Part of this is the issue is that we've been looking at how to better server the community with our templates and ongoing repo work. Because of that we have decided to move templates to [solidjs/templates](https://github.com/solidjs/templates).

You're much welcome to recreate this template there, and read more on the new architecture in the discussion #1984

You're feedback is definitely much appreciated.

💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants