Vue-I18n-Nachrichten-Formatierer & Editor
Erstellen und testen Sie Vue-I18n-Nachrichten mit Pipe-Pluralisierung (0 | 1 | andere), benannter Formatierung {name} und verknüpften Nachrichten @:key.
Vorlagen10
VUE-I18N Editor
Gültige Syntax
34 Zeichen1 Zeilen
Testvariablen & Live-Vorschau
Passen Sie Variablen an und wechseln Sie Sprachen, um CLDR-Regeln zu prüfen
Sprache:
Gerenderte Ausgabe (en):
Hello Lucas, welcome to Vue i18n!
In typsichere Intlayer-Deklaration exportieren
Intlayer validiert Übersetzungen zur Kompilierzeit mit vollständiger TypeScript-Autovervollständigung.
Vue I18n Syntax Cheat Sheet
Schnelle Syntaxregeln und wie jedes Muster auf typsichere Intlayer-Deklarationen abbildet
| Funktion | Syntax | Beispiel | Hinweise | Intlayer-Äquivalent |
|---|---|---|---|---|
| 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 |
Die compilergesteuerte Architektur von Intlayer ersetzt komplexes Laufzeit-Parsing durch Typsicherheit zur Kompilierzeit.
Intlayer Ökosystem
Machen Sie sich nie wieder Gedanken über komplexe Syntax
Intlayer verwandelt die Internationalisierung mit Typsicherheit zur Kompilierzeit, automatischer Komponentenextraktion und nahtloser CMS-Integration in ein Vergnügen.