solidjs / solid-meta

Write meta tags to the document head
127 stars 16 forks source link

<html lang="en"> support #6

Open millette opened 2 years ago

millette commented 2 years ago

I'd like to specify the page language (SSR or not) but it looks like <html lang...> can only be hardcoded in index.html.

I had a look at https://github.com/solidjs/solid-site/ and I don't see support for that feature either.

Support would be greatly appreciated but perhaps it should reside in another package, I'm not sure...

BierDav commented 5 months ago

We definitely need support for a way to change the lang of the html reactively

jguddas commented 5 months ago

You can do this, but it's not the most ergonomic. https://github.com/solidjs/solid-site/pull/292/files

BierDav commented 5 months ago

No that's not exactly what i need, because it doesn't support ssr. On page load the current lang will be fixed to a specific value