Đặt câu hỏi và nhận tóm tắt tài liệu bằng cách tham chiếu trang này và nhà cung cấp AI bạn chọn
Lịch sử phiên bản
- "Init history"v9.0.013/6/2026
Nội dung của trang này đã được dịch bằng AI.
Xem phiên bản mới nhất của nội dung gốc bằng tiếng AnhNếu bạn có ý tưởng để cải thiện tài liệu này, vui lòng đóng góp bằng cách gửi pull request trên GitHub.
Liên kết GitHub tới tài liệuSao chép Markdown của tài liệu vào bộ nhớ tạm
Intlayer Compat Adapters
Migrating a large application to a new internationalization library can be daunting. To ease this transition, Intlayer provides compat adapters for the most popular i18n libraries in the ecosystem.
These adapter packages expose the exact same public API as your existing i18n libraries, but delegate all translation work to Intlayer at runtime.
How it works
When you use a compat adapter, you do not need to rewrite your application's imports or change how you use your translation hooks and components. Instead, Intlayer's bundler plugins automatically alias your existing imports to the Intlayer compat packages.
For example, a developer replaces import { useTranslation } from 'react-i18next' with import { useTranslation } from '@intlayer/react-i18next' (done automatically via the bundler plugin), and the app keeps working with translations now served from Intlayer dictionaries. Keys are also typed against your Intlayer dictionaries!
Available Compat Adapters
Choose your existing library below to see how to migrate seamlessly: