PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

LocalizationService

Show deprecated

LocalizationService

Show deprecated

LocalizationService is the service responsible for handling automated translation.

It is used as a storage for LocalizationTable objects used by automatic text replacement.

LocalizationService will only use its child LocalizationTables for automatic text replacement unless GuiBase2d/RootLocalizationTable is specified on a GUI object or its ancestors.


Properties

string

ForcePlayModeGameLocaleId

[NotReplicated]
string

ForcePlayModeRobloxLocaleId

[NotReplicated]

When set to a non-empty string, this property overrides value of the LocalizationService/RobloxLocaleId when running in play solo mode.

string

RobloxLocaleId

[ReadOnly] [NotReplicated]

The locale id that the local player has set for their Roblox account.

string

SystemLocaleId

[ReadOnly] [NotReplicated]

The locale id that the local player has set for their operating system.

Functions

Objects

GetCorescriptLocalizations ( )

Returns a list of LocalizationTable objects that are parented to the LocalizationService.

Array

GetTableEntries ( Instance instance )

Instance

GetTranslatorForLocaleAsync ( string locale )

[Yields]

Yields until the cloud localization asset for the argument locale has been loaded - if available. Returns a Translator to be used for translations using the locale data loaded

Instance

GetTranslatorForPlayer ( Instance player )

Returns a Translator to be used for translations using the locale data loaded

Instance

GetTranslatorForPlayerAsync ( Instance player )

[Yields]

Yields until the cloud localization asset for the player’s locale has been loaded - if available. Returns a Translator to be used for translations using the locale data loaded

Events