localization_gen 1.1.0 copy "localization_gen: ^1.1.0" to clipboard
localization_gen: ^1.1.0 copied to clipboard

Type-safe localization generator for Flutter with nested JSON support, modular organization, parameter interpolation, pluralization, gender/context forms, watch mode, multi-command CLI, field rename o [...]

example/README.md

Examples #

Working examples demonstrating localization_gen usage.

Repository: https://github.com/alpinnz/localization_gen/tree/master/example

Available Examples #

1. Basic Example #

Simple single-file localization.

Location: example/basic/

Features:

  • Single JSON file per locale
  • Nested structure
  • Parameter interpolation
  • Multiple locales (English, Indonesian)

Run:

cd example/basic
flutter pub get
dart run localization_gen
flutter run

2. Modular Example #

Feature-based organization.

Location: example/modular/

Features:

  • Multiple JSON files per locale
  • Feature-based organization
  • Automatic file merging
  • Scalable structure

Run:

cd example/modular
flutter pub get
dart run localization_gen
flutter run

Quick Setup #

# Navigate to example
cd example/<example-name>

# Install dependencies
flutter pub get

# Generate localizations
dart run localization_gen

# Run app
flutter run

Learning Path #

  1. Start with basic/ for core concepts
  2. Explore modular/ for organization at scale

Configuration #

Each example has its own pubspec.yaml with localization_gen configuration.

See example files for different setup options.

1
likes
150
points
453
downloads

Publisher

unverified uploader

Weekly Downloads

Type-safe localization generator for Flutter with nested JSON support, modular organization, parameter interpolation, pluralization, gender/context forms, watch mode, multi-command CLI, field rename options, and comprehensive tooling.

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

args, path, watcher, yaml

More

Packages that depend on localization_gen