UKismetInternationalizationLibrary::SetCurrentCulture

Set the current culture.

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 bool SetCurrentCulture
(
    const FString & Culture,
    const bool SaveToConfig
)

Remarks

Set the current culture.

This function is a sledgehammer, and will set both the language and locale, as well as clear out any asset group cultures that may be set.

Returns

True if the culture was set, false otherwise.

Parameters

Parameter

Description

Culture

The culture to set, as an IETF language tag (eg, "zh-Hans-CN").

SaveToConfig

If true, save the new setting to the users' "GameUserSettings" config so that it persists after a reload.

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