Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Translation not working in sharedModule or more than one module

See original GitHub issue

Translation is working if project contains only one module(appModule).I am having more than one module.In my SharedModule, translation is not working.i am getting the following error.

Template parse errors:
The pipe 'translate' could not be found ("
          <i class="material-icons" md[ERROR ->]-tooltip="{{'BUTTON_LABEL.ADVANCE'  | translate}}"
             mdTooltipPosition="left"): ng:///SharedModule/SharedSearchComponent.html@9:70

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

DenysVuikacommented, Jan 8, 2018

@tanup you can try importing required modules manually into the lazy loaded routes, without CoreModule. Here’s what the core module imports:

DenysVuikacommented, Dec 4, 2017

thanks, I am able to reproduce the issue and we are investigating possible solutions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubles with ng-translate in multi-modules angular app
1. One loader setup for lazy loading modules: shared.module.ts import { TranslateModule } from '@ngx-translate/core'; // Inside @NgModule ...
Read more >
Singleton services - Angular
A singleton service is a service for which only one instance exists in an application. For a sample application using the app-wide singleton...
Read more >
Angular Modules and NgModule - Complete Guide
In this post, we are going to do an introduction to Angular Modularity (the NgModule functionality) and understand why it enables several ......
Read more >
Fix Ngx-translate pipe not found in Angular 11 error [solved]
In this case I use a core module (which acts like a "shared" module). ... import {TranslateLoader, TranslateModule} from '@ngx-translate/core'; ...
Read more >
Angular NGX-Translate Lazy Loaded Modules - Medium
Many of us used ngx-translate for managing translations in an angular app. ... But, if you go to this issue you'll find it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found