flutter_localization_updater 1.0.10
flutter_localization_updater: ^1.0.10 copied to clipboard
A Flutter package that automatically updates localizations from Google Sheets and integrates with easy_localization.
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.0 2024-01-XX #
Added #
- Timeout functionality to prevent app hanging during translation updates
- Background update method (
startBackgroundUpdate()) for non-blocking updates - Configurable timeout duration in
LocalizationConfig - Network request timeouts for Dio HTTP requests
- Return values for update methods to indicate success/failure
Changed #
updateLocalizations()now returnsFuture<bool>instead ofFuture<void>checkAndUpdateLocalizations()now returnsFuture<bool>instead ofFuture<void>- Default timeout of 5 seconds for translation updates
- Better error handling and logging for timeout scenarios
Features #
- App continues with cached translations if update times out
- Background updates continue even after timeout
- Network requests are properly timed out to prevent hanging connections
- Failed updates are logged but don't crash the app
1.0.0 2024-01-XX #
Added #
- Initial release of flutter_localization_updater
LocalizationServiceclass for managing localization updatesLocalizationConfigclass for configurationCustomAssetLoaderfor easy_localization integration- Support for Google Sheets API integration
- Automatic translation fetching and caching
- Multi-language support
- Configurable update intervals
- Fallback to bundled assets when dynamic files are unavailable
Features #
- Fetch translations from Google Sheets automatically
- Save translations to local JSON files
- Integrate seamlessly with easy_localization
- Smart caching to avoid unnecessary API calls
- Support for nested translation keys
- Error handling and fallback mechanisms