Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

The Drupal.t function doesn't work because of minified js. #344

Open
nortmas opened this issue Jun 19, 2019 · 2 comments
Open

The Drupal.t function doesn't work because of minified js. #344

nortmas opened this issue Jun 19, 2019 · 2 comments

Comments

@nortmas
Copy link

nortmas commented Jun 19, 2019

emulsify version: 2.7

What happened:
The Drupal.t function doesn't work in minified js.

Problem description:
When javascript is minified the argument (variable) Drupal gets replaced with b for example b.t('Skills')
If I change b to Drupal in the minified file, the word 'Skills' gets translatable in Drupal through the User interface translation.

@welcome
Copy link

welcome bot commented Jun 19, 2019

Thanks for opening your first issue here! Be sure to follow the issue template!

@danny-englander
Copy link

I just ran into this issue too. I was getting a console error that Drupal.t() was an unrecognized function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants