Skip to content

Releases: vildanbina/laravel-auto-translation

v1.3.2

25 Jan 10:06
Compare
Choose a tag to compare
  • Optimized translation array merging for better performance with associative arrays.
  • Enforced type casting for AI config values to prevent unexpected type issues from environment variables.

v1.3.1

18 Jan 21:08
Compare
Choose a tag to compare

Fix: Exception on dividing by zero when calculating chunk size

v1.3.0

06 Jan 15:50
Compare
Choose a tag to compare

Chat GPT Driver: Token Limit, \n Fixes, and Chunking Support

This release fixes token limit errors and \n parsing issues, adds chunking for large translations, and improves reliability with better JSON validation and token estimation using TikToken.

v1.2.0

28 Dec 22:10
37a4f6d
Compare
Choose a tag to compare
  • Replaced Custom Method:

    • Removed the custom flattenArray method.
    • Leveraged Laravel's Arr::dot() to efficiently flatten multi-dimensional arrays into dot-notated single-level arrays.
  • Improved Readability:

    • Refactored the loadLanguageFiles method to use Laravel's native array helpers.
    • Reduced custom logic, resulting in a cleaner and more maintainable codebase.
  • Updated Comments:

    • Enhanced inline comments to reflect the new implementation details using Arr::dot().
  • In-Memory Texts Support:

    • Introduced the ability to define texts programmatically in memory, enabling dynamic translations without full reliance on language files.
  • Class Renaming:

    • Refined class names for improved clarity, making the codebase more intuitive and easier to navigate.

v1.1.0

27 Dec 14:12
Compare
Choose a tag to compare
  • Preserve placeholders (e.g., :attribute) by masking/unmasking them for all drivers
  • Add support for creating custom translation drivers in config
  • README updated with custom driver instructions
  • Minor refactors and documentation improvements

v1.0.0

14 Dec 16:23
Compare
Choose a tag to compare

The first release of Laravel Auto Translation! This package automates the localization of your Laravel application's language files. Features include scanning lang/ directories, translating JSON and PHP files, and support for multiple drivers (ChatGPT, Google Translate, DeepL). Simplify your translation workflow today!