Alat Gratis

    Pemformat & Editor Pesan Intlayer

    Bangun, uji, dan validasi deklarasi konten Intlayer yang aman tipe dengan interpolasi {{var}}, t(), plural(), enu(), select(), cond(), dan markdown.

    Templat18
    INTLAYER Editor
    Sintaks Valid
    36 karakter1 baris

    Variabel Uji & Pratinjau Langsung

    Sesuaikan variabel dan ganti bahasa untuk memverifikasi aturan CLDR

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

    Intlayer Message Format Syntax Cheat Sheet

    Aturan sintaks cepat dan pemetaan pola ke deklarasi Intlayer

    FiturSintaksContohCatatanSetara Intlayer
    Variable Interpolation{{variableName}}Hello {{name}}!Double curly braces for dynamic parameter insertionuseIntlayer(key).name or resolveMessage()
    Multilingual Translationt({ en: "...", fr: "..." })t({ en: "Hello", fr: "Bonjour" })Locale-keyed translations with type safety and fallbackt({ [locale]: string })
    Pluralization (plural)plural({ one: "...", other: "..." })plural({ one: "1 item", other: "{{count}} items" })CLDR cardinal plural rules with automatic count lookupplural({ [category]: string })
    Exact Enumeration (enu)enu({ 0: "...", 1: "...", fallback: "..." })enu({ 0: "Zero", 1: "One", fallback: "{{count}}" })Exact numeric matching with fallback for remaining countsenu({ [number]: string, fallback })
    Dynamic Selection (select)select({ key: "...", fallback: "..." }, "variable")select({ admin: "Admin", fallback: "User" }, "role")Branch on any custom string variable discriminatorselect({ [key]: string }, variableKey)
    Gender Agreement (gender)gender({ male: "...", female: "...", fallback: "..." })gender({ male: "He", female: "She", fallback: "They" })Grammatical gender concordance with automatic lookupgender({ male, female, fallback })
    Boolean Condition (cond)cond({ true: "...", false: "..." })cond({ true: "Logged In", false: "Guest" })Evaluates boolean state conditionscond({ true: string, false: string })
    Markdown Content (md)md("# ...\n**bold**")md("# Title\n\n**Bold** {{variable}}")Rich markdown rendered to React / HTML nodesmd(markdownString)
    Embedded HTML (html)html("<tag>...</tag>")html("<p>Visit <a href=\"/\">home</a></p>")Embedded safe HTML markup for links and formattinghtml(htmlString)
    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.