/** * @param string $dir * @param \lean\i18n\Context $context */ public function __construct($dir, Context $context) { $this->dir = $dir; $this->locale = $context->getLocale(); }