Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetInternationalizationLibra-
Description
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.
| Name | SetCurrentCulture |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetInternationalizationLibrary.h |
| Include Path | #include "Kismet/KismetInternationalizationLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetInternationalizationLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Utilities|Internationalization",
Meta=(AdvancedDisplay="1"))
static bool SetCurrentCulture
(
const FString & Culture,
const bool SaveToConfig
)
True if the culture was set, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| 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. |