मुफ़्त उपकरण

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

    लाइव पूर्वावलोकन, 100+ टेम्प्लेट और बहुभाषी CLDR बहुवचन सत्यापन के साथ ICU MessageFormat स्ट्रिंग्स बनाएं, परीक्षण करें और सत्यापित करें।

    टेम्प्लेट50
    ICU संपादक
    मान्य सिंटैक्स
    14 वर्ण1 पंक्तियाँ

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

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

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

    ICU MessageFormat Syntax Cheat Sheet

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

    सुविधासिंटैक्सउदाहरणटिप्पणियाँIntlayer समकक्ष
    Simple Variable{variableName}Hello {name}!Alphanumeric names, single brackets{{name}}
    Pluralization{count, plural, one {...} other {...}}{n, plural, one {# item} other {# items}}Requires "other". # is replaced by count.plural({ one: "1 item", other: "{{count}} items" })
    Exact Match Plural=0 {...} =1 {...}{n, plural, =0 {None} one {#} other {#}}Takes precedence over CLDR keywordsenu({ 0: "None", 1: "1", fallback: "{{count}}" })
    Select (Context/Gender){key, select, choice1 {...} other {...}}{gender, select, male {He} other {They}}Case-sensitive exact string comparisonselect({ male: "He", fallback: "They" }, "gender")
    Selectordinal{rank, selectordinal, one {#st} other {#th}}{pos, selectordinal, one {#st} two {#nd} other {#th}}Ordinal suffix rules per CLDRenu({ 1: "1st", 2: "2nd", fallback: "{{pos}}th" })
    Number Formatting{val, number, [style]}{price, number, currency}Supports percent, currency, integer stylesIntl.NumberFormat or type-safe formatting
    Escaping'{' and '' for apostrophesDon''t '{'escape'}'Single quotes escape literal blocks, '' escapes quoteLiteral strings naturally supported
    Intlayer की कंपाइलर-चालित वास्तुकला जटिल रनटाइम पार्सिंग को कंपाइल-टाइम टाइप सुरक्षा के साथ बदल देती है।
    Intlayer पारिस्थितिकी तंत्र

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

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