Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-10276: Fix translations on webform.form.unsaved.js #1525

Merged
merged 9 commits into from
Oct 23, 2024
7 changes: 7 additions & 0 deletions public/modules/custom/grants_handler/grants_handler.install
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,10 @@ function grants_handler_update_9009(&$sandbox): void {
// Enable the grants_attachments module.
\Drupal::service('module_installer')->install(['grants_events']);
}

/**
* Manually trigger locale translation.
*/
function grants_handler_update_9010(&$sandbox): void {
_locale_parse_js_file('modules/custom/grants_handler/js/webform.form.unsaved.js');
}