Thank you for this information, the hook work great.
Wouln’d it be a good idea to add a hook for most multi languge extension (at least until Gutenberg natively support it (finger crossed!)). A simple addition to the code could do the trick :
// Set Captcha language
function mosparoOverrideMessages($options)
{
// Match WPML language if available
if (has_action('wpml_current_language')) {
$options['language'] = apply_filters( 'wpml_current_language', NULL );
// Match Polylang language if available
} elseif(function_exists(pll_current_language)) {
$options['language'] = pll_current_language();
}
return $options;
}
add_filter('mosparo_integration_filter_frontend_options', 'mosparoOverrideMessages');