Skip to content
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

Is there a way to change output folder of i18n.dart? #60

Open
Elvis5566 opened this issue Apr 25, 2019 · 4 comments
Open

Is there a way to change output folder of i18n.dart? #60

Elvis5566 opened this issue Apr 25, 2019 · 4 comments
Assignees

Comments

@Elvis5566
Copy link

My project has a path dependency package, which has some common widgets for different apps.
I'd like to move i18n to sub-package.
Is there a way to change the output folder to my_package/lib/generated ?

Thank you

@noordawod
Copy link
Contributor

Why not have the my_package/lib/generated import the file instead?

@Elvis5566
Copy link
Author

Elvis5566 commented Apr 26, 2019

Since my_package has no dependency to my_app, I can only import i18n.dart via relative path.
However, in this way, there are some shortcomings:

  1. IDE may not be able to auto import for me by using OPTION + ENTER.
  2. if I change file path, I'll have to revise those imports.

That's why I need a way to change output folder or i18n root folder (the folder that contains 'res' and 'lib')

@noordawod
Copy link
Contributor

Well, it's a good idea nonetheless. What do you think @long1eu? Could this be configurable, maybe in pubspec.yaml, so that the plugin picks it up automatically?

@Purus
Copy link

Purus commented May 5, 2019

How about having as option in IDE settings?

@noordawod noordawod self-assigned this Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants