Locale

Information about localization.

Header#include "nativeui/locale.h"
Namespacenamespace nu
Typeclass

Class methods

std::string GetCurrentIdentifier()

Return current locale identifier string.

Return

std::string

std::vector<std::string> GetPreferredLanguages()

Return an ordered list of user's preferred languages.

Users choose a primary language when configuring a device, they may also specify one or more secondary languages in order of preference for use when localization is unavailable in a higher priority language.

Use this API to obtain the current user's ordered list of languages, presented as an array of locale identifier strings.

Return

std::vector<std::string>