PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

LocaleId

Player

string

The LocaleId Player property shows the locale id that the local player has set for their Roblox account. It holds a string with the two letter code (for example, “en-us”) for the locale.

This can be used to determine the geographic demographic of your game’s player base.

This property allows access to the player’s locale from the server. It is similar to LocalizationService’s LocalizationService/RobloxLocaleId property.


Code Samples


Checking a Player's Locale

This example demonstrates how to check the locale of a local player using the Player/LocaleId property. It prints a string with the two letter locale code for the locale of the local player.

For instance, if the player’s local is within the US, the locale will be:

en-us