title: Angular translation not working with angular 9
body: <p>I have an <strong>Angular9</strong> app. Apart from the <strong>app.module.ts</strong> there is one more module, <strong>custom.module.ts</strong>.  Here is the</p>
  <p><strong>package.json</strong></p>
  <pre><code>&quot;@angular/cdk&quot;: &quot;^9.2.4&quot;,
  &quot;@angular/common&quot;: &quot;9.1.11&quot;,
  &quot;@angular/compiler&quot;: &quot;9.1.11&quot;,
  &quot;@angular/core&quot;: &quot;9.1.11&quot;,
  </code></pre>
  <p>For translation</p>
  <p><strong>1)</strong> I have added <code>@ngx-translate/core</code> and <code>@ngx-translate/http-loader</code></p>
  <pre><code>&quot;@ngx-translate/core&quot;: &quot;10.0.2&quot;,
  &quot;@ngx-translate/http-loader&quot;: &quot;^5.0.0&quot;,
  </code></pre>
  <p><strong>2)</strong> then in <strong>app.module.ts</strong> under <code>imports</code></p>
  <pre><code>TranslateModule.forRoot({
        loader: {
             provide: TranslateLoader,
             useFactory: HttpLoaderFactory,
             deps: [HttpClient]
        }
  }),
  </code></pre>
  <p>and</p>
  <pre><code>// required for AOT compilation
  export function HttpLoaderFactory(http: HttpClient): any {
      return new TranslateHttpLoader(http, &quot;./assets/i18n/&quot;);
  }
  </code></pre>
  <p>Same i did for my <strong>custom.module.ts</strong>.</p>
  <p><strong>3)</strong> app.component.ts</p>
  <pre><code>// Add languages
  this.translateService.addLangs([&quot;en&quot;, &quot;nb&quot;, &quot;sv&quot;]);
  
  // Use a language
  this.translateService.setDefaultLang(&quot;en&quot;);
  this.translateService.use(&quot;en&quot;);
  </code></pre>
  <p><strong>4)</strong> files in <strong>assets/i18n/en.json</strong></p>
  <pre><code>{
      &quot;noSelectMessage&quot;: &quot;Select to see detail.&quot;
  }
  </code></pre>
  <p>and now where i use traslate pipe in a component of <strong>custom.moule.ts</strong></p>
  <pre><code>&lt;span&gt;{{'noSelectMessage' | translate}}&lt;/span&gt;
  </code></pre>
  <p>it shows same <strong>noSelectMessage</strong></p>
  <p>and If i check source tab in browser there is no <strong>i18n</strong> folder under assets.</p>
  <p>What can be the issue?</p>