UKismetInternationalizationLibrary::SetCurrentLanguage

Set _only_ the current language (for localization).

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

Remarks

Set only the current language (for localization).

Unless you're doing something advanced, you likely want SetCurrentLanguageAndLocale or SetCurrentCulture instead.

Returns

True if the language was set, false otherwise.

Parameters

Parameter

Description

Culture

The language 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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback