The Localization Tool comes with some handy functions to control localization in your game:

Setting text in C++

FText Text = LOCALIZATION_TEXT("SwitchButton_en");

The parameter in LOCALIZATION_TEXT is the key in the csv configuration table, which will be searched and assigned from all CSVs.

But if you have duplicate keys, this method may produce incorrect results.

FText Text = NLOCALIZATION_TEXT("DemoLocalization", "SwitchButton_en");

NLOCALIZATION_TEXT:This method is more optimized and can search more accurately.

Get a list of available languages

Returns a list of language codes that the system can use. This is derived from multiple language-xx columns in the csv file.

Untitled

GET_LOCALIZATION_TOOL().GetAvailableLanguages();
ULocalizationToolLibrary::GetAvailableLanguage();

Get current language

Returns the code of the language currently in use.