We don't have a tutorial on this one yet, but I'd recommend checking out this codebase. It leans into Polylang/WP to manage URLs for translations. It's built using Faust, so this is a template file, but could be applied to any other framework in the same way: github.com/JEverhart383/faust-intl/blob/main/wp-templates/single.js
I attempted to run the code "const { locale: activeLocale, locales, asPath } = useRouter();" but the result is undefined. I believe the issue may be due to Next.js13. Can you please assist me? Thank you.
@@WPEngineBuilders Ooh oui ce serait génial !! Je dois refaire un site totalement multilingue avec des contenus différents suivant les pays et j'ai beaucoup de mal à adapter votre vidéo à mon projet :/
What questions do ya'll have? about Multilingual Headless WP? Let us know!
Thanks!
What if I want to use a translated url slug?
For example for English will be /home and for Spanish /inicio
What's the point? You don't reply to doubts or queries, all you need is appreciation
Good Work thanks
Keep up the good work! I cant wait for more. :)
Will do! Thanks for watching!
great video, just one question, how do you handle SEO for multilingual?
What about SEO?😊
great video!
Thanks!
In your GitHub code, I didn't find any i18next dependency on your package.json
It works, but when switching languages in a single post, the url remains the same. How to have the proper permalink in the url ?
We don't have a tutorial on this one yet, but I'd recommend checking out this codebase. It leans into Polylang/WP to manage URLs for translations. It's built using Faust, so this is a template file, but could be applied to any other framework in the same way: github.com/JEverhart383/faust-intl/blob/main/wp-templates/single.js
@@WPEngineBuilders Awesome ! Thanks a lot !
@@tdiezel Sure thing, let us know if you have Q's
Are there other plugins other than Polylang? Seems ACF pro only works with Polylang pro and it is so expensive. How about WPML?
WPML Allen is a good choice as well! Correct me if I am wrong but WPML may not have a free version.
I attempted to run the code "const { locale: activeLocale, locales, asPath } = useRouter();" but the result is undefined. I believe the issue may be due to Next.js13. Can you please assist me? Thank you.
Is this still relevant with app router?
It is not, I will have to make an update.
@@WPEngineBuilders Ooh oui ce serait génial !! Je dois refaire un site totalement multilingue avec des contenus différents suivant les pays et j'ai beaucoup de mal à adapter votre vidéo à mon projet :/