I'm an Angular front-end developer. I work with a team that uses Drupal for content.
The scenario is that we use Drupal.t()
to translate the strings.
When I translate the word from the back-office, it works, but I can't see the change on my page. So I tested it with another laptop from a colleague, and it works.
My colleague has drupalTranslations()
, which gives him the translated strings.
When I run this function in my browser, it doesn't work. drupalTranslations()
is not defined while Drupal
and drupalSettings
work.
Do I have to install something?
FYI: We run the project with Docker (Drupal 9.x).