Vue I18n 메시지 포맷터 및 편집기
파이프 복수형(0 | 1 | 기타), 명명된 서식 {name}, 연결된 메시지 @:key를 사용하여 Vue I18n 메시지를 빌드하고 테스트하세요.
템플릿10
VUE-I18N 편집기
유효한 구문
34 자1 줄
테스트 변수 및 실시간 미리보기
변수를 조정하고 언어를 전환하여 CLDR 복수형 규칙을 확인하세요
로케일:
렌더링된 출력 (en):
Hello Lucas, welcome to Vue i18n!
Intlayer 타입 안전 선언으로 내보내기
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 Pluralization | no items | 1 item | {n} items | no apples | 1 apple | {n} apples | Pipes separate 0, 1, and plural forms | plural({ 0: "no apples", 1: "1 apple", other: "{{count}} apples" }) |
| Linked Messages | @:path.to.message | Home of @:brand.name | References other messages in the dictionary | TypeScript object references |
| Literal Interpolation | {'literal'} | {'hello'} {name} | Single-quoted literal inside braces | Literal strings |
Intlayer의 컴파일러 기반 아키텍처는 복잡한 런타임 구문 분석을 컴파일 타임 타입 안전성과 자동 추출로 대체합니다.
Intlayer 생태계
복잡한 구문에 대해 더 이상 걱정하지 마세요
Intlayer는 컴파일 타임 타입 안정성, 자동 컴포넌트 추출 및 완벽한 CMS 통합을 통해 국제화를 즐거운 개발 경험으로 바꿉니다.