RealDocs

UKismetInternationalizationLibrary::GetCurrentCulture

function Engine Blueprint Since unknown
#include "Kismet/KismetInternationalizationLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns the current culture as an IETF language tag (e.g. "zh-Hans-CN"), combining the current language and locale.

Caveats & Gotchas

  • Exists for legacy API parity with SetCurrentCulture and is functionally identical to GetCurrentLanguage — prefer GetCurrentLanguage in new code when you specifically mean the language.
  • The returned tag can include script and country subtags (e.g. "zh-Hans-CN"), so don't assume it's always a bare two-letter code when parsing it.

Signature

static ENGINE_API FString GetCurrentCulture();

Return Type

FString

Example

Log the active culture C++
UE_LOG(LogTemp, Log, TEXT("Culture: %s"), *UKismetInternationalizationLibrary::GetCurrentCulture());

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.