무료 도구

    Vue I18n 메시지 포맷터 및 편집기

    파이프 복수형(0 | 1 | 기타), 명명된 서식 {name}, 연결된 메시지 @:key를 사용하여 Vue I18n 메시지를 빌드하고 테스트하세요.

    템플릿10
    VUE-I18N 편집기
    유효한 구문
    34 1

    테스트 변수 및 실시간 미리보기

    변수를 조정하고 언어를 전환하여 CLDR 복수형 규칙을 확인하세요

    로케일:
    렌더링된 출력 (en):
    Hello Lucas, welcome to Vue i18n!
    Intlayer 타입 안전 선언으로 내보내기
    import { type Dictionary } from 'intlayer';const convertedMessageContent = {  key: 'converted-message',  content: 'Hello {{name}}, welcome to Vue i18n!',} satisfies Dictionary;export default convertedMessageContent;
    Intlayer는 완벽한 TypeScript 자동 완성을 통해 컴파일 타임에 번역을 검증합니다.

    Vue I18n Syntax Cheat Sheet

    빠른 구문 규칙 및 각 패턴이 Intlayer의 타입 안전 선언에 매핑되는 방법

    기능구문예시참고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
    Intlayer의 컴파일러 기반 아키텍처는 복잡한 런타임 구문 분석을 컴파일 타임 타입 안전성과 자동 추출로 대체합니다.
    Intlayer 생태계

    복잡한 구문에 대해 더 이상 걱정하지 마세요

    Intlayer는 컴파일 타임 타입 안정성, 자동 컴포넌트 추출 및 완벽한 CMS 통합을 통해 국제화를 즐거운 개발 경험으로 바꿉니다.