Comments (4)
@probertson can you help?
from xliff.
btw:: you may try with CDATA
<trans-unit id="3036695099328175425" datatype="html">
<source><x id="PH" equiv-text="..."/><![CDATA[ ]]><x id="PH_1" equiv-text="..."/></source>
<target state="translated"><x id="PH" equiv-text="..."/><![CDATA[ ]]><x id="PH_1" equiv-text="..."/></target>
</trans-unit>
from xliff.
with v6.1.0 you can also try with:
xliff12ToJs(js, { captureSpacesBetweenElements: false }, (err, res) => { })
from xliff.
xliff.xliff12ToJs(translations, {
captureSpacesBetweenElements: true,
});
works like a charm in 6.1.0
thanks a lot for the quick help!
from xliff.
Related Issues (20)
- xliff12ToJs ingnoring nested groups HOT 4
- CDATA Sections HOT 3
- Add seamless conversion between XLIFF and i18next JSON HOT 4
- Placeholder elements not inline in XLIFF v1.2 HOT 2
- Add a LICENSE file HOT 1
- When there are XML comments in the XLIFF document, xliff2js throws an error HOT 7
- Could not find a declaration file for module 'xliff'. HOT 10
- Incorrect handling of <ignorable>...</ignorable> sections placed by CAT tools after segments HOT 3
- Support for `additionalAttributes` on target HOT 7
- xliff.jsToXliff12 unexpected parse result with [object Object] HOT 4
- Adding support for metadata module HOT 2
- Place <note> inside <notes> section of the <unit> HOT 7
- Convert JSON to XLIFF without translating HOT 8
- Convert from json to XLIFF with CDATA HOT 3
- targetOfjs does not convert groups HOT 1
- 'State' attribute missing from converted xliff files HOT 5
- Got a TypeError after converting xliff12 to json with empty groups HOT 1
- TypeError: Cannot read properties of undefined (reading 'id') HOT 2
- The `jsToXliff12` lib creates xliff with wrong format in case of falsy `source` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xliff.