title: ngx-translate: language build path wrong
body: <p>I recently updated all my dependencies (yarn upgrade --latest).</p>
  
  <p>For translation I use @ngx-translate. Now, when I build my project (yarn run webpack:build) it adds the language files to the wrong folder and I get a 404 and therefore no translations.</p>
  
  <p>The desired structure should be: <code>/target/www/i18n/de.json</code></p>
  
  <p>The current folder structure is: <code>/target/www/target/www/i18n/de.json</code></p>
  
  <p>Now my guess: There's apparently an error when setting the path (additional ./ or something like that). </p>
  
  <p>My question is: Where can I set the path where to put the compiled language in?</p>
  
  <p>My package.json looks like this (jus the dependencies part):</p>
  
  <pre><code>"dependencies": {
      "@angular/common": "4.4.6",
      "@angular/compiler": "4.4.6",
      "@angular/core": "4.4.6",
      "@angular/forms": "4.4.6",
      "@angular/http": "4.4.6",
      "@angular/platform-browser": "4.4.6",
      "@angular/platform-browser-dynamic": "4.4.6",
      "@angular/router": "4.4.6",
      "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
      "@types/jquery": "^3.2.12",
      "@types/webpack-env": "^1.13.1",
      "bootstrap": "4.0.0-beta.2",
      "core-js": "2.5.1",
      "cryptocoins-icons": "^2.5.0",
      "font-awesome": "4.7.0",
      "jquery": "^3.2.1",
      "jquery-ui": "^1.12.1",
      "moment": "^2.18.1",
      "ng-jhipster": "0.2.12",
      "ng2-nouislider": "^1.7.0",
      "ng2-nvd3": "^2.0.0",
      "ng2-webstorage": "1.8.0",
      "ngx-cookie": "1.0.1",
      "ngx-infinite-scroll": "0.6.1",
      "ngx-ui-switch": "^1.4.4",
      "nouislider": "^10.1.0",
      "reflect-metadata": "0.1.10",
      "rxjs": "5.5.2",
      "sockjs-client": "1.1.4",
      "swagger-ui": "3.4.2",
      "tether": "1.4.0",
      "webstomp-client": "1.2.0",
      "zone.js": "0.8.18"
    },
    "devDependencies": {
      "@angular/cli": "1.4.9",
      "@angular/compiler-cli": "4.4.6",
      "@types/jasmine": "2.6.2",
      "@types/node": "8.0.47",
      "add-asset-html-webpack-plugin": "2.1.2",
      "angular2-template-loader": "0.6.2",
      "awesome-typescript-loader": "3.3.0",
      "browser-sync": "2.18.13",
      "browser-sync-webpack-plugin": "1.2.0",
      "codelyzer": "3.2.2",
      "copy-webpack-plugin": "4.2.0",
      "css-loader": "0.28.7",
      "del": "3.0.0",
      "event-stream": "3.3.4",
      "exports-loader": "0.6.4",
      "extract-text-webpack-plugin": "3.0.2",
      "file-loader": "1.1.5",
      "generator-jhipster": "4.10.2",
      "html-loader": "0.5.1",
      "html-webpack-plugin": "2.30.1",
      "jasmine-core": "2.8.0",
      "karma": "1.7.1",
      "karma-chrome-launcher": "2.2.0",
      "karma-coverage": "1.1.1",
      "karma-intl-shim": "1.0.3",
      "karma-jasmine": "1.1.0",
      "karma-junit-reporter": "1.2.0",
      "karma-notify-reporter": "1.0.1",
      "karma-phantomjs-launcher": "1.0.4",
      "karma-remap-istanbul": "0.6.0",
      "karma-sourcemap-loader": "0.3.7",
      "karma-webpack": "2.0.5",
      "lazypipe": "1.0.1",
      "lodash": "4.17.4",
      "map-stream": "0.0.7",
      "merge-jsons-webpack-plugin": "1.0.12",
      "node-sass": "4.5.3",
      "phantomjs-prebuilt": "2.1.15",
      "postcss-loader": "2.0.8",
      "proxy-middleware": "0.15.0",
      "rimraf": "2.6.2",
      "run-sequence": "2.2.0",
      "sass-loader": "6.0.6",
      "sourcemap-istanbul-instrumenter-loader": "0.2.0",
      "string-replace-webpack-plugin": "0.1.3",
      "style-loader": "0.19.0",
      "to-string-loader": "1.1.5",
      "tslint": "5.8.0",
      "tslint-loader": "3.5.3",
      "typescript": "2.3.4",
      "web-app-manifest-loader": "0.1.1",
      "webpack": "3.8.1",
      "webpack-dev-server": "2.9.3",
      "webpack-merge": "4.1.0",
      "webpack-notifier": "1.5.0",
      "webpack-visualizer-plugin": "0.1.11",
      "write-file-webpack-plugin": "4.2.0",
      "xml2js": "0.4.19",
      "yargs": "10.0.3"
    },
  </code></pre>