Paraglide JS

Paraglide JS:现已纳入 TanStack 的 CI 测试

Samuel Stroschein
阅读需 1 分钟

TanStack CI/CD 流水线测试 Paraglide JS

Paraglide JS 现已加入 TanStack 的 CI/CD 流水线。TanStack Router 的每次提交都会针对 Paraglide 运行 e2e 测试。一旦出现问题,在发布前就能发现。

非常感谢 @juliomuhlbauer 编写了一流的 TanStack 示例,也感谢 @schiller-manuel 将 Paraglide JS 集成到 TanStack 的 CI/CD 流水线中(TanStack/router#6201)。

背景

TanStack Router v1.145+ 改动了中间件和重写层,导致与 Paraglide 搭配使用时出现重定向循环(#6089)。两个项目各自单独使用时都没有问题,只有组合使用时才会触发该问题。

快速开始

参考 TanStack 官方 i18n 示例,或阅读 Paraglide JS 文档。