MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetLocales

Method GetLocales

Source/Engine/Localization/Localization.cpp:399–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399Array<String> Localization::GetLocales()
400{
401 Array<String> result;
402 auto& settings = *LocalizationSettings::Get();
403 for (auto& e : settings.LocalizedStringTables)
404 {
405 auto table = e.Get();
406 if (table && !table->WaitForLoaded())
407 result.AddUnique(table->Locale);
408 }
409 return result;
410}

Callers

nothing calls this directly

Calls 4

WaitForLoadedMethod · 0.80
AddUniqueMethod · 0.80
GetFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected