l10n_gen 1.0.0+1 copy "l10n_gen: ^1.0.0+1" to clipboard
l10n_gen: ^1.0.0+1 copied to clipboard

Generates Dart localization files from JSON, making them easier to work with leveraging Dart's type system.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate l10n_gen

Use it

The package has the following executables:

$ l10n_gen

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add l10n_gen

With Flutter:

 $ flutter pub add l10n_gen

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  l10n_gen: ^1.0.0+1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:l10n_gen/config.dart';
import 'package:l10n_gen/generator.dart';
import 'package:l10n_gen/l10_gen.dart';
import 'package:l10n_gen/models.dart';
import 'package:l10n_gen/processor.dart';
import 'package:l10n_gen/utils.dart';
0
likes
140
points
11
downloads

Publisher

verified publisherokellogerald.com

Weekly Downloads

Generates Dart localization files from JSON, making them easier to work with leveraging Dart's type system.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

path, yaml

More

Packages that depend on l10n_gen