Skip to content

Releases: swift-foundations/swift-translating

Release 0.3.0

Choose a tag to compare

@coenttb coenttb released this 05 Aug 10:55

Expose Translations library for public API access

0.1.1

Choose a tag to compare

@coenttb coenttb released this 27 Jul 15:03

Release 0.1.1: compilation and performance optimizations

0.1.0

Choose a tag to compare

@coenttb coenttb released this 27 Jul 15:05

Release 0.1.0

0.0.1

Choose a tag to compare

@coenttb coenttb released this 25 Jul 12:07

Release Notes - v0.0.1

🚀 Initial Release

This is the inaugural release of swift-translating, a comprehensive Swift package for cross-platform internationalization and localization.

✨ Features

Core Translation System

  • 180+ Language Support with ISO 639-1/639-2 codes and intelligent fallback chains
  • Type-Safe API with compile-time safety for language handling and translations
  • Modular Architecture - import only the components you need

Translation APIs

  • Dictionary Literal Syntax for efficient translation creation
  • Parameter-Based Initialization with clean syntax for specific languages
  • String Literal Support for simple use cases
  • Generic Translation Support for any type, not just strings

Advanced Features

  • Intelligent Fallbacks based on linguistic relationships (e.g., Afrikaans → Dutch → English)
  • Singular/Plural Forms with SinglePlural container for grammatical number variations
  • Localized Date Formatting with automatic locale-aware date formatting
  • Dependency Injection seamless integration with Swift Dependencies
  • String Operations with translation preservation during concatenation and manipulation

Performance & Testing

  • Performance Optimized with lazy evaluation, caching, and O(1) dictionary lookups
  • Swift Testing Integration with built-in testing support and proper dependency isolation

🏗️ Architecture Improvements

  • Complete Package Restructure with simplified Package.swift organization
  • Modular Component System allowing selective imports:
    • Language - Core language support
    • Translated & TranslatedString - Translation containers
    • Translating_Dependencies - Dependency injection
    • SinglePlural - Singular/plural handling
    • DateFormattedLocalized - Date formatting
    • Translating - Complete system

🎯 Platform Support

  • iOS 16.0+
  • macOS 13.0+
  • Mac Catalyst 16.0+
  • tvOS 16.0+
  • watchOS 9.0+

📚 Documentation

Comprehensive documentation included with:

  • Quick start guide and installation instructions
  • Usage examples for all major features
  • Performance optimization tips
  • Architectural overview and component descriptions

Full Changelog: https://github.com/coenttb/swift-translating/commits/0.0.1