Internationalization
@modern-js/plugin-i18n 是 Modern.js 的国际化插件,基于
i18next 和 react-i18next 构建,为 Modern.js 应用提供完整的国际化解决方案。
Core Features
- 🌍 Multi-language Support: Easily manage translation resources for multiple languages
- 🔍 Smart Language Detection: Supports automatic language detection from URL paths, cookies, request headers, and more
- 📦 Flexible Resource Loading: Supports three resource loading methods: HTTP, file system, and custom SDK
- 🛣️ Route Integration: Deeply integrated with Modern.js routing system, supports language path prefixes
- ⚡ SSR Support: Full support for server-side rendering (SSR) scenarios
- 🎯 TypeScript Support: Complete TypeScript type definitions
Use Cases
- Web applications that need to support multiple languages
- Multi-language routing that is SEO-friendly
- Multi-language applications that require server-side rendering
- Applications that need to dynamically load translation resources from external services
Documentation Navigation