<?php

namespace ModulesGarden\Servers\ProxmoxVps\Core\Traits;

use ModulesGarden\Servers\ProxmoxVps\Core\ServiceLocator;

trait Lang
{
    /**
     * @var null|\ModulesGarden\Servers\ProxmoxVps\Core\Lang\Lang
     */
    protected $lang = null;

    public function loadLang()
    {
        if ($this->lang === null)
        {
            $this->lang = ServiceLocator::call('lang');
        }
    }
}