Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.3.2
node: 8.2.1
os: linux x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.3.2
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
Repro steps.
ng new test-i18n
app.component.html - Add the following line:
<div i18n>Page {{'5'}} of {{'5'}}</div>
Extract Translation Data
ng xi18n --locale en --output-path src/i18n
"Translate" the file using some tool, in this case just copying the source to target, saving as "messages.en.xlf"
ng serve --aot --i18n-file=src/i18n/messages.en.xlf --i18n-format=xlf --locale=en
The log given by the failure.
ERROR in Unknown placeholder "INTERPOLATION_1" ("Page of [ERROR ->]"): i18n@0:32
Desired functionality.
Shows "Page 5 of 5" instead of error.
Mention any other details that might be useful.
The error only occured if BOTH Interpolation parts were '5'
Using anything else: e.g. variables (page_offset), other numbers ('4' with '5' or '1' with '1'), numbers instead of strings (5), even using double quotes ("5") DID NOT result in the error.
This means after knowing that I can easily get around that, but still it is a very confusing issue.....
Or is there something I did not see?
Bug Report or Feature Request (mark with an
x)Versions.
Repro steps.
ng new test-i18napp.component.html - Add the following line:
Extract Translation Data
ng xi18n --locale en --output-path src/i18n"Translate" the file using some tool, in this case just copying the source to target, saving as "messages.en.xlf"
ng serve --aot --i18n-file=src/i18n/messages.en.xlf --i18n-format=xlf --locale=enThe log given by the failure.
Desired functionality.
Shows "Page 5 of 5" instead of error.
Mention any other details that might be useful.
The error only occured if BOTH Interpolation parts were '5'
Using anything else: e.g. variables (page_offset), other numbers ('4' with '5' or '1' with '1'), numbers instead of strings (5), even using double quotes ("5") DID NOT result in the error.
This means after knowing that I can easily get around that, but still it is a very confusing issue.....
Or is there something I did not see?