# packeta/1.6.1/src/Packetery/Module/Order/ValidatorTranslations.php

Packeta, version 1.6.1. 41 lines.

- Page: https://pluginprobe.com/plugins/packeta/1.6.1/code/src/Packetery/Module/Order/ValidatorTranslations.php
- Raw: https://pluginprobe.com/plugins/packeta/1.6.1/raw/src/Packetery/Module/Order/ValidatorTranslations.php
- Modified: 2023-08-30T08:36:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/1.6.1/code/src/Packetery/Module/Order/ValidatorTranslations.php#L10-L20`.

```php
<?php
/**
 * Class ValidatorTranslations.
 *
 * @package Packetery
 */

declare( strict_types=1 );

namespace Packetery\Module\Order;

use Packetery\Core\Validator;

/**
 * Class ValidatorTranslations.
 *
 * @package Packetery
 */
class ValidatorTranslations {

	/**
	 * Translations with specified keys.
	 *
	 * @return array
	 */
	public function get(): array {
		return [
			Validator\Order::ERROR_TRANSLATION_KEY_NUMBER  => __( 'Order number is not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_NAME    => __( 'Customer name is not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_VALUE   => __( 'Order value is not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_PICKUP_POINT_OR_CARRIER_ID => __( 'Pickup point or carrier id is not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_ESHOP   => __( 'Sender label is not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_WEIGHT  => __( 'Weight is not set or is zero.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_ADDRESS => __( 'Address is not set or is incomplete.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_SIZE    => __( 'Order dimensions are not set.', 'packeta' ),
			Validator\Order::ERROR_TRANSLATION_KEY_CUSTOMS_DECLARATION => __( 'Customs declaration is not set.', 'packeta' ),
		];
	}

}

```
