UKismetInternationalizationLibrary::SetCurrentLanguage
#include "Kismet/KismetInternationalizationLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Sets only the current language used for localization (translated text), leaving locale-driven formatting unchanged.
Caveats & Gotchas
- • Setting language without locale can produce a mismatched experience (e.g. French text with US date formatting) — most games should call SetCurrentLanguageAndLocale or SetCurrentCulture instead.
- • Returns false without changing anything if no localization data is installed for the requested culture.
Signature
static ENGINE_API bool SetCurrentLanguage(const FString& Culture, const bool SaveToConfig = false); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Culture | const FString& | The language to set, as an IETF language tag (e.g. "zh-Hans-CN"). | — |
| SaveToConfig | const bool | If true, persists the setting to the user's GameUserSettings config. | false |
Return Type
bool Example
Set language only (advanced use) C++
UKismetInternationalizationLibrary::SetCurrentLanguage(TEXT("de")); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?