'How to configure Nuxt app i18n localization with a subdirectory base?

I'm building a blog on Nuxt that runs on a subdirectory (example.com/blog). Now I need to enable i18n module but I'm struggling with the URL structure.

How can I achive to run an "en" language under example.com/en/blog and "se" language under example.com/se/blog?

Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source