<?php

namespace ModulesGarden\ProxmoxAddon\Core\Traits;

use ModulesGarden\ProxmoxAddon\Core\ServiceLocator;

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

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