_plugin_constants = $dependencies[ 'ASS_Constants' ]; } /** * Ensure that there is only one instance of ASS_I18n is loaded or can be loaded (Singleton Pattern). * * @since 1.0.0 * @access public * * @param array $dependencies Array of instances of dependencies for this class. * @return ASS_I18n */ public static function instance( $dependencies ) { if ( !self::$_instance instanceof self ) self::$_instance = new self( $dependencies ); return self::$_instance; } /** * Load plugin text domain. * * @since 1.0.0 * @access public */ public function load_plugin_textdomain() { load_plugin_textdomain( $this->_plugin_constants->TEXT_DOMAIN() , false , $this->_plugin_constants->PLUGIN_BASENAME() . '/languages' ); } } }