UKismetInternationalizationLibrary::GetCurrentLocale

Get the current locale (for internationalization) as an IETF language tag:

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetInternationalizationLibrary.h

Include

#include "Kismet/KismetInternationalizationLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetInternationalizationLibrary.cpp

Syntax

static FString GetCurrentLocale()

Remarks

Get the current locale (for internationalization) as an IETF language tag:

  • 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