-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add support for translations in in-repo addons #480
Add support for translations in in-repo addons #480
Conversation
ec3d62b
to
2bdc648
Compare
The changes look fine to me, but i'm not sure if the test case is correctly testing your changes. I think the test case should correctly catch whether there is unused translations with in the in-repo addon and also checking that an addon translations that is used in the app is not considered unused. Also a question, would it better to run |
@Mikek2252 I'm not sure if I fully understand what you're saying, but maybe it's good that I explain my thoughts behind it. In our codebase we mainly use in-repo addons for the separation of concerns, so as if it's normal For the test case I didn't mix it indeed though, so in To answer your question about running it independently in the in-repo addon: I understand the question, but I think that is not necessarily desired (, at least not in our codebase). As in-repo addons are only used in the app that they're in, it makes sense that they can depend on translations that are not in the addon, so then it makes less sense to mark such translations as missing. If desired (and if support for |
55f5003
to
e0163db
Compare
@robinborst95 Yeah that seems reasonable enough was more curiosity. As for the test cases i was thinking you may want one that checks the command fails when :
|
e0163db
to
3511aea
Compare
@Mikek2252 good suggestions, I've added them 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, sorry i have been busy this week, but LGTM. I will check out your other PR's before i create a release if i have any comments i will make a release so you dont need to wait to use the changes
So it looks like an update to eslint 8 got merged which is why the node10 tests are failing, I will create a breaking release to officially drop support for node 10 then i will merge this |
3511aea
to
8f37e32
Compare
8f37e32
to
f59f331
Compare
In our codebase I tried out this addon and I realized that in-repo addons were not supported yet (already issued a while ago). It seemed easy to add though, so I gave it a try to get it working for us at least. I got it to work, but before I look into adding tests, let me know if this is a good approach and if maybe more use cases with in-repo addons should be supported.
Note: I don't know if running the tests needs to be explicitly allowed because this is my first PR here, but locally the tests still pass at least.I added a test already as I was curious how the tests worked, so now there is proof it works :)