Get the current locale language and country.
#include <bps/locale.h>
BPS_API int locale_get(char **language,
char **country)
BlackBerry 10.0.0
The current locale language.
The current locale country.
The locale_get() function gets the current locale language and country that is set on the device. Upon success, the caller is responsible for freeing all buffers that are returned using bps_free().
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.