Skip to content

v1.0.2 — Smart Language Detection & Auto Config Setup

Latest

Choose a tag to compare

@Happy-cyber Happy-cyber released this 08 Apr 08:55
· 7 commits to main since this release

What's New in v1.0.2

Smart Language Detection

  • Detects target languages from project config first, then falls back to locale files
  • Django: LANGUAGES in settings.py → locale dirs
  • Flask/FastAPI: SUPPORTED_LANGUAGES in config → translation dirs
  • Android: resConfigs in build.gradleres/values-* dirs
  • iOS: knownRegions in .xcodeproj.lproj dirs
  • Flutter: @@locale in .arb files

Auto Config Setup

  • --lang es,fr,de now auto-creates locale files AND updates project config
  • Works across all 6 platforms
  • Existing languages are never removed or duplicated

Input Validation

  • All CLI flags validated before pipeline starts
  • ISO 639 language code validation for --lang
  • --workers must be 1-10
  • --batch-size must be >= 0
  • --min-quality must be 0-100
  • Clear error messages with examples

Install / Upgrade

pip install -U ai-translate