angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Wrong sourcefile paths in xlf

Open krassx opened this issue 8 years ago • 2 comments

Versions

Angular CLI: 1.7.3
Node: 8.9.4
OS: darwin x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

@angular/cli: 1.7.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack-bundle-analyzer: 2.10.0
webpack: 3.11.0

Repro steps

  1. Add i18n attributes to templates
  2. Run "ng xi18n --outputPath src/locale"

Observed behavior

<trans-unit id="3d3ae7deebc5949b0c1c78b9847886a94321d9fd" datatype="html">
  <source>No</source>
  <context-group purpose="location">
    <context context-type="sourcefile">app/core/ui/dialog/dialog-confirm/dialog-confirm.ts</context>
    <context context-type="linenumber">10</context>
  </context-group>
  <context-group purpose="location">
    <context context-type="sourcefile">app/core/ui/dialog/dialog-prompt/dialog-prompt.ts</context>
    <context context-type="linenumber">17</context>
  </context-group>
  <context-group purpose="location">
    <context context-type="sourcefile">app/elements/recording/environment/elements-recording-environment.component.ts</context>
    <context context-type="linenumber">37</context>
  </context-group>
  <context-group purpose="location">
    <context context-type="sourcefile">app/elements/recording/environment/elements-recording-environment.component.ts</context>
    <context context-type="linenumber">176</context>
  </context-group>
</trans-unit>

Desired behavior

sourcefile paths must point to html templates.

Mention any other details that might be useful (optional)

It's worth noting that line numbers are correct - they correspond to lines in templates.

krassx avatar Apr 14 '18 04:04 krassx

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

alan-agius4 avatar Mar 13 '19 12:03 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.