locale_event_get_language()

Get the current language from a LOCALE_INFO event.

Synopsis:

#include <bps/locale.h>
 
BPS_API const char* locale_event_get_language(bps_event_t *event)

Arguments:

event
The LOCALE_INFO event to extract the current language from.

Library:

libbps

Description:

The locale_event_get_language() function extracts the current language (for example, en, fr, es, and so on) from the specified LOCALE_INFO event.

Returns:

The current language.