RealDocs

UKismetInternationalizationLibrary::SetCurrentLocale

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

Description

Sets only the current locale used for internationalization (date, number, and currency formatting), leaving the display language unchanged.

Caveats & Gotchas

  • Does not change which translated strings are shown, only formatting conventions — combine with SetCurrentLanguage, or use SetCurrentLanguageAndLocale instead, to change both together.
  • Rarely needs to be called on its own; most games only ever need SetCurrentLanguageAndLocale.

Signature

static ENGINE_API bool SetCurrentLocale(const FString& Culture, const bool SaveToConfig = false);

Parameters

Name Type Description Default
Culture const FString& The locale 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 locale only (advanced use) C++
UKismetInternationalizationLibrary::SetCurrentLocale(TEXT("en-GB"));

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.