Convertitore di formati messaggio i18n
Converti facilmente stringhe e dizionari di traduzione tra ICU MessageFormat, i18next, Vue I18n, Gettext PO e Intlayer. Testa le variabili in tempo reale.
Anteprima interattiva dal vivo e valutazione
Imposta valori di prova per le variabili rilevate per vedere il testo finale in tempo reale.
Confronto dei formati e guida alla sintassi
Scopri come si confrontano variabili, plurali e formattazione tra tutti i formati supportati.
| Funzionalità | ICU MessageFormat | i18next | Vue I18n | Intlayer |
|---|---|---|---|---|
Variabile semplice Sostituisci variabile con nome all’interno del testo | Hello {name}! | Hello {{name}}! | Hello {name}! | Hello {{name}}! |
Plurale CLDR Regole di plurale basate su categorie (one, few, many, other) | {count, plural, one {# item} other {# items}} | {count, plural, one {# item} other {# items}} | 1 item | {count} items | plural({ one: '{{count}} item', other: '{{count}} items' }) |
Plurale a corrispondenza esatta Numeri specifici come 0, 1 mappati esplicitamente | {count, plural, =0 {No items} other {# items}} | {count, plural, =0 {No items} other {# items}} | No items | {count} items | enu({ '0': 'No items', fallback: '{{count}} items' }) |
Select / Genere Corrispondenza condizionale delle stringhe | {gender, select, male {He} female {She} other {They}} | {gender, select, male {He} female {She} other {They}} | {gender: {male: "He", female: "She"}} | gender({ male: 'He', female: 'She', fallback: 'They' }) |
Formato numero / percentuale Stili di formattazione numerica localizzati | {val, number, percent} | {{val, percent}} | $n(val, 'percent') | {val, number, percent} |
HTML / Testo formattato Tag di markup preservati per la formattazione | Read <strong>{doc}</strong> | Read <1>{{doc}}</1> | <i18n-t> or raw HTML | html('Read <strong>{{doc}}</strong>') |
Compilazione type-safe
A differenza dei sistemi legacy, Intlayer garantisce la compilazione TypeScript end-to-end e l’autocompletamento nell’IDE.
Livello di compatibilità universale
Importa ed esporta messaggi facilmente da Next-intl, FormatJS, i18next o Nuxt senza alcun vincolo di fornitore.
CMS visivo e traduzione con IA
I contenuti dichiarati in Intlayer possono essere modificati visivamente in tempo reale o tradotti automaticamente in oltre 18 lingue tramite IA.
Passa a Intlayer per una completa sicurezza dei tipi
Dichiara le traduzioni accanto al tuo codice e usa il CMS visivo.