Pengonversi Format Pesan i18n
Konversi string terjemahan dan kamus dengan mulus antara ICU MessageFormat, i18next, Vue I18n, Gettext PO, dan Intlayer.
Muat Contoh
icu
ICU Plural with Exact Matchicu
ICU Select (Gender / Role)icu
ICU Selectordinal (Rankings)vue-i18n
Vue I18n Pipe Plurali18next
i18next Simple Interpolationicu
ICU Number & Percentage Formaticu
HTML / Rich Text Formattingicu
Full JSON DictionaryFormat Sumberformatjs / next-intl
79 karakter
Format Sasaranreact-i18next
Sintaksis Valid
Pratinjau Langsung Interaktif & Evaluasi
Atur nilai uji untuk variabel yang terdeteksi untuk melihat hasil akhir secara langsung.
Lokal:
Pratinjau Teks yang Dihasilkan (en):
1 item in cart
Perbandingan Format Pesan & Panduan Sintaksis
Lihat perbandingan interpolasi, bentuk jamak, dan pemformatan berdampingan.
| Fitur | ICU MessageFormat | i18next | Vue I18n | Intlayer |
|---|---|---|---|---|
Variabel Sederhana Ganti variabel bernama di dalam teks | Hello {name}! | Hello {{name}}! | Hello {name}! | Hello {{name}}! |
Bentuk Jamak CLDR Aturan jamak berbasis kategori (one, few, many, other) | {count, plural, one {# item} other {# items}} | {count, plural, one {# item} other {# items}} | 1 item | {count} items | plural({ one: '{{count}} item', other: '{{count}} items' }) |
Bentuk Jamak Kecocokan Tepat Angka tertentu seperti 0, 1 dipetakan secara eksplisit | {count, plural, =0 {No items} other {# items}} | {count, plural, =0 {No items} other {# items}} | No items | {count} items | enu({ '0': 'No items', fallback: '{{count}} items' }) |
Select / Gender Pencocokan kondisi string | {gender, select, male {He} female {She} other {They}} | {gender, select, male {He} female {She} other {They}} | {gender: {male: "He", female: "She"}} | gender({ male: 'He', female: 'She', fallback: 'They' }) |
Format Angka / Persentase Gaya pemformatan numerik yang dilokalkan | {val, number, percent} | {{val, percent}} | $n(val, 'percent') | {val, number, percent} |
HTML / Teks Kaya Tag markup dipertahankan untuk pemformatan | Read <strong>{doc}</strong> | Read <1>{{doc}}</1> | <i18n-t> or raw HTML | html('Read <strong>{{doc}}</strong>') |
Kompilasi Aman Tipe
Berbeda dengan sistem lama, Intlayer memberlakukan kompilasi TypeScript menyeluruh dan pelengkapan otomatis IDE.
Lapisan Kompatibilitas Universal
Impor atau ekspor pesan dengan mulus dari Next-intl, FormatJS, i18next, atau Nuxt tanpa penguncian vendor.
CMS Visual & Terjemahan AI
Konten yang dideklarasikan di Intlayer dapat diedit secara visual secara real-time atau diterjemahkan secara otomatis ke 18+ bahasa melalui pipeline AI.
Ekosistem Intlayer
Migrasi ke Intlayer untuk Keamanan Tipe Penuh
Deklarasikan terjemahan di samping kode Anda dan gunakan CMS visual.