Skip to main content

language_id_to_bcp47

Function language_id_to_bcp47 

Source
pub fn language_id_to_bcp47(
    platform_id: u16,
    language_id: u16,
) -> Option<&'static str>
Expand description

Converts a Macintosh or Windows name-table language ID to a BCP 47 tag.

platform_id is 1 for Macintosh or 3 for Windows. Other platforms do not use the language IDs in this table and return None, as do unknown IDs.