Christian Kaisermann
Christian Kaisermann
As @brunnerh commented on https://github.com/kaisermann/svelte-i18n/issues/228, adding the canonical locales package seems to be unnecessary to fix the issue. Can any of you provide a minimal repro of the issue? Also,...
Released 3.7.3 which should help with both issues: https://github.com/kaisermann/svelte-i18n/pull/229
Hey @cupcakearmy 👋 > The issue is that right now this logic is not exposed and needs to be handled by the developer by iterating the available languages, creating subsets...
Got it, thanks! Changing the `$locale` store to an array would be a breaking change and I would say that users would usually expect it to return the current locale...
> Maybe one could add a currentLocale store? Up to you :) Thought about it too. Would still be a breaking change, though 😅 > Yes, would not enforce it...
I'm still exploring modifying the `$locale.set` approach. One limitation though is that to know what locale to use from an array, the consumer must have already registered/added messages to the...
I've released an alpha version `3.5.0-alpha.0` and [this is the PR](https://github.com/kaisermann/svelte-i18n/pull/204). I can't test this within the scope of Svelte right now though
Hey @frederikhors 👋, I don't actively maintain this package anymore but PRs are welcome 🙏
That will work well enough for most cases, yeah. You would only need to abstract it a bit in case you want to do the import lazily, like in an...
Struggling with this now. Would be awesome to support sourcemaps