You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, spaces are considered as translation material, just like text. You might want to add or remove spaces in different translations, depending on the context and the language. ICU expressions are always extracted from translations into a different trans-unit and replaced by a placeholder <x id="ICU"/> in their original context.
If you don't want two trans-unit in this case, your html should not contain spaces before/after the ICU expression:
<spani18n="xyz|xyz@@SomeId">{text, select, question {Some text: {{someVar}}} error {Something went wrong..}}</span>
If you need those spaces/line feeds for some reason, you can use i18n comments instead of the i18n attribute:
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.1.2
node: 6.10.3
os: win32 x64
@angular/common: 4.2.2
@angular/compiler: 4.2.2
@angular/core: 4.2.2
@angular/forms: 4.2.2
@angular/http: 4.2.2
@angular/platform-browser: 4.2.2
@angular/platform-browser-dynamic: 4.2.2
@angular/router: 4.2.2
@angular/cli: 1.1.2
@angular/compiler-cli: 4.2.2
Repro steps.
Use ng xi18n --output-path src/i18n
when in html in project I have some ICU message which is not in the same line as beginning and ending
tag:
I become such output:
Desired functionality.
It should produce only one translation unit- no matter if that is divided in more lines or not,
Mention any other details that might be useful.
Changing indents to tabs/spaces does not help.
The text was updated successfully, but these errors were encountered: