php – symfony 4 translates entity fields

I have developed a multilingual website based on Symfony4. Structure of one of the tables:

+-----------+--------------+------+-----+---------+----------------+
| Field     | Type         | Null | Key | Default | Extra          |
+-----------+--------------+------+-----+---------+----------------+
| id        | int(11)      | NO   | PRI | NULL    | auto_increment |
| title_en  | varchar(255) | NO   |     | NULL    |                |
| title_fr  | varchar(255) | NO   |     | NULL    |                |
| title_de  | varchar(255) | NO   |     | NULL    |                |
| parent_id | int(11)      | NO   |     | NULL    |                |

How can the appropriate column in the template be optimally selected, depending on the user's locale?

How bad is the approach below to get the required entity field?

Namespace App Entity;

use Doctrine ORM Mapping as ORM;

/**
 * Category
 *
 * @ORMTable(name="category")
 * @ORMEntity
 */
class Category
{
    /**
     * @var int
     *
     * @ORMColumn(name="id", type="integer", nullable=false)
     * @ORMId
     * @ORMGeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORMColumn(name="title_en", type="string", length=255, nullable=false)
     */
    private $titleEn;

    /**
     * @var string
     *
     * @ORMColumn(name="title_fr", type="string", length=255, nullable=false)
     */
    private $titleFr;

    /**
     * @var string
     *
     * @ORMColumn(name="title_de", type="string", length=255, nullable=false)
     */
    private $titleDe;

    /**
     * @var int
     *
     * @ORMColumn(name="parent_id", type="integer", nullable=false)
     */
    private $parentId = '0';



    public function getId(): ?int
    {
        return $this->id;
    }

    public function getLocalizedTitle(): ?string
    {
        $locale='title'.ucfirst($GLOBALS('request')->getLocale());
        return  $this->{$locale};
    }

    public function getTitleEn(): ?string
    {
        return $this->titleEn;
    }

    public function setTitleEn(string $titleEn): self
    {
        $this->titleEn = $titleEn;

        return $this;
    }

    public function getTitleDe(): ?string
    {
        return $this->titleDe;
    }

    public function setTitleDe(string $titleDe): self
    {
        $this->titleDe = $titleDe;

        return $this;
    }

    public function getParentId(): ?int
    {
        return $this->parentId;
    }

    public function setParentId(int $parentId): self
    {
        $this->parentId = $parentId;

        return $this;
    }


}

Then in view, we simply use the field

{{ job.category.getLocalizedTitle }}