Explaining add-on
Translations & observers
Deliver the same explanation in English, Danish, or your own catalogue without changing evaluation semantics.
Translate presentation, not mathematics.
Step data carries stable keys and values. Choose a locale at the edge of your application, extend the catalogue when needed, and keep your domain logic language-neutral.
$translator = Translations::create('da');
$explanation = (new Explainer($translator))->explain('(5*2)*2');