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