multilingo 1.1.1 copy "multilingo: ^1.1.1" to clipboard
multilingo: ^1.1.1 copied to clipboard

Automatic localization package for Flutter with CLI tool for generating translations using Free Translate API. Features type-safe keys, runtime locale switching, and beautiful terminal UI.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.1.1 - 2025-11-22 #

Added #

  • Global Context Support: Added Multilingo.navigatorKey to enable context-less translations
  • Simplified Usage: LocaleKeys now return translated strings directly without needing .tr(context)
  • Multilingo Class: New class to manage global state and configuration

Changed #

  • Updated LocaleKeys generation to use static getters with internal .tr() call
  • Updated String.tr() extension to try using global context if local context is not provided

1.1.0 - 2025-11-22 #

Fixed #

  • CLI tool bug: Now generates locale_keys.dart in user's project lib/ directory instead of package lib/ directory
  • LocaleKeys implementation: Changed from getters with .tr() to const String values for better performance
  • String extension: Added .tr(context) extension method to String class in main package

Changed #

  • Updated example app to demonstrate proper LocaleKeys usage with .tr(context) pattern
  • Updated README with correct usage examples showing LocaleKeys.key.tr(context) pattern
  • Improved documentation for placeholder/dynamic text usage

1.0.2 - 2025-11-22 #

Added #

  • LocaleKeys generation: CLI tool now generates lib/locale_keys.dart with type-safe translation keys
  • String extension .tr() for easy translation access
  • Support for direct usage like Text(LocaleKeys.appName) without context
  • Automatic camelCase conversion for property names

Changed #

  • Updated README with CLI tool usage and LocaleKeys examples
  • Improved documentation with type-safe key usage

1.0.1 - 2025-11-22 #

Added #

  • CLI tool for interactive translation generation (dart run multilingo:generate)
  • Beautiful terminal UI with progress tracking
  • Interactive language selection

Fixed #

  • Terminal display issues with non-Latin scripts in CLI
  • Simplified language names for better terminal compatibility

1.0.0 - 2025-11-21 #

Added #

  • Initial release of Multilingo
  • AppLocalizations class for loading and accessing translations
  • FlutterAutoL10n utility for programmatic translation generation
  • Support for 40+ languages via Free Translate API
  • Automatic fallback to English if translation file not found
  • Retry logic for API calls
  • Progress callbacks for translation generation
  • Comprehensive documentation and examples

Features #

  • 🌍 Automatic translation generation
  • 🎯 Simple, intuitive API
  • 🚀 Runtime locale switching
  • 📦 Minimal dependencies
  • 🆓 100% free - no API keys required
0
likes
130
points
203
downloads

Publisher

unverified uploader

Weekly Downloads

Automatic localization package for Flutter with CLI tool for generating translations using Free Translate API. Features type-safe keys, runtime locale switching, and beautiful terminal UI.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_localizations

More

Packages that depend on multilingo