Alat Gratis

    Pemformat & Editor Pesan Vue I18n

    Buat dan uji pesan terjemahan Vue I18n dengan pluralisasi pipa (0 | 1 | other), pemformatan bernama {name}, dan pesan tertaut @:key.

    Templat10
    VUE-I18N Editor
    Sintaks Valid
    34 karakter1 baris

    Variabel Uji & Pratinjau Langsung

    Sesuaikan variabel dan ganti bahasa untuk memverifikasi aturan CLDR

    Lokal:
    Hasil Render (en):
    Hello Lucas, welcome to Vue i18n!
    Ekspor ke Deklarasi Tipe Aman Intlayer
    import { type Dictionary } from 'intlayer';const convertedMessageContent = {  key: 'converted-message',  content: 'Hello {{name}}, welcome to Vue i18n!',} satisfies Dictionary;export default convertedMessageContent;
    Intlayer memvalidasi terjemahan saat kompilasi dengan pelengkapan otomatis TypeScript lengkap.

    Vue I18n Syntax Cheat Sheet

    Aturan sintaks cepat dan pemetaan pola ke deklarasi Intlayer

    FiturSintaksContohCatatanSetara Intlayer
    Named Formatting{variableName}Hello {name}!Single braces for named parameters{{name}}
    List Formatting{0}, {1}, ...Hello {0} and {1}Index-based positional arguments{{0}} or named variables
    Pipe Pluralizationno items | 1 item | {n} itemsno apples | 1 apple | {n} applesPipes separate 0, 1, and plural formsplural({ 0: "no apples", 1: "1 apple", other: "{{count}} apples" })
    Linked Messages@:path.to.messageHome of @:brand.nameReferences other messages in the dictionaryTypeScript object references
    Literal Interpolation{'literal'}{'hello'} {name}Single-quoted literal inside bracesLiteral strings
    Arsitektur berbasis kompilator Intlayer menggantikan penguraian pesan runtime yang rumit dengan keamanan tipe waktu kompilasi.
    Ekosistem Intlayer

    Tidak Perlu Khawatir Lagi tentang Sintaks yang Rumit

    Intlayer mengubah internasionalisasi menjadi pengalaman pengembang yang menyenangkan dengan keamanan tipe waktu kompilasi, ekstraksi komponen otomatis, dan integrasi CMS yang mulus.