Is there a way to dynamically (i.e. from JS code) set/change the language of error messages, using the existing translations available in the repo?
Non-solution #1: Loading a localization script (<script type="text/javascript" src="localization/messages_XX.js">) won't work because it cannot be changed on the client-side.
Non-solution #2: Setting custom messages with setDefaults requires me to come up with my own strings instead of reusing the existing ones.