Okay
  Public Ticket #3789211
Getting the Current language aware service name
Open

Comments

  •  1
    Himanshu started the conversation

    As mentioned by Stefan in the related ticket. I am using


    $container = require AMELIA_PATH . '/src/Infrastructure/ContainerConfig/container.php';
    $serviceRepository = $container->get('domain.bookable.service.repository');
    $services = $serviceRepository->getAll()->toArray();


    to access the Services and then access the "Name". However the problem is the "Name" obtained this way is not language aware.
    In my site I have EN and RU(default) languages setup using Polylang. Is there any way to get the title say for EN and then RU separately?

    I would be able to conditionally displaying them based on current language selected