1.10.2 (2018-09-21)
- XMB When setting translation to empty string, state should be "new"
1.10.1 (2018-09-21)
- XMB xliffmerge #103
xliffmerge
optionuseSourceAsTarget
did not work correctly when using format XMB/XTB. The flag was not used in this case.
1.10.0 (2018-08-05)
- beautifier #52
The pretty data beautifier caused some issues (xliffmerge #97).
It is now replaced by an own implementation based on the serializer that is part of xmldom.
This might result in slightly different formatted documents when using
beautifyOutput
- API #53
importNewTransunit
now allows to specify the ancestor of the newly imported unit. There is an optional new parameter for this, so the change is not breaking. If you do not use this parametes, the behaviour is the same as before (adding at the end).
1.9.2 (2018-06-01)
- XLIFF 1.2 Invalid order of target element in xlf12 (#50 and xliffmerge #90 ).
When the library creates a new
target
element in XLIFF 1.2 format, the element should follow directly thesource
element.
1.9.1 (2018-04-30)
- internal problem loading the umd bundle generated by webpack ("ReferenceError: window is not defined", see webpack/webpack#6642
1.9.0 (2018-04-30)
-
normalized format Due to issues found with xliffmerge #84 Placeholder index is invalid) the syntax of normalized messages is slightly changed. Empty tag now is only allowed for a small list of special tags (br, hr, img, area, link, wbr) and closing tag / is removed, former syntax
<img/>
is now<img>
. To destinguish muliple tags with same name now there is an id attribute included, former syntax<mytag></mytag> <mytag></mytag>
is now<mytag></mytag> <mytag id="1"></mytag>
-
ICU messages fixed handling of ICU messages containing markup (xliffmerge #83 xliffmerge fails when ICU message contains interpolation and/or tags)
-
internal updated out of date dependencies (typescript, webpack, tokenizr) to latest versions
-
ICU messages nested ICU messages can be parsed now.
-
API now you can use pretty-data to beautify the xml output. API method
editedContent()
has an additional optional parameterbeautifyOutput?: boolean
for this(xliffmerge #64 Could xlf output be better formatted)
1.8.1 (2018-02-23)
- all formats new API function
setNewTransUnitTargetPraefix
andsetNewTransUnitTargetSuffix
should not set praefix and suffix for ICU messages. (xliffmerge #70).
1.8.0 (2018-02-23)
- all formats new API function
setNewTransUnitTargetPraefix
andsetNewTransUnitTargetSuffix
to support setting of praefix and suffix for copied trans units. (xliffmerge #70).
1.7.0 (2018-02-02)
- API Method ITranslationMessagesFile>>importNewTransUnit now returns newly create trans unit (internally needed for xliffmerge).
-
all formats library now preserves EOL at end of XML files. (xliffmerge #66).
-
internal updated out of date dependencies (webpack, coveralls, codelyzer, @types/node) to latest versions
1.6.2 (2017-10-19)
- XLIFF 2.0 xliffmerge uses wrong state values for new XLIFF 2.0 segments (#57).
1.6.1 (2017-08-18)
- XLIFF 2.0 handle ICU equiv in XLIFF 2.0 (#43).
1.6.0 (2017-08-18)
- API source content of trans-units are now writable (#41).
1.5.0 (2017-08-11)
- API description and meaning of trans-units are now writable (#39).
1.4.6 (2017-06-29)
- all formats normalized messages: ICU-References are not converted to native strings (#37).
1.4.5 (2017-06-16)
- all formats normalized messages cannot parse tags with - or digit (#35).
1.4.4 (2017-06-16)
- all formats corrected wrong warning for removed tags, introduced in 1.4.3.
1.4.3 (2017-06-16)
- all formats Linebreaks are not handled in NormalizedMessage (#31).
To fix this, empty tags like
<br/>
or<img/>
are introduced.
1.4.2 (2017-06-09)
- ICU messages ICU message containing string
select
orplural
in message cannot be parsed (#29).
1.4.1 (2017-06-09)
- API Add support for ICU message usage (#25).
1.3.1 (2017-06-02)
- all formats problems with parsing messages that contain same tag multiple times (#26).
1.3.0 (2017-05-26)
- API new API method supportsSetSourceReferences to check wether source refs can be written (#23).
-
XMB xmb files should not be translatable at all (#22).
-
XTB When reading xtb with wrong master xmb, the resulting error is confusing (#21).
1.2.0 (2017-05-24)
-
XMB Add xtb format support as translation of xmb (#19).
-
XLIFF 2.0 Add source ref support to XLIFF 2.0 format (#18).
1.1.1 (2017-05-21)
- Type Number should be number in sourceRef-API
1.1.0 (2017-05-21)
-
API add an API function to create normalized message from native xml (#13).
-
API add an API function to set sourceReferences (#14).
1.0.1 (2017-05-19)
-
all formats: fixed "A linebreak in a message throws exception 'token not recognized'". (#11).
-
XLIFF 1.2: fixed "Typo in errormessage for XLIFF 1.2 files". (#10).
1.0.0 (2017-05-18)
-
API API has been sligtly changed to support new features (especially normalized messages)
-
API add format independent translation messages (normalized messages) (#2).
-
API normalize state and add setter to API (#8).
0.1.3 (2017-05-05)
- XLIFF 2.0: fixed "placeholders in targetNormalized are wrong numbered". (#6).
0.1.2 (2017-05-05)
-
XLIFF 2.0: fixed "cloneWithSourceAsTarget in XLIFF 2.0 does not work". (#4).
-
all formats wrong error message when trans unit contains no ID
0.1.0 (2017-05-05)
Started issue tracking and git workflow with this release. All work is now always done in a feature branch and merged to master, when it is ready to release.
- XLIFF 2.0: added support for working with XLIFF 2.0 format. (#1).
0.0.8 (2017-05-03)
removeTransUnitWithId
did not work
0.0.7 (2017-05-02)
- normalizedContent did not work correctly. This was caused by differences in writing empty elements between xmldom and cheerio.
0.0.6 (2017-05-01)
- first stable version
- replaced cheerio by xmldom
- added support for handling of source elements (references to angular template files)
0.0.5 (2017-04-28)
- work in progress: version for experiments, not to be used in production
Initial version based on ngx-i18nsupport 0.2.3.
Extracted the API relevant code into this new module.