MCPcopy Create free account
hub / github.com/axmolengine/axmol / getCurrentLanguageCode

Method getCurrentLanguageCode

core/platform/winrt/Application-winrt.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135const char* Application::getCurrentLanguageCode()
136{
137 static std::string code = "en";
138 auto languages = Windows::System::UserProfile::GlobalizationPreferences::Languages();
139 code = PlatformStringToString(languages.GetAt(0));
140 return code.c_str();
141}
142
143LanguageType Application::getCurrentLanguage()
144{

Callers

nothing calls this directly

Calls 2

PlatformStringToStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected