Skip to content

Sveltekit-i18n download all the language.json file #141

Discussion options

You must be logged in to vote

Hi @VisionaryAppDev, thanks for your question.
The load mechanism is quite simple:

  1. Your config can include translations object, serialized by locale, which is loaded instantly.
  2. loaders array, defining which translation definitions (jsons) should be loaded for which routes and locales.
    – when no routes are defined within a loader, then it's loaded together with the first page.

I think this example might help you to understand loaders better.. (see the loaders config here)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VisionaryAppDev
Comment options

Answer selected by VisionaryAppDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants