Open dargmuesli opened 12 months ago
That sounds good! :+1: nuxt i18n is a community based open-source project as well as Nuxt.
Let's discuss more if we need to work out any details about the specifications! of course, PR is welcome! :) /cc @BobbieGoede
Describe the feature
As discussed on Discord with @BobbieGoede and @harlan-zw, there is Harlan's amazing site-config project which aims to provide a central method for general site configuration so not every other module has to implement this itself.
nuxt-i18n
allows to specify abaseUrl
, which is exactly such a reimplementation. I propose to support reading thei18n.baseUrl
fromsite.url
when it is available, keeping the fallback toi18n.baseUrl
.Of course
i18n.baseUrl
could be marked as deprecated until the finalv8
release if everything works fine outsourcing thebaseUrl
tonuxt-site-config
to keep a separation of concerns.Additional information
Final checks