WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_locale() public WC 1.0

Set note locale.

{} It's a method of the class: Note{}

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_locale( $locale );
$locale(string) (required)
Note locale.

Code of Note::set_locale() WC 5.3.0

<?php
public function set_locale( $locale ) {
	if ( empty( $locale ) ) {
		$this->error( 'admin_note_invalid_data', __( 'The admin note locale prop cannot be empty.', 'woocommerce' ) );
	}

	$this->set_prop( 'locale', $locale );
}