The standard solutions for i18n introduce several problems:
- Bundle Optimization: All translation namespaces are imported on every page, regardless of whether they’re used or not.
- No Built-in Translation or Review Workflow: You're forced to rely on third-party localization platforms to manage multilingual content.
- Conflict Management: Since namespaces are often defined per page, merge conflicts between developers are common.
- Dead Content Accumulation: In large applications, unused translations are easy to overlook. Removing them blindly can lead to runtime errors, so they often end up bloating the codebase.
To address these limitations, we’ve adapted Intlayer to work seamlessly with Nuxt, rethinking the fundamentals of internationalization with a strong focus on scalability.
Here’s what our solution brings:
- Routing and Middleware Support Cleanly handle localized routes such as /, /fr, /es, /home, /fr/home, etc.
- Bundle Optimization Load only the translations needed by the current page or component.
- Per-Component Translation Define and maintain translations close to where they’re used, reducing the risk of conflicts and improving modularity.
- Free Visual Editor Allow content managers or translators to edit and preview translations without touching the code.
- CLI & CI/CD Translation Workflows Automate translation and review via the AI provider of your choice directly from your development pipeline.
- Markdown File Parsing Easily localize content-heavy pages like Privacy Policies or Documentation by parsing and managing Markdown translations.
Intlayer offers a modern, scalable alternative to traditional i18n setups in React, Next and now Vue/Nuxt, making your application more maintainable, efficient, and team-friendly as it grows.