-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Angular 13 issue #246
Comments
Hello @biesbjerg, |
I tried to do something like this but error is still present :
|
I have found a temporary workaround: install
change the require statement to your alias package name in
|
This works well, thanks! Hopefully we'll see an official fix soon |
@biesbjerg could you take a look of those PR's ? |
Thanks to @venraij @tiberiuzuld @bartholomej we have a new version for Angular 13. I am using it in production already. Pull request and branch Hope you'll check it out soon ;) @biesbjerg For those who want to use it today... Temporarily, you can install as follows: npm i @bartholomej/ngx-translate-extract --save-dev |
@bartholomej @tarlepp @venraij Looks like this issue doesn't occur anymore with Angular 13.0.3. |
Oh, I need to test with that version, thanks for the info! I'll rerport the results here after I have done that, most likely late saturday or sunday. |
@Tohnmeister Updated Angular to |
@tarlepp Did you try this version? npm i @bartholomej/ngx-translate-extract --save-dev |
Yep with that it works just fine, I already commented that on that PR #247 (comment) But as like @Tohnmeister said #246 (comment):
I cannot confirm that this original library works as expected with Angular |
@Tohnmeister could you provide some example repository where this repository is working with Angular |
The repository we're using this is in, is not open source unfortunately. I can provide you the exact version numbers though.
And we have this as a script in our package.json: "extract-i18n": "ngx-translate-extract --input ./src --output ../locale/myclient.pot --clean --sort --format pot --marker marker", We're using quite an old version of ngx-translate-extract. But this version had the issue described in this topic, after upgrading to Angular 13.0.1 initially. It doesn't have the issue anymore after upgrading to 13.0.3. Verified by rolling back the Angular upgrade, and setting the version back to 13.0.1. Then the issue occurred again. Re-upgraded to 13.0.3 and the issue dissappeared. Hope this helps. |
@Tohnmeister Yes, I can confirm that this very old version Stable version of You're using two years old version and 3 major versions have been released in the meantime, so it's just a coincidence that it works in this particular combination :) For me, the solution is to release this new version ( What do you think? |
I agree that the solution is to release a proper up-to-date version that supports Angular 13. Although I'd prefer having it merged in @biesbjerg's repository. What are your thoughts on LTS, etc.? |
I use latest Angular version and this bug is still present:
|
@usarskyy Try the last Angular version (v13.1.0) with ngx-translate-extract 4.2.0. It works for me. |
You're using old version of I just updated Angular to |
@tarlepp |
@usarskyy I tried with Angular |
Hey i using angular-cli version 13.1.1 and i present the same problem |
@usarskyy @alejophotoart Meanhwhile you can use fork which works with Angular 13. See this #246 (comment) |
@bartholomej The fork doesn't work for me. It fails with The issue seems to be this line https://github.com/bartholomej/ngx-translate-extract/blob/ng13/src/cli/tasks/extract.task.ts#L141 The imported Can we fix that somehow until the official library is ready for Angular 13? Thanks in advance! |
@orestisioakeimidis |
@bartholomej I know that the following is not related to this thread, but what do you think of incorporating this PR #181 in you fork? It'd be great to support some kind of context in the source strings. Thanks in advance! |
I'm using version |
Hey guys, is there any chance that the PR fixing the Angular 13 issues will be merged any time soon? We are choosing new translate library for our project, this one is great and only problem is, that its not working for Angular 13. Should we do our own fork (or use this one - #246 (comment)), or is there a chance that this will be merged soon? |
Hi @biesbjerg, I've been sponsoring you (via the @vendure-ecommerce org) for your great work on this library since Sept 2021. I just ran into this issue and I'm concerned about its resolution. As a long-time OSS maintainer, I'm familiar with the pressures and time constraints that can make it hard to keep up with a popular library. If you simply have to time/ability/desire to maintain this lib, this is completely your prerogative and I certainly would understand and respect your situation. I think just some clarification on the status of this issue/this lib would go a long way in terms of giving all of us some idea of what to do next. @bartholomej thank you for your efforts to update this 👍 |
Original lib incompatible with Angular 13, see biesbjerg/ngx-translate-extract#246
Any updates on this? |
@biesbjerg Could you provide input for this issue? This has been open a quite while, people have done PR's to fix this issue - but there isn't no feedback from your side. If this repository is not active anymore, we should start to talk about givin someone else maintainer role in this repository or just say this repository is abandonded use I really hope that you reply something. |
I'm switching my library to @bartholomej/ngx-translate-extract, seems to work like a charm with angular 13
|
Yeah, that is also what I've been using - but I think that all of us would like to know if this library is still alive or it's a dead one - and if latter - we should have some proper way to continue this awesome library - that could be giving admin rights to this original repository or even announce that this repository is dead use xxx instead. That is what I've been looking for a while after I created this issue - seen this same happen to other repositories and it's really sad - although we don't know the reasons for this - so that is also something that we need think of. |
thanks @bartholomej for the fix. Maybe it would be a great idea to reference your version here: https://github.com/ngx-translate/core ? |
@biesbjerg Could you please at least say something? This issue has been open quite long time and you haven't given any input from your side. |
@tarlepp I just migrated from ngx-translate to https://ngneat.github.io/transloco/docs/migration/ngx just in case helps you. |
I see that |
yes it does, have a look into https://github.com/ngneat/transloco-keys-manager |
Nice, thanks for sharing - I'll take a closer look about that transloco and most likely migrate to use it. |
Was there any response from the owner in the last year? |
No, there wasn't. Additionally, I sent @biesbjerg a mail last year, without any response. I hope he's okay. |
Nope, haven't seen any replies from @biesbjerg |
Sad. Are there any plans to take it over (e,g, |
@Tohnmeister I think, he is. Github reports 17 contributions this year: |
It's pretty clear that Kim is no longer maintaining this project, for whatever reason. We need an "official" successor project + package that we can all safely migrate to. I've been using the fork from @bartholomej for the past year or so without issue, but I'm not sure whether he is willing to be the maintainer of a new successor package. If not, I have a proposal: I'm the maintainer of a popular e-commerce framework, Vendure, and we use this package in our admin UI app. I'd be willing to maintain a fork of this project and make it available under our GH & npm orgs, so the package would be This is a full-time OSS project and is backed by a company, so maintenance will be stable and reliable. What do you all think? |
That would be awesome @michaelbromley! Thanks for picking it up! |
Hi all. Before I go ahead and create a new npm package, I want to see if Bart has anything to say on the matter - better to not further fragment into competing packages if he fully intends to keep maintaining his fork & package. |
@michaelbromley I can see this repository has 58 issues unresolved and 20 pull requests. I am afraid I won't have time to take care of it in the future. I can help if I get access as a collaborator, but as I said, I won't have time to do it myself. |
any updates? |
Hi everyone, Thanks for your patience! I've now set up a fork: https://github.com/vendure-ecommerce/ngx-translate-extract and published the first release under the new org:
v8.0.3 is the first version, and nothing has changed apart from references in the readme & package.json. Thank you @biesbjerg for all the work you put in to this up till now, and for @bartholomej for keeping us all rolling for the past year or so. Bart I invited you to the repo with write access 👍 I'm not planning to go through all the issues & PRs in this repo, but I welcome issues & PRs on the new fork repo. |
After I upgraded Angular from 12 to 13 I got following error:
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: