<?php
/**
 * Internationalization handler.
 *
 * @package MasterQuiz
 * @since   1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class MasterQuiz_I18n
 *
 * Handles plugin translations. Since WordPress 4.6, translations for plugins
 * hosted on WordPress.org are loaded automatically. This class is retained
 * for backward compatibility with older WordPress versions.
 *
 * @since 1.0.0
 */
class MasterQuiz_I18n {

	/**
	 * Load the plugin text domain.
	 *
	 * @since 1.0.0
	 */
	public function load_textdomain() {
		// phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- retained for backward compatibility with WordPress < 4.6.
		load_plugin_textdomain(
			'masterquiz-ai',
			false,
			dirname( MASTERQUIZ_PLUGIN_BASENAME ) . '/languages'
		);
	}
}
