esskar / vscode-flutter-i18n-json

VS Code extension to create a binding between your translations from .json files and your Flutter app.
92 stars 21 forks source link

Automatically watch json files and update? #40

Open jtlapp opened 4 years ago

jtlapp commented 4 years ago

This tool is wonderfully simple to use. The only other thing I could ask for is a way to automatically watch for changes in the json files and run the updater. Is there a way to do this? Sorry, I'm new to Flutter, in case this is obvious. If not obvious, it would be nice to document it.

jtlapp commented 4 years ago

What would it take to get this working with build_runner, so that updates happen in the background?

fryette commented 4 years ago

It would be cool if we can run it from terminal. If so, we can just install another extension which will run command on save. Like this https://marketplace.visualstudio.com/items?itemName=wk-j.save-and-run

gnudles commented 3 years ago

I wrote a cli in pure dart for that plugin that generates the dart file from the jsons... check if out here https://github.com/gnudles/dart_i18n_generator