Skip to content

Conversation

@samuelstroschein
Copy link

@samuelstroschein samuelstroschein commented Dec 9, 2025

Adds i18n add ons for both router and start based on the official tanstack paraglide examples [router example] [start example].

Why

The goal is to provide TanStack users with an out of the box i18n solution with localized routing addressing:

Changes

  • Adds a Paraglide JS add on to the CLI

    • tree-shaken translations
    • fully type safe
    • localized routing via strategies
  • Adds an i18n example route that shoes how to switch the locale etc.

CleanShot 2025-12-09 at 15 20 34@2x

Tests

  • pnpm build
  • pnpm test

Comment on lines +13 to +14
"allowImportingTsExtensions": true,<% if (addOnEnabled.paraglide) { %>
"allowJs": true,<% } %>
Copy link
Author

Choose a reason for hiding this comment

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

Allow JS is needed to make TS treat JSDoc as types. (Paraglide JS compiles to JS with JSDoc)

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.

1 participant