i18n icon indicating copy to clipboard operation
i18n copied to clipboard

feat: support `nuxt-site-config`

Open dargmuesli opened this issue 2 years ago • 1 comments

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 a baseUrl, which is exactly such a reimplementation. I propose to support reading the i18n.baseUrl from site.url when it is available, keeping the fallback to i18n.baseUrl.

Of course i18n.baseUrl could be marked as deprecated until the final v8 release if everything works fine outsourcing the baseUrl to nuxt-site-config to keep a separation of concerns.

Additional information

  • [x] Would you be willing to help implement this feature?
  • [ ] Could this feature be implemented as a module?

Final checks

dargmuesli avatar Oct 03 '23 18:10 dargmuesli

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

kazupon avatar Oct 04 '23 00:10 kazupon

Is there any progression for this? Or at least a workaround until this feature is implemented.

RobArkesteijn avatar Jul 03 '25 07:07 RobArkesteijn

Nuxt Site Config integrates with Nuxt I18n which I think makes more sense as Nuxt I18n has way more ways to configure things already. Was there a specific issue you were trying to solve?

I'm going to close this for now as I don't think there's anything to action but happy to troubleshoot with you

harlan-zw avatar Jul 03 '25 13:07 harlan-zw