Active
Project:
Drupal core
Version:
main
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2026 at 14:32 UTC
Updated:
22 Sep 2026 at 14:32 UTC
Jump to comment: Most recent
Setting string translations in settings.php via overriding "locale_custom_strings_en" (or whatever langcode is being used) does not work in Javascript via Drupal.t().
Override a string by adding it to "locale_custom_strings_en" in settings.php.
Load the string in JS via Drupal.t().
Include string overrides via settings.php in the JS string translation system.
Fix the bug.
Add test coverage.
Drupal.t() usage will include strings overridden via settings.php.
TBD
TBD
TBD
TBD
Comments