Use the symfony trannslator as dependency of your service or class and access your snippet like this example.
$label = $this->translator->trans(‘your-label’);
Use the symfony trannslator as dependency of your service or class and access your snippet like this example.
$label = $this->translator->trans(‘your-label’);