solid-meta icon indicating copy to clipboard operation
solid-meta copied to clipboard

<html lang="en"> support

Open millette opened this issue 3 years ago • 3 comments

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...

millette avatar Jan 06 '22 22:01 millette

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

BierDav avatar Mar 19 '24 10:03 BierDav

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

jguddas avatar Mar 19 '24 12:03 jguddas

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

BierDav avatar Mar 19 '24 12:03 BierDav