FGenericPlatformMisc::GetDefaultLanguage

Get the default language (for localization) used by this platform.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp

Syntax

static FString GetDefaultLanguage()

Remarks

Get the default language (for localization) used by this platform.

This is typically the same as GetDefaultLocale unless the platform distinguishes between the two.

This should be returned in IETF language tag form:

  • A two-letter ISO 639-1 language code (eg, "zh").

  • An optional four-letter ISO 15924 script code (eg, "Hans").

  • An optional two-letter ISO 3166-1 country code (eg, "CN").

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss