Skip to content

Releases: vildanbina/laravel-auto-translation

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!