Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Releases: ahmed-rashad-alnaggar/muhawil

v2.0

12 Mar 00:42

Choose a tag to compare

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 $arguments parameter from all FileDumper interfaces.
  • FileDumper::dump() now uses variadic arguments.
  • FileDumper missing translation callback now receives (key, path) instead of (path, key).
  • JSON Dumper: Simplified the format method by directly accepting $flags as a parameter instead of an array of arguments.
  • XLIFF Dumper: Refactored the format method to accept individual parameters (sourceLocale, targetLocale, legacy, and fileId) instead of an array of arguments.
  • YAML Dumper: Simplified the format method to accept a $dry parameter 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

29 Jul 19:35

Choose a tag to compare

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

28 Jul 00:27

Choose a tag to compare

Added the package requirements to the documentation

v1.0

21 Jul 02:42

Choose a tag to compare

بسم الله