translation_manager 2.0.5 copy "translation_manager: ^2.0.5" to clipboard
translation_manager: ^2.0.5 copied to clipboard

A lightweight, GetX-inspired translation library for Flutter with automatic locale detection and Bloc integration.

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.

2.0.5 - 2026-02-22 #

Changed #

  • Added TranslationManager.init() method for simpler asynchronous initialization before runApp.
  • Redundant Directionality widget layout handling removed from guides since flutter natively interprets layout orientation directly.

2.0.4 - 2025-11-17 #

Added #

  • Initial release of Translation Manager
  • TranslationManager singleton for managing translations
  • Automatic device locale detection
  • String extensions (.tr, .trParams(), .trPlural()) for easy translation
  • Fallback locale support for missing translations
  • Parameter replacement with @paramName syntax
  • Plural translation support
  • Fixed count issue
  • Smart locale matching (exact match → language match → fallback)
  • Translations abstract class for organizing translation files
  • RTL (Right-to-Left) language support
    • Automatic detection for Arabic, Hebrew, Persian, Urdu, and Yiddish
    • isRTL property to check if current locale is RTL
    • textDirection getter for easy layout integration
  • Complete documentation and examples
  • Comprehensive test suite with 50+ test cases

Features #

  • Zero dependencies (only requires dart:ui)
  • GetX-inspired API for familiar syntax
  • Type-safe translation keys
  • Singleton pattern for global access
  • Framework agnostic - works with any state management solution
  • Support for locale persistence (with optional shared_preferences)

[Unreleased] #

Planned #

  • Nested translation keys (e.g., 'home.title'.tr)
  • Gender-based translations
  • Advanced plural rules (zero, one, two, few, many, other)
  • JSON file loading support
  • Translation key validation tools
  • Hot reload support for translations in development
  • Translation coverage analysis

For migration guides and breaking changes, see MIGRATION.md

1
likes
160
points
122
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight, GetX-inspired translation library for Flutter with automatic locale detection and Bloc integration.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on translation_manager