flutter_localization_updater 1.0.10 copy "flutter_localization_updater: ^1.0.10" to clipboard
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 returns Future<bool> instead of Future<void>
  • checkAndUpdateLocalizations() now returns Future<bool> instead of Future<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
  • LocalizationService class for managing localization updates
  • LocalizationConfig class for configuration
  • CustomAssetLoader for 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
2
likes
145
points
38
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package that automatically updates localizations from Google Sheets and integrates with easy_localization.

Homepage

License

MIT (license)

Dependencies

dio, dotenv, easy_localization, flutter, path, path_provider, shared_preferences

More

Packages that depend on flutter_localization_updater