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

Slang watch recursive #118

Closed
Roboroads opened this issue Dec 12, 2022 · 4 comments
Closed

Slang watch recursive #118

Roboroads opened this issue Dec 12, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Roboroads
Copy link

Motivation
Because the langfiles can become quite the list I group modules in their own directory. Slang watch does not trigger on the files in thje directories.

assets/i18n
├── alerts
│   ├── alerts.i18n.yaml
│   └── alerts_nl.i18n.yaml
├── bottomBarPage
│   ├── bottomBarPage.i18n.yaml
│   └── bottomBarPage_nl.i18n.yaml
├── errors
│   ├── errors.i18n.yaml
│   └── errors_nl.i18n.yaml
├── login
│   ├── login.i18n.yaml
│   └── login_nl.i18n.yaml
└── maintenancePage
    ├── maintenancePage.i18n.yaml
    └── maintenancePage_nl.i18n.yaml

Developer Experience
Adding a -r / --recursive option to the arguments of watch would be nice.

@Roboroads Roboroads added the enhancement New feature or request label Dec 12, 2022
@noga-dev
Copy link

noga-dev commented Dec 14, 2022

You mean watch works for you if you place all the files together?

In this issue watch doesn't seem to work at all

@Tienisto
Copy link
Member

He is refering to the custom command flutter pub run slang watch I guess. (See https://github.com/Tienisto/slang#-auto-rebuild)

In general, you should use flutter pub run slang during development because it is much faster than build_runner. You may use build_runner initially to generate everything at once but changing i18n files incrementally is kind of unstable using build_runner.

@Roboroads
Copy link
Author

He is refering to the custom command flutter pub run slang watch I guess.

This, yes.

@Tienisto
Copy link
Member

flutter pub run slang watch now works recursively in v3.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants