Skip to content

fix(paraglide): add text-direction support#948

Open
azezsan wants to merge 2 commits intosveltejs:mainfrom
azezsan:paraglide-text-direction
Open

fix(paraglide): add text-direction support#948
azezsan wants to merge 2 commits intosveltejs:mainfrom
azezsan:paraglide-text-direction

Conversation

@azezsan
Copy link

@azezsan azezsan commented Feb 26, 2026

Closes #946

Summary

  • Adds dir attribute support to the paraglide addon so that <html> gets both lang and dir attributes set based on locale
  • Imports getTextDirection from $lib/paraglide/runtime and uses it in the server hook to replace %paraglide.dir% alongside %paraglide.lang%
  • Updates app.html to include the dir="%paraglide.dir%" placeholder on the <html> element

Test plan

  • pnpm vitest run --project cli — CLI snapshot tests pass with updated snapshots
  • pnpm vitest run --project addons -t paraglide — paraglide addon e2e test passes

Made with Cursor

@changeset-bot
Copy link

changeset-bot bot commented Feb 26, 2026

⚠️ No Changeset found

Latest commit: d594655

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@948
npx https://pkg.pr.new/sv@948
npx https://pkg.pr.new/@sveltejs/sv-utils@948

commit: 0072d99

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.

Paraglide missing text-direction attributes in app.html

1 participant