libappstream::functions

Function utils_posix_locale_to_bcp47

source
pub fn utils_posix_locale_to_bcp47(locale: &str) -> Option<GString>
Expand description

Converts a POSIX locale string to the corresponding IETF BCP47 format. If the given locale is already in BCP47 format, no change will be done.

§Returns

A locale string, free with g_free()