System Design · Middle · Question 41 of 75
How do you load translations in a multilingual SPA without bloating the bundle?
- ✓Correct answer: Dynamically load only the current language's dictionary (and per section)
- 2Include every language in the main bundle for instant switching
- 3Translate texts on the fly via an external API on every render
Explanation
Dictionaries for all languages easily take hundreds of kilobytes. Dynamic import by locale and namespace saves bandwidth. With Server Components, dictionaries don't end up in the client bundle at all.