Closed (fixed)
Project:
Prototype
Version:
5.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2026 at 22:06 UTC
Updated:
12 May 2026 at 20:50 UTC
Jump to comment: Most recent
In order for Drupal.t() to function, Drupal must be able to parse the built JS file that is attached to identify strings that need to be translated. This means `Drupal.t` can't be passed as a callback, as is done in the slideshow js and `Drupal.t` can't be mangled by Uglify for production builds.
1. Refactor slideshow JS to translate strings directly with Drupal.t rather than via a callback
2. Configure uglify to preserve Drupal.t when compressing JS
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jldust commentedComment #5
jldust commentedThis has been merged in and will be included in the next tagged release.