SpecRunner::get_action_locale( Array $action_locales )

Get the action locale that matches the note locale, or fall back to the en_US locale.


Description Description


Parameters Parameters

$action_locales

(Required) The locales from the spec's action.


Top ↑

Return Return

(object) The matching locale, or the en_US fallback locale, or null if neither was found.


Top ↑

Source Source

File: packages/woocommerce-admin/src/RemoteInboxNotifications/SpecRunner.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.