Language code and i18n in WordPress

I have created a .po file to translate the custom template text. But this isn’t what I want to achieve. I only want WordPress to translate the texts when it’s on the matching language code .com/en/... Now it translates everything on the same URL which means I can only see one language and for example not visit the Dutch version by going to .com/nl/..

Is it possible to add language code in the URL which translates to matching language?

Hopefully this makes sense, if not I’ll explain better.

Read more here: Language code and i18n in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *