auto_local 1.0.0 copy "auto_local: ^1.0.0" to clipboard
auto_local: ^1.0.0 copied to clipboard

A command-line tool to generate localizations for your app automatically.

auto_local: #

A command-line tool to generate localizations for your app automatically.

This tool is used to generate a dart class from a JSON file. the json file path should be in assets/lang/ directory. because this tool is depend on flutter_locales2 package. the tool will keep watching for changes in assets/lang/ directory. and will generate a dart class with the name lang.dart in lib/auto_local/ directory. the class will contain all the keys in the json file.

GitHub GitHub stars



👨‍💻 Developed by: #

profile

Nasr Al-Rahbi @abom_me

👨🏻‍💻 Find me in : #

Twitter Instagram LinkedIn Stack Overflow



Install #

Use the dart pub global command to install this into your system.

$ dart pub global activate auto_local

Use #

If you have [modified your PATH][path], you can run this server from any local directory.

$ auto_local

Otherwise, you can run it using the pub global command.


$ dart pub global run auto_local

After running the tool you will listen to any changes in the json file and generate a dart class with the name lang.dart in lib/auto_local/ directory.

0
likes
130
pub points
0%
popularity

Publisher

verified publisherabom.me

A command-line tool to generate localizations for your app automatically.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ansicolor, watcher

More

Packages that depend on auto_local