SDL_Locale(3type)

πŸ’… SDL_Locale(3type) β€” SDL3 DATATYPES πŸ’…

okay bestie, welcome to the SDL_Locale(3type) page. this is where SDL3 keeps its locale data struct energy. 🫢


✨ NAME ✨

SDL_Locale β€” a struct to provide locale data.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_locale.h>

typedef struct SDL_Locale
{
    const char *language;  /**< A language name, like "en" for English. */
    const char *country;  /**< A country, like "US" for America. Can be NULL. */
} SDL_Locale;

🌸 DESCRIPTION 🌸

Locale data is split into a spoken language, like English, and an optional country, like Canada. The language will be in ISO-639 format (so English would be "en"), and the country, if not NULL, will be an ISO-3166 country code (so Canada would be "CA").


πŸ”₯ AVAILABILITY πŸ”₯

This function is available since SDL 3.2.0.


πŸ‘‘ SEE ALSO πŸ‘‘

SDL_GetPreferredLocales(3)


mwah πŸ’‹ this page is brought to you by Simple Directmedia Layer, version SDL 3.4.18, and it’s literally the SDL_Locale(3type) page. periodt. πŸŽ€

πŸ“¦ where this page comes from