emulsify icon indicating copy to clipboard operation
emulsify copied to clipboard

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

Open nortmas opened this issue 5 years ago • 2 comments

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.

nortmas avatar Jun 19 '19 18:06 nortmas

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

welcome[bot] avatar Jun 19 '19 18:06 welcome[bot]

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

danny-englander avatar Sep 07 '19 00:09 danny-englander