Site icon Hip-Hop Website Design and Development

I show messages utilizing code snippets however how can I exploit the proper language?

I exploit code snippets to show messages in my website, for instance, subsequent to the "Post Comment" button I show the textual content "Your message will only be visible after manual moderation". I exploit this code for that:

add_action( 'comment_form', 'wpse_93795_comment_form' );
perform wpse_93795_comment_form( $post_id ) {
    printf( '<span class="submit-comment-note">%s</span>',
      __( 'Your message will solely be seen after guide moderation', 'your_text_domain' ) );
}

My query is: Can have a "switch" right here to jot down a textual content relying on the language?
For instance, if the language set within the website is English I need to show ‘Your message will solely be seen after guide moderation’
But when language is Spanish I need to show "Su mensaje sólo será visible tras ser manualmente revisado"

I exploit Polylang for having completely different languages within the website.
Thanks