@translation/angular
Advanced tools
Comparing version 1.5.0 to 1.6.0
# Changelog | ||
## [v1.6.0](https://github.com/translation/angular/releases/tag/v1.6.0) (2023-02-20) | ||
#### Fixes (bugs & defects): | ||
* Don't write empty `<target>` in translated XLF, it prevented the fallback to source language to work as intended. | ||
## [v1.5.0](https://github.com/translation/angular/releases/tag/v1.5.0) (2023-01-13) | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@translation/angular", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Translation.io client for Angular applications", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -499,3 +499,3 @@ # [Translation.io](https://translation.io/angular) client for Angular | ||
Translation.io is directly integrated in the great | ||
[Lingui](https://lingui.js.org/) internationalization project. | ||
[Lingui](https://lingui.dev/) internationalization project. | ||
@@ -502,0 +502,0 @@ * GitHub: https://github.com/translation/lingui |
@@ -352,3 +352,3 @@ const Interpolation = require('../utils/interpolation') | ||
if (targetXmlUnit) { | ||
if (targetXmlUnit && translatedTargetSegment.target != '') { // if not translated, then no <target>, then fallback to source language | ||
targetXmlUnit.target = this.recomposeTarget(targetXmlUnit, translatedTargetSegment) | ||
@@ -440,2 +440,1 @@ } | ||
module.exports = Base | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51934