<?php

/**
 * Define the internationalization functionality
 *
 * Loads and defines the internationalization files for this plugin
 * so that it is ready for translation.
 *
 * @link       #
 * @since      1.0.0
 *
 * @package    Esraw
 * @subpackage Esraw/includes
 */

namespace EasyShippingRate;

/**
 * Define the internationalization functionality.
 *
 * Loads and defines the internationalization files for this plugin
 * so that it is ready for translation.
 *
 * @since      1.0.0
 * @package    Esraw
 * @subpackage Esraw/includes
 */
class I18n {
	/**
	 * Load the plugin text domain for translation.
	 *
	 * @since    1.0.0
	 */
	public function load_plugin_textdomain() {

		// __FILE__ is src/I18n.php, so a single dirname points to the plugin's
		// src/ folder where the /languages directory now lives.
		load_plugin_textdomain(
			'easy-shipping-rate',
			false,
			dirname( plugin_basename( __FILE__ ) ) . '/languages/'
		);
	}
}
