FPackageLocalizationUtil::GetLocalizedRoot

Given a package path, get the localized root package for the given culture (eg, if given "/Game/MyFolder/MyAsset" and a culture of "fr", this would return "/Game/L10N/fr")

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationUtil.h

Include

#include "Internationalization/PackageLocalizationUtil.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Internationalization/PackageLocalizationUtil.cpp

Syntax

static bool GetLocalizedRoot
(
    const FString & InPath,
    const FString & InCulture,
    FString & OutLocalized
)

Remarks

Given a package path, get the localized root package for the given culture (eg, if given "/Game/MyFolder/MyAsset" and a culture of "fr", this would return "/Game/L10N/fr")

Returns

True if the conversion happened, false otherwise

Parameters

Parameter

Description

InPath

Package path to use.

InCulture

Culture code to use (if any).

OutLocalized

Localized package root.

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