أداة مجانية

    محرر ومنسق رسائل ICU

    قم بإنشاء واختبار والتحقق من صحة سلاسل ICU MessageFormat مع معاينة حية وأكثر من 100 قالب والتحقق من صيغ الجمع في CLDR.

    القوالب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.