yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
502 stars 38 forks source link

How to get current language in astro-i18next? #180

Open dev3h opened 1 year ago

dev3h commented 1 year ago

I am creating a blog with astro and I stuck with how to get current language in astro-i18next, anyone has solution?

timwehrle commented 12 months 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.

dev3h commented 12 months ago

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