Releases: vildanbina/laravel-auto-translation
Releases · vildanbina/laravel-auto-translation
v1.2.0
-
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.
- Removed the custom
-
Improved Readability:
- Refactored the
loadLanguageFiles
method to use Laravel's native array helpers. - Reduced custom logic, resulting in a cleaner and more maintainable codebase.
- Refactored the
-
Updated Comments:
- Enhanced inline comments to reflect the new implementation details using
Arr::dot()
.
- Enhanced inline comments to reflect the new implementation details using
-
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
- 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
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!