Added: onGetJsTranslations event allows the plugins to add their own JS translations
(cherry picked from commit 98d0ced)