Open dev3h opened 1 year ago
I guess you just use this <html lang={i18next.language}>
. You can see the example here: Astro-i18next This will work with the SelectLanguage component.
thanks bro, before I think that how to generate a post write in markdown when I run command in terminal, but I see that it only generate multiply language for astro file, and I think that I write a post with a language and translate this to another language though
I am creating a blog with astro and I stuck with how to get current language in astro-i18next, anyone has solution?