Strings not translatable

Created on 17 May 2023, over 1 year ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

I have tried to translate Join group and Leave group from the translation interface but that didn't work for me, seems the t() function was missing.

Proposed resolution

fix.
$build = Link::createFromRoute(t('Join group'), 'entity.group.join', $link_params)->toString();
$build = Link::createFromRoute(t('Leave group'), 'entity.group.leave', $link_params)->toString();

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇲🇦Morocco youkho

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024