How to add a note text in the order email?

The text can be adapted on the one hand in the template or with a template designer or also in the translation file. A possibility to solve this via the functions.php is possible with the following code.

add_action( 'woocommerce_email_before_order_table', 'rabatt_text_hinweismail', 1 );
function rabatt_text_hinweismail() {
  $text = "Beispieltext";
   echo $text;
}