XLIFF Parser
This is a library for reading and writing localized text stored in XLIFF format.
Example
let path: PathBuf =
.iter
.collect;
let translations = load;
let translation = sut.t;
assert_eq!;
assert_eq!;
Changelog
Parse XLIFF 1.2
Implementation status
.
-
<xliff>-
<file>-
<header>-
<skl>-
<internal-file> | <external-file>
-
-
<phase-group>-
<phase> -
note
-
-
<glossary>-
<internal-file> | <external-file>
-
-
<reference>-
<internal-file> | <external-file>
-
-
<count-group>-
<count>
-
-
<tool> -
<prop-group>-
<prop>
-
-
<note>
-
-
<body>-
<group>-
<context-group>-
<context>
-
-
<count-group>-
<count>
-
-
<prop-group>-
<prop>
-
-
<note>
-
-
<trans-unit>-
<source> -
<target> -
<context-group>-
<context>
-
-
<count-group>-
<count>
-
-
<prop-group>-
<prop>
-
-
<seg-srouce> -
<note> -
<alt-trans>
-
-
<bin-unit>-
<bin-source> -
<bin-target> -
<context-group>-
<context>
-
-
<count-group>-
<count>
-
-
<prop-group>-
<prop>
-
-
-
-
<note> -
<trans-unit>
-
-
Roadmap
-
Basic support for importing translations from XLIFF 1.2
-
Provide a t("key") interface
-
Complete parsing support for XLIFF 1.2
-
Support loading files which contain multiple languages
-
Export translations to XLIFF 1.2
-
Import translations from XLIFF 2.0
-
Export translations to XLIFF 2.0