How to the the current localization string?

In this, I get the current weekday in “en-us” format:

print(DateTime.fromUnixTimestamp(0):FormatUniversalTime("ddd", "en-us")) -- Thu

How can I this the current localization string (“en-us”, “pt-br”, etc)?

https://developer.roblox.com/en-us/api-reference/property/LocalizationService/SystemLocaleId
https://developer.roblox.com/en-us/api-reference/property/LocalizationService/RobloxLocaleId

There are two choices. RobloxLocaleId might be preferred incase the user has their system language in Spanish for example, but prefers Roblox to be in English.

1 Like