po_editor_downloader 1.0.0
po_editor_downloader: ^1.0.0 copied to clipboard
CLI tool for a simple way of updating translations in Flutter from POEditor.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 #
New Features #
YAML Configuration Support
- Configure project settings in your
pubspec.yamlinstead of passing CLI arguments every time - Store API token securely in
PO_EDITOR_API_TOKENenvironment variable - Use custom config files with
--configoption - Configuration priority: CLI arguments > Environment variables > YAML config > Defaults
Progress Indicators & Verbosity Control
- See download progress for each language file: "⏳ Downloading en.arb (1/5)..."
- Color-coded output: ✅ success, ⚠️ warnings, ❌ errors
--quietmode for CI/CD (only show errors)--verbosemode for debugging (show detailed information)- Success summary when complete
Improved Reliability
- Automatic retry with exponential backoff for transient failures (network issues, server errors)
- Automatic creation of output directory if it doesn't exist
- Better error messages with detailed information when something goes wrong
Custom Filename Patterns
- Customize ARB file naming with
filename_patternoption - Use
{locale}placeholder for language code - Examples:
{locale}.arb,intl_{locale}.arb,translations_{locale}.arb - Default pattern:
app_{locale}.arb(maintains backward compatibility)
Improvements #
- All CLI arguments are now optional when using YAML configuration
- Security warning if API token is found in YAML files (use environment variable instead)
Breaking Changes: None - fully backward compatible with existing CLI usage
0.3.0 #
- test: Added tests.
- docs: Added docs on methods.
0.2.2 #
- docs: Updated readme.
0.2.1 #
- docs: Updated readme.
0.2.0 #
- Initial script release.