nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.75k stars 483 forks source link

refactor: separate switchLocalePath SSR feature into plugin #3021

Closed BobbieGoede closed 4 months ago

BobbieGoede commented 4 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

I feel like there is a lot going on in the i18n plugin, after looking at Nuxt's source code I noticed some features are separated into plugins, so I tried to do the same here ๐Ÿ˜…

I also tried another way of reorganizing the plugin logic here https://github.com/nuxt-modules/i18n/pull/3017, but that's a bit more involved.

If refactors like these actually make things harder to read, do let me know, I'm too familiar with the codebase now to notice if that is the case ๐Ÿ˜‚

๐Ÿ“ Checklist