Needs review
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2026 at 15:55 UTC
Updated:
1 Nov 2026 at 08:18 UTC
Jump to comment: Most recent
_locale_parse_js_file() is a helper that is called from Locale's hook_js_alter().
It throws this exception for files that are not local:
throw new Exception('Only local files should be passed to _locale_parse_js_file().');
This is not the right behaviour.
Firstly, it prevents using processed JS files and using an 'assets://' URI for them.
Secondly, it's not up to Locale module to complain about badly-formed paths -- the libraries and assets core components should be doing that.
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
shank115 commented