मुफ़्त उपकरण

    Intlayer संदेश प्रारूपक और संपादक

    {{var}} इंटरपोलेशन, t(), plural(), enu(), select(), cond(), और मार्कडाउन के साथ टाइप-सुरक्षित Intlayer सामग्री घोषणाओं का निर्माण, परीक्षण और सत्यापन करें।

    टेम्प्लेट18
    INTLAYER संपादक
    मान्य सिंटैक्स
    36 वर्ण1 पंक्तियाँ

    परीक्षण चर और लाइव पूर्वावलोकन

    CLDR बहुवचन नियमों को सत्यापित करने के लिए चर समायोजित करें और भाषा बदलें

    भाषा:
    रेंडर किया गया आउटपुट (en):
    Hello Alex, welcome to Intlayer!
    Intlayer टाइप-सुरक्षित घोषणा में निर्यात करें
    import { type Dictionary } from 'intlayer';const convertedMessageContent = {  key: 'converted-message',  content: 'Hello {{name}}, welcome to Intlayer!',} satisfies Dictionary;export default convertedMessageContent;
    Intlayer पूर्ण TypeScript स्वतः पूर्णता के साथ संकलन समय पर अनुवादों को मान्य करता है।

    Intlayer Message Format Syntax Cheat Sheet

    त्वरित सिंटैक्स नियम और प्रत्येक पैटर्न Intlayer घोषणाओं में कैसे मैप होता है

    सुविधासिंटैक्सउदाहरणटिप्पणियाँ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)
    Intlayer की कंपाइलर-चालित वास्तुकला जटिल रनटाइम पार्सिंग को कंपाइल-टाइम टाइप सुरक्षा के साथ बदल देती है।
    Intlayer पारिस्थितिकी तंत्र

    जटिल सिंटैक्स के बारे में कभी चिंता न करें

    Intlayer कंपाइल-टाइम टाइप सुरक्षा, स्वचालित घटक निष्कर्षण और सहज CMS एकीकरण के साथ अंतर्राष्ट्रीयकरण को एक सुखद डेवलपर अनुभव बनाता है।