<?php

declare (strict_types=1);
namespace PoP\Root\Services;

use PoP\Root\Facades\Translation\TranslationAPIFacade;
use PoP\Root\Translation\TranslationAPIInterface;
/** @internal */
trait StandaloneServiceTrait
{
    protected function getTranslationAPI() : TranslationAPIInterface
    {
        return TranslationAPIFacade::getInstance();
    }
    /**
     * Shortcut function
     */
    protected function __(string $text, string $domain = 'default') : string
    {
        return $this->getTranslationAPI()->__($text, $domain);
    }
}
