Learn
Motor Sınıfı
LocalizationService
Oluşturulamaz
Hizmet
Çoğaltılmamış

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler

API Referansı
Özellikler
RobloxLocaleId
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: Basic
LocalizationService.RobloxLocaleId:string

SystemLocaleId
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: Basic
LocalizationService.SystemLocaleId:string

Yöntemler
GetCorescriptLocalizations
Capabilities: Basic
LocalizationService:GetCorescriptLocalizations():Instances
Dönüşler
Instances

GetCountryRegionForPlayerAsync
Bekletir
Capabilities: Basic
LocalizationService:GetCountryRegionForPlayerAsync(player:Instance):string
Parametreler
player:Instance
Dönüşler
Kod Örnekleri
Bir Oyuncu için Ülke/Bölge Kodunu Alma
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("Merhaba, Kanada'dan arkadaş!")
else
print("GetCountryRegionForPlayerAsync başarısız oldu: " .. code)
end

GetTableEntries
Capabilities: Basic
LocalizationService:GetTableEntries(instance:Instance):{any}
Parametreler
instance:Instance
Varsayılan değer: "nil"
Dönüşler

GetTranslatorForLocaleAsync
Bekletir
Capabilities: Basic
LocalizationService:GetTranslatorForLocaleAsync(locale:string):Instance
Parametreler
locale:string
Dönüşler
Kod Örnekleri
Bir Yerel İçin Çevirmen Alma ve Kullanma
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("Fransızca Merhaba: " .. result)
else
print("GetTranslatorForLocaleAsync başarısız oldu: " .. translator)
end

GetTranslatorForPlayer
Artık Kullanılmayan

GetTranslatorForPlayerAsync
Bekletir
Capabilities: Basic
LocalizationService:GetTranslatorForPlayerAsync(player:Instance):Instance
Parametreler
player:Instance
Dönüşler
Kod Örnekleri
Bir Oyuncu için Çevirmen Almak ve Kullanmak
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, "Merhaba Dünya!")
print(result)
else
print("GetTranslatorForPlayerAsync başarısız oldu: " .. 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.