-
-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle import TranslateModule.forChild in module when creating a standalone component in an NgModule Application #1457
Comments
Hi, |
No...unfortunately no one answered. |
I think this project went silent time to look for alternatives |
@pretext-mats which alternatives do you recommend ? |
I have not got a faintest idea :-) Been using this translate since pre ng 2 ... may be I should not be looking for an alternative quite yet. For the SACs you can still load translation files manually if you want |
I don't know the contents of your SharedModule, but if you're missing the translate pipe in your PricingComponent, then you need to add an import for @Component({
selector: 'app-pricing',
standalone: true,
imports: [SharedModule, TranslateModule /* added import */],
templateUrl: './pricing.component.html',
styleUrls: ['./pricing.component.scss']
})
export class PricingComponent { } The TranslateModule consists of component / pipe / directive exports in addition to the providers. |
Trust me it is not the case. We have tried that already still no joy - many other issues pop up |
I just switched to angular provided i18n module in the end ... |
@8th-block this one? |
Yes |
Our fork of ngx-translate now works with Standalone Components without any issues. See https://ngx-translate.org/getting-started/migration-guide about how to migrate to it. |
Hi,
I was wondering how you should handle an import of TranslateModule.forChild in a module when adding a single standalone component in an NgModule based angular project
I would like to use TranslateModule.forChild() with isolate:true in Pricing component
I don't have bootstrapApplication method as I see in another support request, so I don't understand if is feasible.
app.module
routes,ts
empty pricing component
I have tried
But the translate pipe is not found.
Could you please help me?
Thanks
The text was updated successfully, but these errors were encountered: