Learn
Engine Class
LocalizationService
Not Creatable
Service
Not Replicated


API Reference
Properties
RobloxLocaleId
Read Only
Not Replicated
Read Parallel
Capabilities: Basic
LocalizationService.RobloxLocaleId:string

SystemLocaleId
Read Only
Not Replicated
Read Parallel
Capabilities: Basic
LocalizationService.SystemLocaleId:string

Methods
GetCorescriptLocalizations
Capabilities: Basic
LocalizationService:GetCorescriptLocalizations():Instances
Returns
Instances

GetCountryRegionForPlayerAsync
Yields
Capabilities: Basic
LocalizationService:GetCountryRegionForPlayerAsync(player:Instance):string
Parameters
player:Instance
Returns
Code Samples
Getting Country/Region Code for a Player
local LocalizationService = game:GetService("LocalizationService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local result, code = pcall(LocalizationService.GetCountryRegionForPlayerAsync, LocalizationService, player)
if result and code == "CA" then
print("Hello, friend from Canada!")
else
print("GetCountryRegionForPlayerAsync failed: " .. code)
end

GetTableEntries
Capabilities: Basic
LocalizationService:GetTableEntries(instance:Instance):{any}
Parameters
instance:Instance
Default Value: "nil"
Returns

GetTranslatorForLocaleAsync
Yields
Capabilities: Basic
LocalizationService:GetTranslatorForLocaleAsync(locale:string):Instance
Parameters
locale:string
Returns
Code Samples
Getting and Using a Translator for a Locale
local LocalizationService = game:GetService("LocalizationService")
local textLabel = script.Parent
local success, translator = pcall(function()
return LocalizationService:GetTranslatorForLocaleAsync("fr")
end)
if success then
local result = translator:Translate(textLabel, "Hello World!")
print("Hello in French: " .. result)
else
print("GetTranslatorForLocaleAsync failed: " .. translator)
end

GetTranslatorForPlayer
Deprecated

GetTranslatorForPlayerAsync
Yields
Capabilities: Basic
LocalizationService:GetTranslatorForPlayerAsync(player:Instance):Instance
Parameters
player:Instance
Returns
Code Samples
Getting and Using a Translator for a Player
local LocalizationService = game:GetService("LocalizationService")
local Players = game:GetService("Players")
local textLabel = script.Parent
local success, translator = pcall(function()
return LocalizationService:GetTranslatorForPlayerAsync(Players.LocalPlayer)
end)
if success then
local result = translator:Translate(textLabel, "Hello World!")
print(result)
else
print("GetTranslatorForPlayerAsync failed: " .. translator)
end

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.