<?php
/**
 * Internationalisation stub.
 *
 * Since WordPress 4.6, plugins hosted on WordPress.org have their translations
 * loaded automatically from the Language Packs system. Calling
 * load_plugin_textdomain() is no longer required and is flagged by Plugin Check.
 *
 * This class is kept so the hook registration in Plugin.php remains unchanged
 * and the architecture stays consistent for future i18n extensions.
 *
 * @package Donatico
 */

declare(strict_types=1);

namespace Donatico;

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

/**
 * No-op i18n class — translations are served automatically by WordPress.org.
 */
class I18n {

	/**
	 * Previously loaded the plugin text domain.
	 * Now a no-op: WordPress auto-loads translations for plugins on wp.org.
	 *
	 * @return void
	 */
	public function loadPluginTextDomain(): void {
		// Intentionally empty — WordPress 4.6+ handles this automatically.
	}
}
