استخدم مساعدك المفضل للملخص واستخدم هذه الصفحة والموفر AI الذي تريده
تاريخ الإصدارات
- "Init history"v9.0.0١٣/٦/٢٠٢٦
تمت ترجمة محتوى هذه الصفحة باستخدام الذكاء الاصطناعي.
اعرض آخر نسخة المحتوى الأصلي باللغة الإنكليزيةإذا كان لديك فكرة لتحسين هذه الوثيقة، فلا تتردد في المساهمة من خلال تقديم طلب سحب على GitHub.
رابط GitHub للتوثيقنسخ الـ Markdown من المستند إلى الحافظة
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: