RealDocs

UKismetInternationalizationLibrary::GetCurrentLanguage

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

Description

Returns the language currently used for localization as an IETF language tag (e.g. "zh-Hans-CN").

Caveats & Gotchas

  • Reflects only the translation language — locale-driven formatting (dates, numbers, currency) can differ if SetCurrentLocale was called independently.
  • Use this rather than GetCurrentCulture when the intent is specifically to query the translation language.

Signature

static ENGINE_API FString GetCurrentLanguage();

Return Type

FString

Example

Branch UI text on the active language C++
if (UKismetInternationalizationLibrary::GetCurrentLanguage() == TEXT("ja"))
{
	// Use a font that supports Japanese glyphs
}

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.