tolgee-js icon indicating copy to clipboard operation
tolgee-js copied to clipboard

Use standalone for Angular

Open Celtian opened this issue 4 months ago • 5 comments

Is your feature request related to a problem? Please describe.

Angular team abandonned module-based aproach 2 years ago and you are still using modules...

I do not aunderstand why we shoud import entire module in each standalone components.

Describe the solution you'd like

Since standalone components are available, we should do it this way:

import { TranslatePipe } from '@tolgee/ngx'

@Component({
  imports: [
    TranslatePipe,
  ],
})

Why? Because of the bundle size and maintenance (IDE automatically removes unuses standalone imports but not modules) ...

Describe alternatives you've considered

None

Additional context

None

Celtian avatar Aug 05 '25 22:08 Celtian

Thanks for the issue. We will try to address this fast.

Would you be open to join our community Slack so we can discuss it more deeply?

Unfortunately we don't have an Angular expert in team. I personally worked with Angular few years and I am the author of the Angular wrapper.

It would be awesome to get some prompt feedback before we release the new version so I am sure we don't miss anything.

https://tolg.ee/slack

JanCizmar avatar Aug 08 '25 17:08 JanCizmar

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 08 '25 02:09 github-actions[bot]

Hi @JanCizmar, I would like to work on this issue. I have experience with Angular but not an full on expert. I can do this with your help. Also, the slack community link has expired. Thanks in advance.

ragul1697 avatar Sep 10 '25 05:09 ragul1697

Hi @JanCizmar, I would like to work on this issue. I have experience with Angular but not an full on expert. I can do this with your help. Also, the slack community link has expired. Thanks in advance.

It should be quite easy since there is a migration script https://angular.dev/reference/migrations/standalone

Celtian avatar Sep 10 '25 05:09 Celtian

@ragul1697 Awesome! We will be happy for the PR.

I have fixed the slack link. Thanks for reporting. 🙏🏻

JanCizmar avatar Sep 10 '25 14:09 JanCizmar