i18nifty
GitHubHomeSandbox
  • 🏁Quick start
  • 🚄Asynchronous locale resources download
  • 📖API Reference
    • useLang
    • $lang
    • LocalizedString
    • useTranslation
    • getTranslation
  • ⬆️Migration guides
    • ⬆️v2 -> v3
Powered by GitBook
On this page

Was this helpful?

Asynchronous locale resources download

PreviousQuick startNextuseLang

Last updated 1 year ago

Was this helpful?

To minimize the bundle size, especially as your application scales, you may want to take advantage of code splitting.

For instance, if the user's default language is English, only the English text resources are initially downloaded. If the user switches to another language, such as French, the corresponding French text resources are then downloaded asynchronously.

Find 👉 👈 a live example of how you should setup your repo to enable code splitting.

🚄
here