Monday, 24 October 2022

Drupal 9 - drupalTranslations is not defined

I'm an Angular front end dev, I work with a team that uses Drupal for content.

The scenario is that we use the Drupal.t() method 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 a function in his browser which is "drupalTranslations", it gives him the translated strings.

When I run this function in my browser, it doesn't work, it gives me "drupalTranslations is not defined" while "Drupal" and "drupalSettings" work!

Error Message

Do I have to install something?

FYI: We run the project with Docker ( Drupal 9.x ).

Thanks in advance.



from Drupal 9 - drupalTranslations is not defined

No comments:

Post a Comment