This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Releases: ahmed-rashad-alnaggar/muhawil
Releases · ahmed-rashad-alnaggar/muhawil
v2.0
New Features
- The missing translations handling logic has been extracted into a reusable trait
HasMissingTranslationValueHandler. This improves flexibility and allows for easier customization of missing translation handling across different classes.
Improvements
- PHP Dumper: Output formatting now is short array syntax.
Refactors
- Reformatted all scripts to PSR-12.
- Removed
$argumentsparameter from allFileDumperinterfaces. FileDumper::dump()now uses variadic arguments.FileDumpermissing translation callback now receives(key, path)instead of(path, key).- JSON Dumper: Simplified the
formatmethod by directly accepting$flagsas a parameter instead of an array of arguments. - XLIFF Dumper: Refactored the
formatmethod to accept individual parameters (sourceLocale,targetLocale,legacy, andfileId) instead of an array of arguments. - YAML Dumper: Simplified the
formatmethod to accept a$dryparameter instead of an array of arguments. - Type hinting improvements throughout codebase.
Documentation
- Updated documentation to reflect the changes.
- Documented the MO and PO loaders and dumpers delimiter parameters.
v1.1.0
Refactor dump and format methods for the MO and PO file dumpers to accept metadata directly as a parameter not as a key in the arguments parameter array
- Changed $arguments to $metadata
- The $metadata array now directly holds metadata information
- This change simplifies the function by directly passing metadata without additional wrapper arguments
- Updated the Documentation accordingly
v1.0.1
Added the package requirements to the documentation
v1.0
بسم الله