<?php

namespace PureCharity\Base;

class I18nController extends BaseController {
    
    public $moduleConfig;
    private $domain;


    function __construct($moduleConfig) {

        $this->moduleConfig = $moduleConfig;
    }

    /**
	 * Load the plugin text domain for translation.
	 *
	 * @since 1.0.0
	 */
	public function loadPluginTextdomain() {

		load_plugin_textdomain(
			$this->moduleConfig['plugin']['name'],
			false,
			(
                $this->moduleConfig['base']['path'] .'/languages/'
            )
		);
	}
}