FPackageLocalizationUtil

Utility functions for dealing with localized package names

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "Internationalization/PackageLocalizationUtil.h"

Syntax

struct FPackageLocalizationUtil

Remarks

Utility functions for dealing with localized package names

Functions

Name Description

Public function Static

bool

 

ConvertLocalizedToSource

(
    const FString& InLocalized,
    FString& OutSource
)

Converts a localized version of a package path to the source version (by removing /L10N/` from the package path, if present) Note: This does not check whether the source package exists_

Public function Static

bool

 

ConvertSourceToLocalized

(
    const FString& InSource,
    const FString& InCulture,
    FString& OutLocalized
)

Converts a source version of a package path to the localized version for the given culture (by adding /L10N/` to the package path) Note: This does not check whether the source package exists_

Public function Static

bool

 

GetLocalizedRoot

(
    const FString& InPath,
    const FString& InCulture,
    FString& OutLocalized
)

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")

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