- Issue created by @yookoala
Drupal.t
works in the past for modules to translate strings in their javascripts.js
directive in any *.libraries.yml that has a placeholder file "core/modules/locale/locale.translation.js" key. Since the keys in these *.libraries.yml for modules are rewritten to prepend the module path, no module can add "core/modules/locale/locale.translation.js" directly to their *.libraries.ymlconsole.debug(Drupal.t('Hello string', {}, {context: 'test'}));
Drupal should provide and document the standard way for modules to use Drupal.t in their own javascripts.
None
Probably. TBD.
None
Needs work
10.3 ✨