v1.0.6 | published npm packages

صغيرة، كتبته i18n يمكنك يؤكد

CLI workflows | TypeScript safety | Tested adapters | Zero dependencies | MIT

bash
npm install @pico-intl-dev/core @pico-intl-dev/astro
4.2 KBوقت تشغيل gzip
v1مستقر __API__
en/arلغة حية

A tested translation contract across framework adapters

سمات

كل ما تحتاجه. لا شيء لا تفعله.

pico-intl keeps the runtime small while the CLI and adapters carry the workflow advantage.

1

حجم الحزمة المقاسة

تقيس نقطة دخول وقت التشغيل الحالية حوالي 4.2 كيلو بايت gzip في معيار الريبو؛ يتم الإبلاغ عن التوزيع الكامل بشكل منفصل.

2

Tested adapter contract

Core, React, Next, Vue, Svelte, Solid, Astro, and Angular share one behavior contract for translation, fallback, locale, and direction.

3

قفل صفر

الهجرة ثنائية الاتجاه. الاستيراد من __i18next__، __react-intl__، __vue-i18n__، Fluent، أو PO. تصدير لهم جميعا. ترجماتك دائما.

4

التبعيات صفر

تم تصميمه بالكامل على النظام الأساسي الأصلي __API__s — __Intl.PluralRules__، __Intl.Locale__. لا شيء آخر. لا يوجد خطر انتقالي، على الإطلاق.

5

Workflow-first CLI

init, validate, doctor, translate, extract, types, CI gates, stats, import/export, and review files for provider drafts.

6

29 نانو ثانية لكل عملية بحث

قياس. __t()__ يبلغ متوسط ​​البحث البسيط 29 نانو ثانية على __Node.js__ __v24__. أرقام حقيقية وليست تسويقية قم بتشغيل __npm__ قم بتشغيل __bench:ci__ للتحقق.

بداية سريعة

تصل في 60 ثانية

قم بتثبيت وإنشاء ملفاتك المحلية، وقم بتوصيل المثيل. لقد انتهيت. لا توجد مكونات إضافية، ولا امتداد للتكوين، ولا مفاجآت في وقت التشغيل.

1 ثَبَّتَ
2 إنشاء ملفات محلية
3 قم بإنشاء المثيل
4 يترجم
ts
import { getAstroT } from '@pico-intl-dev/astro';
import en from './locales/en.json';
import es from './locales/es.json';

const t = getAstroT(Astro.currentLocale ?? 'en', { en, es }, 'en');

<h1>{t('hero.title')}</h1>

على استعداد للشحن؟

أضف __pico-intl__ إلى أي مشروع في ثوانٍ. لا حسابات، لا القياس عن بعد، لا قفل.