#Having problems with SEO-Friendly i18n in Astro

3 messages · Page 1 of 1 (latest)

stiff hound
#

I'm absolutely loving working with Astro and I've hit an interesting challenge with internationalization (i18n) that I'm hoping you can help with.

Here’s the gist: I'm trying to keep my website SEO-friendly with localized page names (like 'à propos' instead of 'about' for French). But, it seems Astro’s i18n wants page names to be identical across languages. This is where I'm scratching my head.

I'm totally open to pairing Astro with another library or tool to make this work. The key point is that my site is statically generated, so the solution needs to fit within that framework. If anyone’s cracked the code on this or has any pointers, I’d be super grateful!

Can’t wait to hear your thoughts and thanks a bunch in advance!

#

@buoyant wind Any thoughts on that? Really appreciated 🙏🏼

buoyant wind
#

Hi @stiff hound! The core i18n feature (ie. astro:i18n) is still in its early days and does not support this use-case yet. I'd recommend you look at some community alternatives for now: https://astro.build/integrations/?search=i18n.

Note that astro-i18next looks unmaintained. I've used it a few times and it's not in its best shape. I haven't used astro-i18n-aut yet but it looks pretty good though

Astro

Astro builds fast content sites, powerful web applications, dynamic server APIs, and everything in-between.