language_translator 0.0.7
language_translator: ^0.0.7 copied to clipboard
A lightweight Flutter package for easy multilingual support, providing string translation with or without context, RTL support, and a custom widget for translated text display.
Changelog #
All notable changes to this project will be documented in this file.
0.0.7 #
Aug 19, 2025 #
✨ Updated #
- Updated country_code_picker version as country_code_picker: ^3.4.0
- Updated provider version as provider: ^6.1.5+1
- Updated path_provider version as path_provider: ^2.1.5
- Updated navigation_without_context: ^0.0.4
- Updated dart_data_type_parser: ^0.0.3
- Updated get_it_di_global_variable: ^0.0.6
- Updated Dart sdk to 3.9.0
- Removed
flutter_lintsDependency
0.0.6+1 #
0.0.6 #
0.0.5+1 #
0.0.5 #
Added #
HydratedLanguageCubitfor persisted language state management usinghydrated_bloc.LanguageSelectionCubitfor temporary UI-level language selection.AppLanguagerefactored with defaultLocaleandsupportedLanguages.- Extension method
sortedByName()for sortingLocalelist alphabetically. LanguageLabelUtilwith RTL support check viaisRtlmethod.- Reusable language picker bottom sheet with search functionality.
- Language toggle button using two
Localevalues.
Changed #
- Updated project architecture to follow SOLID and DRY principles across language and theme handling.
- Language configuration is now optional via
DefaultLanguageConfigwith.copyWith()support. - MaterialApp now uses
localeandthemeModefrom respective Cubits. - BlocProvider registration for language and theme Cubits moved to
get_itDI structure.
Removed #
- Redundant language setting logic duplicated across multiple classes.
0.0.4 #
-
Initial support for basic language codes:
- English (
en) - Hindi (
hi) - Bengali (
bn) - Punjabi (
pa) - Spanish (
es)
- English (
-
Extended
supportLanguagelist to include all languages supported byflutter_localizations. -
Updated
getGlobalLanguageName(String code)function to return human-readable names for all supported languages using ISO 639-1 codes. -
Included region variants like
en_US,pt_BR, andzh_TWfor better locale support.
0.0.3 #
- Upgrade Dependencies.
- Included
textAlign,textDirectionin theAppTranslatedTextView
0.0.2 #
- Upgrade Dependencies.
0.0.1 #
Initial release #
- Added support for multiple languages with default fallback.
- Translate strings with or without BuildContext.
- Included AppTranslatedTextView widget for simplified UI usage.
- Added utility for RTL language detection.
- JSON-based localization with asset loading.
- Localization delegate integration.
- Utility class for global language name access.
- Singleton pattern for core utilities.
- Supports 20+ languages out-of-the-box.